Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-nntp/xrn/
Date: Thu, 01 Mar 2018 18:28:12
Message-Id: 1519928874.92925649ecc8a574aac7b774f99141b0e81f40ee.pacho@gentoo
1 commit: 92925649ecc8a574aac7b774f99141b0e81f40ee
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Thu Mar 1 18:13:30 2018 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Thu Mar 1 18:27:54 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=92925649
7
8 net-nntp/xrn: x11-libs/libXp is not really needed, keyword on amd64
9
10 Package-Manager: Portage-2.3.24, Repoman-2.3.6
11
12 net-nntp/xrn/xrn-9.02-r1.ebuild | 72 +++++++++++++++++++++++++++++++++++++++++
13 1 file changed, 72 insertions(+)
14
15 diff --git a/net-nntp/xrn/xrn-9.02-r1.ebuild b/net-nntp/xrn/xrn-9.02-r1.ebuild
16 new file mode 100644
17 index 00000000000..ab7ef9309d9
18 --- /dev/null
19 +++ b/net-nntp/xrn/xrn-9.02-r1.ebuild
20 @@ -0,0 +1,72 @@
21 +# Copyright 1999-2018 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=6
25 +
26 +DESCRIPTION="A small and fast news reader for X"
27 +HOMEPAGE="http://www.mit.edu/people/jik/software/xrn.html"
28 +SRC_URI="ftp://sipb.mit.edu/pub/${PN}/${P}.tgz"
29 +LICENSE="BSD"
30 +SLOT="0"
31 +
32 +KEYWORDS="~amd64 ~x86"
33 +IUSE=""
34 +
35 +RDEPEND="
36 + x11-libs/libICE
37 + x11-libs/libSM
38 + x11-libs/libX11
39 + x11-libs/libXaw
40 + x11-libs/libXext
41 + x11-libs/libXmu
42 + x11-libs/libXpm
43 + x11-libs/libXt
44 +"
45 +DEPEND="${RDEPEND}
46 + x11-misc/imake
47 +"
48 +
49 +src_compile() {
50 + # English is the default language, but french and german are also
51 + # supported, however only one language may be supported at a time:
52 + local lingua
53 + for lingua in ${LINGUAS} en ; do
54 + case "${lingua}" in
55 + en*)
56 + MY_LANG="english"
57 + break # Breaks the for loop.
58 + ;;
59 + fr*)
60 + MY_LANG="french"
61 + break # Breaks the for loop.
62 + ;;
63 + de*)
64 + MY_LANG="german"
65 + break # Breaks the for loop.
66 + ;;
67 + esac
68 + done
69 +
70 + # Bugs to Gentoo bugzilla:
71 + sed -i \
72 + -e "s,bug-xrn@×××××××××××××××××××.us,https://bugs.gentoo.org/," \
73 + -e "s,\(#ifndef CONFIG_H_IS_OK\),#define CONFIG_H_IS_OK\n\1," \
74 + config.h
75 +
76 + # Generate Makefile:
77 + xmkmf || die "xmkmf failed"
78 +
79 + # Use our own CFLAGS and our desired language:
80 + emake -j1 CDEBUGFLAGS="${CFLAGS}" LANGUAGE="${MY_LANG}"
81 +}
82 +
83 +src_install() {
84 + dobin xrn
85 + dodoc README README.Linux TODO CREDITS COMMON-PROBLMS
86 +
87 + # Default settings:
88 + insinto /etc/X11/app-defaults
89 + newins XRn.ad XRn
90 +
91 + newman xrn.man xrn.1
92 +}