Gentoo Archives: gentoo-commits

From: Ben Kohler <bkohler@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/newt/
Date: Thu, 30 May 2019 20:41:10
Message-Id: 1559248846.f1ace126ea9a2c4bacb67e89d176949bfee7031e.bkohler@gentoo
1 commit: f1ace126ea9a2c4bacb67e89d176949bfee7031e
2 Author: Ben Kohler <bkohler <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 30 20:39:12 2019 +0000
4 Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org>
5 CommitDate: Thu May 30 20:40:46 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f1ace126
7
8 dev-libs/newt: bump to 0.52.21
9
10 Package-Manager: Portage-2.3.67, Repoman-2.3.13
11 Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org>
12
13 dev-libs/newt/Manifest | 1 +
14 dev-libs/newt/newt-0.52.21.ebuild | 92 +++++++++++++++++++++++++++++++++++++++
15 2 files changed, 93 insertions(+)
16
17 diff --git a/dev-libs/newt/Manifest b/dev-libs/newt/Manifest
18 index 0cb5f2b8c43..c73fc64e315 100644
19 --- a/dev-libs/newt/Manifest
20 +++ b/dev-libs/newt/Manifest
21 @@ -1,3 +1,4 @@
22 DIST newt-0.52.15.tar.gz 183171 BLAKE2B e6fac06b28232c81d683b9fe613f8c75660543a1e1f9f7583ce27e2fcf8208e2695e94c190757af8da443c0b1fa30546ce8dc77630ee88464377d563193f52d1 SHA512 f93798e8e9e33b4bc1bbb6039d94ccdf55be76a0e0f918eb32a241fe527ea61121a8fc35ccd699e3f6202eb367ba4b4025b30264bd9b0face7c16782f113051e
23 DIST newt-0.52.18.tar.gz 180425 BLAKE2B 96c10d6eb63b62a51cd75f3cc34671954abd8e0c528972cb555422065dd074bab7360b226fcc4278caafafafb3b53c6eb2c395b83cc18c3fd02efcf053480311 SHA512 223b4fba9568d7ddddd9292f52d5e556a24403642d1dac97b58c8ede698bc182ce7d5afd31df2cb1c5b8a8850529b50ce71d8ad84856be8d42fad0f1a33a48f8
24 DIST newt-0.52.20.tar.gz 181163 BLAKE2B c6def9fae612f8dcffb396ea4013cf3e034da8f346fb7bf71de6fc5a59ee3d9d43bb4ad3bdfab7535d4d2eddeed62f72cea1861ac537f2bd7a62e7f76069c692 SHA512 0c10c373c6a5299a85fc38f32d3590fff3b26c4be40e6c85ed73c20724ef2fb094bf37a8c3b1b80a4bcdfc14fe59254d4419c391245c298a4e16788954b88236
25 +DIST newt-0.52.21.tar.gz 174895 BLAKE2B a0d6a15f87fe04dc535e65fcd28606cd666142d006a53b6ee0c8387a6295215e44f1815ac56ceb56b561ca9b5bc8f3cab2d04b5decd62642f46b744333dc7e34 SHA512 d53d927996d17223e688bf54dccfabb2a3dc02bfe38ffc455964e86feaca3cd9f9ab5b19774433be430fa4d761cd9b6680b558f297acb86f80daeb6942f7d23c
26
27 diff --git a/dev-libs/newt/newt-0.52.21.ebuild b/dev-libs/newt/newt-0.52.21.ebuild
28 new file mode 100644
29 index 00000000000..dc2ec595ad7
30 --- /dev/null
31 +++ b/dev-libs/newt/newt-0.52.21.ebuild
32 @@ -0,0 +1,92 @@
33 +# Copyright 1999-2019 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=6
37 +
38 +PYTHON_COMPAT=( python{2_7,3_5,3_6,3_7} )
39 +
40 +inherit python-r1 multilib autotools toolchain-funcs
41 +
42 +DESCRIPTION="Redhat's Newt windowing toolkit development files"
43 +HOMEPAGE="https://pagure.io/newt"
44 +SRC_URI="https://releases.pagure.org/newt/${P}.tar.gz"
45 +
46 +LICENSE="LGPL-2"
47 +SLOT="0"
48 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
49 +IUSE="gpm nls tcl"
50 +
51 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
52 +
53 +RDEPEND="${PYTHON_DEPS}
54 + >=dev-libs/popt-1.6
55 + =sys-libs/slang-2*
56 + elibc_uclibc? ( sys-libs/ncurses:0= )
57 + gpm? ( sys-libs/gpm )
58 + tcl? ( >=dev-lang/tcl-8.5:0 )
59 + "
60 +DEPEND="${RDEPEND}"
61 +
62 +src_prepare() {
63 + # bug 73850
64 + if use elibc_uclibc; then
65 + sed -i -e 's:-lslang:-lslang -lncurses:g' Makefile.in || die
66 + fi
67 +
68 + sed -i Makefile.in \
69 + -e 's|$(SHCFLAGS) -o|$(LDFLAGS) &|g' \
70 + -e 's|-g -o|$(CFLAGS) $(LDFLAGS) -o|g' \
71 + -e 's|-shared -o|$(CFLAGS) $(LDFLAGS) &|g' \
72 + -e 's|instroot|DESTDIR|g' \
73 + -e 's| make | $(MAKE) |g' \
74 + -e "s| ar | $(tc-getAR) |g" \
75 + || die "sed Makefile.in"
76 +
77 + local langs=""
78 + if [ -n "${LINGUAS}" ]; then
79 + for lang in ${LINGUAS}; do
80 + test -r po/${lang}.po && langs="${langs} ${lang}.po"
81 + done
82 + sed -i po/Makefile \
83 + -e "/^CATALOGS = /cCATALOGS = ${langs}" \
84 + || die "sed po/Makefile"
85 + fi
86 +
87 + eapply "${FILESDIR}"/${PN}-0.52.13-gold.patch \
88 + "${FILESDIR}"/${PN}-0.52.14-tcl.patch \
89 + "${FILESDIR}"/${PN}-0.52.15-makefile.patch
90 + eapply_user
91 + eautoreconf
92 +}
93 +
94 +src_configure() {
95 + configuring() {
96 + econf \
97 + PYTHONVERS="${PYTHON}" \
98 + $(use_with gpm gpm-support) \
99 + $(use_with tcl) \
100 + $(use_enable nls)
101 + }
102 + python_foreach_impl configuring
103 +}
104 +
105 +src_compile() {
106 + building() {
107 + emake PYTHONVERS="${EPYTHON}"
108 + }
109 + python_foreach_impl building
110 +}
111 +
112 +src_install() {
113 + installit() {
114 + emake \
115 + DESTDIR="${D}" \
116 + PYTHONVERS="${EPYTHON}" \
117 + install
118 + python_optimize
119 + }
120 + python_foreach_impl installit
121 + dodoc peanuts.py popcorn.py tutorial.sgml
122 + doman whiptail.1
123 + einstalldocs
124 +}