diff options
author | Lukasz Strzygowski <lucass@gentoo.org> | 2007-02-09 13:50:49 +0000 |
---|---|---|
committer | Lukasz Strzygowski <lucass@gentoo.org> | 2007-02-09 13:50:49 +0000 |
commit | d777d8022ae9f4abd5a5ca5f6d4409c55c680c9a (patch) | |
tree | 3f50bf4dcdd9438f08fb0fd6ddcd79c3e787f0ea /dev-python/pygtk | |
parent | Keyword ~ia64. (diff) | |
download | gentoo-2-d777d8022ae9f4abd5a5ca5f6d4409c55c680c9a.tar.gz gentoo-2-d777d8022ae9f4abd5a5ca5f6d4409c55c680c9a.tar.bz2 gentoo-2-d777d8022ae9f4abd5a5ca5f6d4409c55c680c9a.zip |
- Version bump
- Fixed docs installation
- Fixed bug #165672
- Added examples use-flag
- Added NEED_PYTHON=2.3.5
(Portage version: 2.1.2-r7)
Diffstat (limited to 'dev-python/pygtk')
-rw-r--r-- | dev-python/pygtk/ChangeLog | 11 | ||||
-rw-r--r-- | dev-python/pygtk/files/digest-pygtk-2.10.4 | 6 | ||||
-rw-r--r-- | dev-python/pygtk/pygtk-2.10.4.ebuild | 88 |
3 files changed, 104 insertions, 1 deletions
diff --git a/dev-python/pygtk/ChangeLog b/dev-python/pygtk/ChangeLog index 715f639d61e0..378a77ab6361 100644 --- a/dev-python/pygtk/ChangeLog +++ b/dev-python/pygtk/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for dev-python/pygtk # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/pygtk/ChangeLog,v 1.143 2007/01/20 02:39:39 jer Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/pygtk/ChangeLog,v 1.144 2007/02/09 13:50:49 lucass Exp $ + +*pygtk-2.10.4 (09 Feb 2007) + + 09 Feb 2007; Lukasz Strzygowski <lucass@gentoo.org> +pygtk-2.10.4.ebuild: + - Version bump + - Fixed docs installation + - Fixed bug #165672 + - Added examples use-flag + - Added NEED_PYTHON=2.3.5 20 Jan 2007; Jeroen Roovers <jer@gentoo.org> pygtk-2.10.3.ebuild: Stable for HPPA (bug #156662). diff --git a/dev-python/pygtk/files/digest-pygtk-2.10.4 b/dev-python/pygtk/files/digest-pygtk-2.10.4 new file mode 100644 index 000000000000..f8e0d65a460a --- /dev/null +++ b/dev-python/pygtk/files/digest-pygtk-2.10.4 @@ -0,0 +1,6 @@ +MD5 89afe242275a3fce57b4ffb5fadc5888 pygtk-2.10.4.tar.bz2 1888801 +RMD160 7f3d301ee866d6c3b893b6ff05ef0bdf7fb10c4e pygtk-2.10.4.tar.bz2 1888801 +SHA256 ab9ad4481af435894db27e78010f6bbc21c62252dbe7a254121453419edde8f5 pygtk-2.10.4.tar.bz2 1888801 +MD5 ad0624dd26a19fbb9286c1c7711a60bc pygtk2reference-2.9.0.tar.bz2 759824 +RMD160 966cae10fa93b512f565aa0d552a8c83fe5de53f pygtk2reference-2.9.0.tar.bz2 759824 +SHA256 a01cf19a26aca49b2522f6c987cb48bcc9a2a393b4383709707acd5a994e00fd pygtk2reference-2.9.0.tar.bz2 759824 diff --git a/dev-python/pygtk/pygtk-2.10.4.ebuild b/dev-python/pygtk/pygtk-2.10.4.ebuild new file mode 100644 index 000000000000..8417bfe8e8cd --- /dev/null +++ b/dev-python/pygtk/pygtk-2.10.4.ebuild @@ -0,0 +1,88 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/pygtk/pygtk-2.10.4.ebuild,v 1.1 2007/02/09 13:50:49 lucass Exp $ + +NEED_PYTHON=2.3.5 + +inherit gnome.org python flag-o-matic + +DESCRIPTION="GTK+2 bindings for Python" +HOMEPAGE="http://www.pygtk.org/" + +DOC_FILE="pygtk2reference-2.9.0.tar.bz2" +SRC_URI="${SRC_URI} + doc? ( mirror://gnome/sources/pygtk2reference/2.9/${DOC_FILE} )" + +LICENSE="LGPL-2.1" +SLOT="2" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86" +IUSE="doc examples opengl" + +RDEPEND=">=dev-libs/glib-2.8.0 + >=x11-libs/pango-1.10.0 + >=dev-libs/atk-1.8.0 + >=x11-libs/gtk+-2.10.0 + >=gnome-base/libglade-2.5.0 + >=dev-python/pycairo-1.0.2 + >=dev-python/pygobject-2.12.1 + !arm? ( dev-python/numeric ) + opengl? ( virtual/opengl + dev-python/pyopengl + >=x11-libs/gtkglarea-1.99 + )" + +DEPEND="${RDEPEND} + doc? ( dev-libs/libxslt >=app-text/docbook-xsl-stylesheets-1.70.1 ) + >=dev-util/pkgconfig-0.9" + +src_unpack() { + unpack ${A} + use doc || sed -e 's/\(SUBDIRS =.*\) docs$/\1/' -i "${S}"/Makefile.am + + # disable pyc compiling + mv "${S}"/py-compile "${S}"/py-compile.orig + ln -s /bin/true "${S}"/py-compile +} + +src_compile() { + use hppa && append-flags -ffunction-sections + econf $(use_enable doc docs) --enable-thread || die + # possible problems with parallel builds (#45776) + emake -j1 || die +} + +src_install() { + make DESTDIR="${D}" install || die + dodoc AUTHORS ChangeLog INSTALL MAPPING NEWS README THREADS TODO + + if use examples; then + rm examples/Makefile* + insinto /usr/share/doc/${PF} + doins -r examples + fi + + if use doc; then + insinto /usr/share/gtk-doc/html/pygtk + cd "${WORKDIR}"/pygtk2reference + doins -r cursors icons images + fi +} + +src_test() { + cd tests + make check-local +} + +pkg_postinst() { + python_version + python_mod_optimize /usr/share/pygtk/2.0/codegen /usr/$(get_libdir)/python${PYVER}/site-packages/gtk-2.0 +} + +pkg_postrm() { + python_version + python_mod_cleanup /usr/share/pygtk/2.0/codegen + python_mod_cleanup + rm -f ${ROOT}/usr/$(get_libdir)/python${PYVER}/site-packages/pygtk.{py,pth} + alternatives_auto_makesym /usr/$(get_libdir)/python${PYVER}/site-packages/pygtk.py pygtk.py-[0-9].[0-9] + alternatives_auto_makesym /usr/$(get_libdir)/python${PYVER}/site-packages/pygtk.pth pygtk.pth-[0-9].[0-9] +} |