summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNaohiro Aota <naota@gentoo.org>2011-11-17 04:45:45 +0000
committerNaohiro Aota <naota@gentoo.org>2011-11-17 04:45:45 +0000
commitea89b1c9d72744a95c95125311d660f8f1d01b88 (patch)
treefbb49969a9db2b8641704df4d4e544e606eed5b8 /dev-libs/newt
parentin-place update to support dev-lang/spidermonkey-1.8.5 for bug 376993 (diff)
downloadhistorical-ea89b1c9d72744a95c95125311d660f8f1d01b88.tar.gz
historical-ea89b1c9d72744a95c95125311d660f8f1d01b88.tar.bz2
historical-ea89b1c9d72744a95c95125311d660f8f1d01b88.zip
Version bumped
Package-Manager: portage-2.2.0_alpha73/cvs/Linux x86_64
Diffstat (limited to 'dev-libs/newt')
-rw-r--r--dev-libs/newt/ChangeLog8
-rw-r--r--dev-libs/newt/Manifest24
-rw-r--r--dev-libs/newt/files/newt-0.52.13-gold.patch12
-rw-r--r--dev-libs/newt/files/newt-0.52.13-python.patch32
-rw-r--r--dev-libs/newt/newt-0.52.13.ebuild79
5 files changed, 149 insertions, 6 deletions
diff --git a/dev-libs/newt/ChangeLog b/dev-libs/newt/ChangeLog
index 6ea8379134a3..78f81201d2dc 100644
--- a/dev-libs/newt/ChangeLog
+++ b/dev-libs/newt/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-libs/newt
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/newt/ChangeLog,v 1.76 2011/10/14 03:12:38 naota Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/newt/ChangeLog,v 1.77 2011/11/17 04:45:44 naota Exp $
+
+*newt-0.52.13 (17 Nov 2011)
+
+ 17 Nov 2011; Naohiro Aota <naota@gentoo.org> +newt-0.52.13.ebuild,
+ +files/newt-0.52.13-gold.patch, +files/newt-0.52.13-python.patch:
+ Version bumped
14 Oct 2011; Naohiro Aota <naota@gentoo.org> newt-0.52.12.ebuild,
+files/newt-0.52.12-install.patch, +files/newt-0.52.12-whiptail.patch:
diff --git a/dev-libs/newt/Manifest b/dev-libs/newt/Manifest
index 6e18267a3021..f6459e2322a3 100644
--- a/dev-libs/newt/Manifest
+++ b/dev-libs/newt/Manifest
@@ -1,16 +1,30 @@
-----BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
+Hash: SHA256
AUX newt-0.52.12-install.patch 617 RMD160 ee73f5b89833b13ad3de3d4993f28f4b8651e327 SHA1 c72b81307caa262104797638fb3df3155770fa24 SHA256 1f6a5c683c5152b5066c4760d9307e63f3bac1e126c0575e57714d108701556b
AUX newt-0.52.12-whiptail.patch 276 RMD160 6e0af2aa97e5728566ba8eb710bba069a3bc578b SHA1 65ccd6119ff5529b73256c1d0558053d8e0bbfee SHA256 c2a498ba3bbb5dd600ad955d92075b071176c78d79c0b62f467db9082400bf36
+AUX newt-0.52.13-gold.patch 431 RMD160 ccf1914de2967e7d34fef0ff94cf2c5527bb1445 SHA1 2b4bbb602df52e4e38a6a3d9bdbd801f515b7416 SHA256 6383e6b9cbda8f7e9d4c9b111341bcbce279334e50d4907839dca088cb143b47
+AUX newt-0.52.13-python.patch 1542 RMD160 b3d8e484efa97deacaeeed98dcbce61a4b6860a0 SHA1 c5297eb99c0e8809b6e3bc4942e058fbfd757301 SHA256 6326bd84e520122412d983bb0f0e0720939df3d9c84f3e0943ef69a37c062ed4
DIST newt-0.52.12.tar.gz 178027 RMD160 0d34b278e72c1b1305fc110e491e3bc96b42a374 SHA1 6952115806c7b1dbc36858eb4ca0596b235cf6f4 SHA256 2ba88dc3d118daf509c58e3707c43ad57dd3415d8164054e93fe76439f348529
+DIST newt-0.52.13.tar.gz 183466 RMD160 c43d9b3acd800ba3590c85e9854ad7b7c8e9b34b SHA1 0891ad749560ea6071edd734a080c9d172d0da0e SHA256 01c254b00a3d27e22f13240b6db74df04e721ccec4d1d4fc7b45fee009efc05f
EBUILD newt-0.52.12.ebuild 1712 RMD160 7f8a656743fbb3d7ff81d729c05f8b16a1a603a3 SHA1 4e44332ee0886362d3414d812b55afe344e20553 SHA256 a3ec5c2d26a7d67bfa5d26f9776b3ff33d3510ed03a9ff00cc9127f7f2320cf9
-MISC ChangeLog 10771 RMD160 0d9e87810975d83eb55480ea77816006a1ef4362 SHA1 3a533842eed6c42f7aac7d81d621600412e64548 SHA256 ad23b0f4f3e133226a0b272be87d701934fdf024f1d3c69c8fe8ba496cb9201f
+EBUILD newt-0.52.13.ebuild 1739 RMD160 aab4ceee5e4d8e95fda39b95f8b07f37f941ee69 SHA1 6eddd6eeb42317d03450a3791bd27aab1705564f SHA256 9bef4e5c28dbe36920c207f412cf1e9476d30bafa009227ecfb628c09c004bb8
+MISC ChangeLog 10955 RMD160 ca35c31f17d581ed2f6f9b80bc612ac87dbf90e3 SHA1 a77e8e37d30feec171d8a6713c019c4d80008cba SHA256 7a441d77503f50c88fba13e3f8b27d010c9687b6ea06a985bf9d9c785013d800
MISC metadata.xml 202 RMD160 bb6dfca1294b7a3796e361c3f69f186275ee5f32 SHA1 c12cef549a1dfea6b77e5580146e209a5404da43 SHA256 36dd3867461c37202f288f649ddac9571acba7bbee47e1ab46a5b72074e986ab
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
-iEYEARECAAYFAk6XqKoACgkQGpDnPLSHuMDL+wCfW6+a5N2IUg4SNy78wWgs79Bn
-6qoAoKO8z8kw4c/Y0SdLSigTwpX+srp2
-=4g0J
+iQIcBAEBCAAGBQJOxJGHAAoJEDYO1FT4VRUUy24QAIl6fAxsy+Kzpu9fD6UjDBE4
+XF0FvdkEM7rXAPwBZg+of51mGMD8pskfhYKEWXXbGCvndB3YYpg3KUbDYIUhMmR4
+CJJBeY6I1hpzIx5iSI3Xpt9UcROvWU/wg/jvB1uxCOyRUicibVm7cwwYrIlUGEje
+0e5gOQG7CIwR0LJ1Ryqo11tlhQA8O+R3iUxCdaB756dw0z0y3DekdFcc379uasIK
+JZ38zYHZAaZ1+sawj0wBp1I6hyhdnNjlNYCmC+gjDA8E9BnlTgrgOk+rrUmD75ka
+dDVANJAAf+TMrvZHIUlufcYuemI4SFhVP4YwhEbn2+WKiulJmStueksEzBtwIB61
+swg93lo5NR6fyGezgngjXaV+NEqUbolmhtmbS0PLFlnHhh3lZnQue5h3J+FxOYjE
+glLX5+nv0kIgztht4opMiJz6tufDkXXF0tXAvexna2NI0999GkkgGG3FVjBSf7H4
+czwR4FW8UcCm57tB2+ztmdR7+9VPY3Yyw62Tlk5WTTbbkC3QsSKTNWE9plRb7DUS
+Rl1Qua+GfNGtZ1LPjv6ca0/hKqTK+ljR+SMOWfnpWmaRcC5P3uLuuE7Zl08msaml
+nNI4/MC9rvGKHGexvAMz3WiQen31IkP//dyOy0GCwOOx2tCigasLQ4IEDvDFD5wQ
+fg7bTmhbz9UkXp61ErKZ
+=9sMG
-----END PGP SIGNATURE-----
diff --git a/dev-libs/newt/files/newt-0.52.13-gold.patch b/dev-libs/newt/files/newt-0.52.13-gold.patch
new file mode 100644
index 000000000000..5781dbf550f4
--- /dev/null
+++ b/dev-libs/newt/files/newt-0.52.13-gold.patch
@@ -0,0 +1,12 @@
+--- configure.ac~ 2011-11-09 23:50:21.000000000 +0900
++++ configure.ac 2011-11-09 23:54:54.139482817 +0900
+@@ -19,7 +19,8 @@
+ AC_MSG_CHECKING([for GNU ld])
+ LD=`$CC -print-prog-name=ld 2>&5`
+
+-if test `$LD -v 2>&1 | $ac_cv_path_GREP -c "GNU ld"` = 0; then
++if test `$LD -v 2>&1 | $ac_cv_path_GREP -c "GNU ld"` = 0 -a \
++ test `$LD -v 2>&1 | $ac_cv_path_GREP -c "GNU gold"` = 0; then
+ # Not
+ GNU_LD=""
+ AC_MSG_RESULT([no])
diff --git a/dev-libs/newt/files/newt-0.52.13-python.patch b/dev-libs/newt/files/newt-0.52.13-python.patch
new file mode 100644
index 000000000000..0487186147d8
--- /dev/null
+++ b/dev-libs/newt/files/newt-0.52.13-python.patch
@@ -0,0 +1,32 @@
+diff --git a/configure.ac b/configure.ac
+index b972805..1fe4bdf 100644
+--- a/configure.ac (revision 34e56d12931a25222d7debb22f95bb2f9fa696a0)
++++ b/configure.ac (revision 49d37f0cc7121a8386e4a8f21e5e0f7b614922b1)
+@@ -60,5 +60,5 @@
+ PYTHONVERS=
+ else
+- PYTHONVERS=$(ls /usr/include/python*/Python.h 2> /dev/null | sed "s|/usr/include/||g"| sed "s|/Python.h||g" 2> /dev/null)
++ PYTHONVERS=$(ls /usr/include/python2.*/Python.h 2> /dev/null | sed 's|/usr/include/\([[^/]]*\)/Python.h|\1|g' | tr '\n' ' ')
+ AC_MSG_RESULT([$PYTHONVERS])
+ fi
+diff --git a/Makefile.in b/Makefile.in
+index a448c5f..f9bbe1f 100644
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -79,11 +79,11 @@ showkey: showkey.o $(LIBNEWT)
+ _snackmodule.so: snackmodule.c $(LIBNEWTSH)
+ [ -n "$(PYTHONVERS)" ] && for ver in $(PYTHONVERS) ; do \
+ mkdir -p $$ver ;\
+- PCFLAGS=`$$ver-config --cflags`; \
+- PIFLAGS=`$$ver-config --includes`; \
+- PLDFLAGS=`$$ver-config --ldflags`; \
+- PLFLAGS=`$$ver-config --libs`; \
+- $(CC) $(CPPFLAGS) $$PIFLAGS $$PCFLAGS -c -o $$ver/snackmodule.o snackmodule.c ;\
++ PCFLAGS=`python-config-$${ver#python} --cflags`; \
++ PIFLAGS=`python-config-$${ver#python} --includes`; \
++ PLDFLAGS=`python-config-$${ver#python} --ldflags`; \
++ PLFLAGS=`python-config-$${ver#python} --libs`; \
++ $(CC) $(CPPFLAGS) $$PIFLAGS $$PCFLAGS -c -fPIC -o $$ver/snackmodule.o snackmodule.c ;\
+ $(CC) --shared $$PLDFLAGS $$PLFLAGS $(LDFLAGS) -o $$ver/_snackmodule.so $$ver/snackmodule.o -L. -lnewt $(LIBS);\
+ done || :
+ touch $@
diff --git a/dev-libs/newt/newt-0.52.13.ebuild b/dev-libs/newt/newt-0.52.13.ebuild
new file mode 100644
index 000000000000..6cd460fd2e37
--- /dev/null
+++ b/dev-libs/newt/newt-0.52.13.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/newt/newt-0.52.13.ebuild,v 1.1 2011/11/17 04:45:44 naota Exp $
+
+EAPI="3"
+PYTHON_DEPEND="2"
+
+inherit eutils multilib python autotools
+
+DESCRIPTION="Redhat's Newt windowing toolkit development files"
+HOMEPAGE="https://fedorahosted.org/newt/"
+SRC_URI="https://fedorahosted.org/releases/n/e/newt/${P}.tar.gz"
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+IUSE="gpm tcl nls"
+
+RDEPEND="=sys-libs/slang-2*
+ >=dev-libs/popt-1.6
+ elibc_uclibc? ( sys-libs/ncurses )
+ gpm? ( sys-libs/gpm )
+ tcl? ( =dev-lang/tcl-8.5* )
+ "
+
+DEPEND="${RDEPEND}"
+
+pkg_setup() {
+ python_set_active_version 2
+ python_pkg_setup
+}
+
+src_prepare() {
+ # bug 73850
+ if use elibc_uclibc; then
+ sed -i -e 's:-lslang:-lslang -lncurses:g' Makefile.in || die
+ fi
+
+ sed -i Makefile.in \
+ -e 's|-ltcl8.4|-ltcl8.5|g' \
+ -e 's|$(SHCFLAGS) -o|$(LDFLAGS) &|g' \
+ -e 's|-g -o|$(CFLAGS) $(LDFLAGS) -o|g' \
+ -e 's|-shared -o|$(CFLAGS) $(LDFLAGS) &|g' \
+ -e 's|instroot|DESTDIR|g' \
+ -e 's| make | $(MAKE) |g' \
+ || die "sed Makefile.in"
+
+ epatch "${FILESDIR}"/${P}-python.patch
+ epatch "${FILESDIR}"/${P}-gold.patch
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_with gpm gpm-support) \
+ $(use_with tcl) \
+ $(use_enable nls)
+}
+
+src_compile() {
+ emake PYTHONVERS="$(PYTHON)" || die "emake failed"
+}
+
+src_install () {
+ emake \
+ DESTDIR="${D}" \
+ PYTHONVERS="$(PYTHON)" \
+ install || die "make install failed"
+ dodoc peanuts.py popcorn.py tutorial.sgml
+ doman whiptail.1
+}
+
+pkg_postinst() {
+ python_mod_optimize snack.py
+}
+
+pkg_postrm() {
+ python_mod_cleanup snack.py
+}