Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-news/snownews/
Date: Mon, 20 Aug 2018 14:56:53
Message-Id: 1534776996.a35754b5443b877ed14b187c8b17971dfff50e4a.mgorny@gentoo
1 commit: a35754b5443b877ed14b187c8b17971dfff50e4a
2 Author: Frederic Culot <culot <AT> FreeBSD <DOT> org>
3 AuthorDate: Fri Jul 27 08:49:23 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Aug 20 14:56:36 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a35754b5
7
8 net-news/snownews: 1.5.13 version bump
9
10 Closes: https://bugs.gentoo.org/662238
11 Closes: https://github.com/gentoo/gentoo/pull/9361
12
13 net-news/snownews/Manifest | 1 +
14 net-news/snownews/metadata.xml | 9 +++++-
15 net-news/snownews/snownews-1.5.13.ebuild | 49 ++++++++++++++++++++++++++++++++
16 3 files changed, 58 insertions(+), 1 deletion(-)
17
18 diff --git a/net-news/snownews/Manifest b/net-news/snownews/Manifest
19 index c6d9102e3cf..f2829ac4529 100644
20 --- a/net-news/snownews/Manifest
21 +++ b/net-news/snownews/Manifest
22 @@ -1 +1,2 @@
23 DIST snownews-1.5.12.tar.gz 167944 BLAKE2B c629bfa53860a031a6afd3a82d44747e61780b03e5a74bb9db4b8c22b441870a8345317d901ddaf42de62aee54685d6329c49343821005ea211c1e17932bf755 SHA512 7a7ccd5ea57f8bbb73f1429ab931a38203e858c74a383c5347e66088b84f6a7240feeee99e179687ce0a7a89c6c1406ce20d6c5d6771d25a0a0301fa5526e220
24 +DIST snownews-1.5.13.tar.gz 199931 BLAKE2B 1e68fb46a0fdcea67281adb5334b4e90cb4b520b9d54dafc05e181c5f3ea1f552b80d4835fb0d0d00d2efc8d8cecf0554b547a4e029de49ecc01fb7dc2722c0e SHA512 dd91968141a44f4277eb9f333a5fe06c60805aae6fe36900cde55b85afc254aaca48d06e86b1e9d65b6bcaea76ca162d75d2160f46cb15539776a3f29f990963
25
26 diff --git a/net-news/snownews/metadata.xml b/net-news/snownews/metadata.xml
27 index 6f49eba8f49..e8523f5eab1 100644
28 --- a/net-news/snownews/metadata.xml
29 +++ b/net-news/snownews/metadata.xml
30 @@ -1,5 +1,12 @@
31 <?xml version="1.0" encoding="UTF-8"?>
32 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
33 <pkgmetadata>
34 -<!-- maintainer-needed -->
35 + <maintainer type="person">
36 + <email>gentoo@×××××.org</email>
37 + <name>Frederic Culot</name>
38 + </maintainer>
39 + <maintainer type="project">
40 + <email>proxy-maint@g.o</email>
41 + <name>Proxy Maintainers</name>
42 + </maintainer>
43 </pkgmetadata>
44
45 diff --git a/net-news/snownews/snownews-1.5.13.ebuild b/net-news/snownews/snownews-1.5.13.ebuild
46 new file mode 100644
47 index 00000000000..8fe9ca3932d
48 --- /dev/null
49 +++ b/net-news/snownews/snownews-1.5.13.ebuild
50 @@ -0,0 +1,49 @@
51 +# Copyright 1999-2018 Gentoo Foundation
52 +# Distributed under the terms of the GNU General Public License v2
53 +
54 +EAPI=6
55 +inherit autotools toolchain-funcs
56 +
57 +DESCRIPTION="Command-line RSS feed reader"
58 +HOMEPAGE="https://github.com/kouya/snownews"
59 +SRC_URI="https://github.com/kouya/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
60 +
61 +LICENSE="GPL-3"
62 +SLOT="0"
63 +KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~x86-macos"
64 +IUSE="unicode"
65 +
66 +COMMON_DEPEND="
67 + >=dev-libs/libxml2-2.5.6
68 + >=sys-libs/ncurses-5.3:0=[unicode?]
69 + dev-libs/openssl:0=
70 +"
71 +RDEPEND="
72 + ${COMMON_DEPEND}
73 + dev-perl/XML-LibXML
74 + dev-perl/libwww-perl
75 +"
76 +
77 +DEPEND="
78 + ${COMMON_DEPEND}
79 + virtual/pkgconfig
80 +"
81 +
82 +src_prepare() {
83 + default
84 + tc-export PKG_CONFIG
85 + sed -i 's|-lncurses|`\\$(PKG_CONFIG) --libs '"$(usex unicode ncursesw ncurses)"'`|' configure || die
86 + sed -i 's|$(INSTALL) -s snownews|$(INSTALL) snownews|' Makefile || die
87 +}
88 +
89 +src_configure() {
90 + # perl script, not autotools based
91 + ./configure --prefix="${EPREFIX}/usr" || die
92 +}
93 +
94 +src_compile() {
95 + emake \
96 + CC="$(tc-getCC)" \
97 + EXTRA_CFLAGS="${CFLAGS}" \
98 + EXTRA_LDFLAGS="${LDFLAGS}"
99 +}