Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 598904
Collapse All | Expand All

(-)a/dev-libs/newt/Manifest (+1 lines)
Lines 1-2 Link Here
1
DIST newt-0.52.15.tar.gz 183171 SHA256 7a6151923e7a8a950f9a8a21668a5780d09b0f35f9d76a7ec606c71c35a0e241 SHA512 f93798e8e9e33b4bc1bbb6039d94ccdf55be76a0e0f918eb32a241fe527ea61121a8fc35ccd699e3f6202eb367ba4b4025b30264bd9b0face7c16782f113051e WHIRLPOOL 3b23d149964bb63b6c1de2f84c7d8eaac4ecb004698135e41afd0e3ca2702f8687f9ca46a4bc10c2d4a372b9b10e7dd792a6d56deee59e2f30f942776f6d625b
1
DIST newt-0.52.15.tar.gz 183171 SHA256 7a6151923e7a8a950f9a8a21668a5780d09b0f35f9d76a7ec606c71c35a0e241 SHA512 f93798e8e9e33b4bc1bbb6039d94ccdf55be76a0e0f918eb32a241fe527ea61121a8fc35ccd699e3f6202eb367ba4b4025b30264bd9b0face7c16782f113051e WHIRLPOOL 3b23d149964bb63b6c1de2f84c7d8eaac4ecb004698135e41afd0e3ca2702f8687f9ca46a4bc10c2d4a372b9b10e7dd792a6d56deee59e2f30f942776f6d625b
2
DIST newt-0.52.18.tar.gz 180425 SHA256 771b0e634ede56ae6a6acd910728bb5832ac13ddb0d1d27919d2498dab70c91e SHA512 223b4fba9568d7ddddd9292f52d5e556a24403642d1dac97b58c8ede698bc182ce7d5afd31df2cb1c5b8a8850529b50ce71d8ad84856be8d42fad0f1a33a48f8 WHIRLPOOL e4ca7b572579834df0f73f1bd65a19be48e186f253ac2e82713a0e5ed902ca1fcb8cec88da508519e6a0e88efcac77fbaa0000525bb7659264849322bc3c1c55
2
DIST newt-0.52.18.tar.gz 180425 SHA256 771b0e634ede56ae6a6acd910728bb5832ac13ddb0d1d27919d2498dab70c91e SHA512 223b4fba9568d7ddddd9292f52d5e556a24403642d1dac97b58c8ede698bc182ce7d5afd31df2cb1c5b8a8850529b50ce71d8ad84856be8d42fad0f1a33a48f8 WHIRLPOOL e4ca7b572579834df0f73f1bd65a19be48e186f253ac2e82713a0e5ed902ca1fcb8cec88da508519e6a0e88efcac77fbaa0000525bb7659264849322bc3c1c55
3
DIST newt-0.52.20.tar.gz 181163 SHA256 8d66ba6beffc3f786d4ccfee9d2b43d93484680ef8db9397a4fb70b5adbb6dbc SHA512 0c10c373c6a5299a85fc38f32d3590fff3b26c4be40e6c85ed73c20724ef2fb094bf37a8c3b1b80a4bcdfc14fe59254d4419c391245c298a4e16788954b88236 WHIRLPOOL e695e6bb24a653377d73d461ae720d999af36873703a75127463e8d2a92d52a2d93011bbae32f6c3e8027cf31c906ed96dbfc88f2246e67dabd6b6359f7298c8
(-)a/dev-libs/newt/files/newt-0.52.13-gold.patch
Lines 1-5 Link Here
(-)a/dev-libs/newt/newt-0.52.20.ebuild (+88 lines)
Line 0 Link Here
1
# Copyright 1999-2017 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
3
4
EAPI=6
5
6
PYTHON_COMPAT=( python2_7 python3_4 python3_5 )
7
8
inherit python-r1 multilib autotools toolchain-funcs
9
10
DESCRIPTION="Redhat's Newt windowing toolkit development files"
11
HOMEPAGE="https://fedorahosted.org/newt/"
12
SRC_URI="https://fedorahosted.org/releases/n/e/newt/${P}.tar.gz"
13
14
LICENSE="LGPL-2"
15
SLOT="0"
16
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
17
IUSE="gpm tcl nls"
18
19
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
20
21
RDEPEND="${PYTHON_DEPS}
22
	>=dev-libs/popt-1.6
23
	=sys-libs/slang-2*
24
	elibc_uclibc? ( sys-libs/ncurses:0 )
25
	gpm? ( sys-libs/gpm )
26
	tcl? ( >=dev-lang/tcl-8.5:0 )
27
	"
28
DEPEND="${RDEPEND}"
29
30
src_prepare() {
31
	# bug 73850
32
	if use elibc_uclibc; then
33
		sed -i -e 's:-lslang:-lslang -lncurses:g' Makefile.in || die
34
	fi
35
36
	sed -i Makefile.in \
37
		-e 's|$(SHCFLAGS) -o|$(LDFLAGS) &|g' \
38
		-e 's|-g -o|$(CFLAGS) $(LDFLAGS) -o|g' \
39
		-e 's|-shared -o|$(CFLAGS) $(LDFLAGS) &|g' \
40
		-e 's|instroot|DESTDIR|g' \
41
		-e 's|	make |	$(MAKE) |g' \
42
		-e "s|	ar |	$(tc-getAR) |g" \
43
		|| die "sed Makefile.in"
44
45
	local langs=""
46
	if [ -n "${LINGUAS}" ]; then
47
		for lang in ${LINGUAS}; do
48
			test -r po/${lang}.po && langs="${langs} ${lang}.po"
49
		done
50
		sed -i po/Makefile \
51
			-e "/^CATALOGS = /cCATALOGS = ${langs}" \
52
			|| die "sed po/Makefile"
53
	fi
54
55
	eapply "${FILESDIR}"/${PN}-0.52.13-gold.patch \
56
		"${FILESDIR}"/${PN}-0.52.14-tcl.patch \
57
		"${FILESDIR}"/${PN}-0.52.15-makefile.patch
58
	eapply_user
59
	eautoreconf
60
}
61
62
src_configure() {
63
	econf \
64
		PYTHONVERS="${PYTHON}" \
65
		$(use_with gpm gpm-support) \
66
		$(use_with tcl) \
67
		$(use_enable nls)
68
}
69
70
src_compile() {
71
	building() {
72
		emake PYTHONVERS="${EPYTHON}"
73
	}
74
	python_foreach_impl building
75
}
76
77
src_install() {
78
	installit() {
79
		emake \
80
			DESTDIR="${D}" \
81
			PYTHONVERS="${EPYTHON}" \
82
			install
83
		python_optimize
84
	}
85
	python_foreach_impl installit
86
	dodoc peanuts.py popcorn.py tutorial.sgml
87
	doman whiptail.1
88
}

Return to bug 598904