1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python{2_7,3_6} )
8 inherit python-r1 multilib autotools toolchain-funcs
10 DESCRIPTION="Redhat's Newt windowing toolkit development files"
11 HOMEPAGE="https://pagure.io/newt"
12 SRC_URI="https://releases.pagure.org/newt/${P}.tar.gz"
16 KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 sparc x86"
19 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
21 RDEPEND="${PYTHON_DEPS}
24 elibc_uclibc? ( sys-libs/ncurses:0= )
26 tcl? ( >=dev-lang/tcl-8.5:0 )
32 if use elibc_uclibc; then
33 sed -i -e 's:-lslang:-lslang -lncurses:g' Makefile.in || die
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"
46 if [ -n "${LINGUAS}" ]; then
47 for lang in ${LINGUAS}; do
48 test -r po/${lang}.po && langs="${langs} ${lang}.po"
51 -e "/^CATALOGS = /cCATALOGS = ${langs}" \
52 || die "sed po/Makefile"
55 eapply "${FILESDIR}"/${PN}-0.52.13-gold.patch \
56 "${FILESDIR}"/${PN}-0.52.14-tcl.patch
64 PYTHONVERS="${PYTHON}" \
65 $(use_with gpm gpm-support) \
69 python_foreach_impl configuring
74 emake PYTHONVERS="${EPYTHON}"
76 python_foreach_impl building
83 PYTHONVERS="${EPYTHON}" \
87 python_foreach_impl installit
88 dodoc peanuts.py popcorn.py tutorial.sgml