From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id AD3A81382C5 for ; Thu, 1 Mar 2018 18:28:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E0023E0A87; Thu, 1 Mar 2018 18:28:11 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BD5B8E0A87 for ; Thu, 1 Mar 2018 18:28:11 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A0B53335C39 for ; Thu, 1 Mar 2018 18:28:10 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 29CAF1E6 for ; Thu, 1 Mar 2018 18:28:08 +0000 (UTC) From: "Pacho Ramos" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Pacho Ramos" Message-ID: <1519928874.92925649ecc8a574aac7b774f99141b0e81f40ee.pacho@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-nntp/xrn/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-nntp/xrn/xrn-9.02-r1.ebuild X-VCS-Directories: net-nntp/xrn/ X-VCS-Committer: pacho X-VCS-Committer-Name: Pacho Ramos X-VCS-Revision: 92925649ecc8a574aac7b774f99141b0e81f40ee X-VCS-Branch: master Date: Thu, 1 Mar 2018 18:28:08 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 9e255eb4-e032-4dc5-94ca-1037008df40c X-Archives-Hash: 4a4a0ccf48344570d27d6200d7a21707 commit: 92925649ecc8a574aac7b774f99141b0e81f40ee Author: Pacho Ramos gentoo org> AuthorDate: Thu Mar 1 18:13:30 2018 +0000 Commit: Pacho Ramos gentoo org> CommitDate: Thu Mar 1 18:27:54 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=92925649 net-nntp/xrn: x11-libs/libXp is not really needed, keyword on amd64 Package-Manager: Portage-2.3.24, Repoman-2.3.6 net-nntp/xrn/xrn-9.02-r1.ebuild | 72 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) diff --git a/net-nntp/xrn/xrn-9.02-r1.ebuild b/net-nntp/xrn/xrn-9.02-r1.ebuild new file mode 100644 index 00000000000..ab7ef9309d9 --- /dev/null +++ b/net-nntp/xrn/xrn-9.02-r1.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DESCRIPTION="A small and fast news reader for X" +HOMEPAGE="http://www.mit.edu/people/jik/software/xrn.html" +SRC_URI="ftp://sipb.mit.edu/pub/${PN}/${P}.tgz" +LICENSE="BSD" +SLOT="0" + +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND=" + x11-libs/libICE + x11-libs/libSM + x11-libs/libX11 + x11-libs/libXaw + x11-libs/libXext + x11-libs/libXmu + x11-libs/libXpm + x11-libs/libXt +" +DEPEND="${RDEPEND} + x11-misc/imake +" + +src_compile() { + # English is the default language, but french and german are also + # supported, however only one language may be supported at a time: + local lingua + for lingua in ${LINGUAS} en ; do + case "${lingua}" in + en*) + MY_LANG="english" + break # Breaks the for loop. + ;; + fr*) + MY_LANG="french" + break # Breaks the for loop. + ;; + de*) + MY_LANG="german" + break # Breaks the for loop. + ;; + esac + done + + # Bugs to Gentoo bugzilla: + sed -i \ + -e "s,bug-xrn@kamens.brookline.ma.us,https://bugs.gentoo.org/," \ + -e "s,\(#ifndef CONFIG_H_IS_OK\),#define CONFIG_H_IS_OK\n\1," \ + config.h + + # Generate Makefile: + xmkmf || die "xmkmf failed" + + # Use our own CFLAGS and our desired language: + emake -j1 CDEBUGFLAGS="${CFLAGS}" LANGUAGE="${MY_LANG}" +} + +src_install() { + dobin xrn + dodoc README README.Linux TODO CREDITS COMMON-PROBLMS + + # Default settings: + insinto /etc/X11/app-defaults + newins XRn.ad XRn + + newman xrn.man xrn.1 +}