Summary: | app-text/gnome-doc-utils: Verify and potentially improve Python-related code | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Arfrever Frehtes Taifersar Arahesis (RETIRED) <arfrever> |
Component: | Current packages | Assignee: | Gentoo Linux Gnome Desktop Team <gnome> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | CC: | arc, dieter.ferdinand, sgml, xmw |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 308257, 313471 |
Description
Arfrever Frehtes Taifersar Arahesis (RETIRED)
2010-03-30 16:48:45 UTC
*** Bug 319769 has been marked as a duplicate of this bug. *** --- gnome-doc-utils-0.20.1.ebuild.old 2010-06-03 18:48:32.000000000 +0000 +++ gnome-doc-utils-0.20.1.ebuild 2010-06-03 18:49:55.000000000 +0000 @@ -4,6 +4,8 @@ EAPI="2" +PYTHON_DEPEND="2:2.4" + inherit gnome2 python DESCRIPTION="A collection of documentation utilities for the Gnome project" @@ -15,8 +17,7 @@ IUSE="" RDEPEND=">=dev-libs/libxml2-2.6.12[python] - >=dev-libs/libxslt-1.1.8 - >=dev-lang/python-2.4" + >=dev-libs/libxslt-1.1.8" DEPEND="${RDEPEND} sys-devel/gettext >=dev-util/intltool-0.35 @@ -35,6 +36,7 @@ pkg_setup() { G2CONF="${G2CONF} --disable-scrollkeeper" + python_set_active_version 2 } src_prepare() { sry, i've mised a shebang entry to xml2po --- gnome-doc-utils-0.20.1.ebuild.old 2010-06-03 18:48:32.000000000 +0000 +++ gnome-doc-utils-0.20.1.ebuild 2010-06-03 19:50:02.000000000 +0000 @@ -4,6 +4,8 @@ EAPI="2" +PYTHON_DEPEND="2:2.4" + inherit gnome2 python DESCRIPTION="A collection of documentation utilities for the Gnome project" @@ -15,8 +17,7 @@ IUSE="" RDEPEND=">=dev-libs/libxml2-2.6.12[python] - >=dev-libs/libxslt-1.1.8 - >=dev-lang/python-2.4" + >=dev-libs/libxslt-1.1.8" DEPEND="${RDEPEND} sys-devel/gettext >=dev-util/intltool-0.35 @@ -35,6 +36,7 @@ pkg_setup() { G2CONF="${G2CONF} --disable-scrollkeeper" + python_set_active_version 2 } src_prepare() { @@ -43,6 +45,8 @@ # disable pyc compiling mv py-compile py-compile.orig ln -s $(type -P true) py-compile + + python_convert_shebangs -r 2 . } pkg_postinst() { sorry for the bugspam, ithought correcting the shebang on the xml2po.in would be enought. This one does it as last action in src_install. I think that gnome2_src_install is the implied function w/o explicit src_install here. caling python_src_install failes with an 'not supportorted on non multi-abi ebuilds'. --- gnome-doc-utils-0.20.1.ebuild.old 2010-06-03 18:48:32.000000000 +0000 +++ gnome-doc-utils-0.20.1.ebuild 2010-06-03 20:00:41.000000000 +0000 @@ -4,6 +4,8 @@ EAPI="2" +PYTHON_DEPEND="2:2.4" + inherit gnome2 python DESCRIPTION="A collection of documentation utilities for the Gnome project" @@ -15,8 +17,7 @@ IUSE="" RDEPEND=">=dev-libs/libxml2-2.6.12[python] - >=dev-libs/libxslt-1.1.8 - >=dev-lang/python-2.4" + >=dev-libs/libxslt-1.1.8" DEPEND="${RDEPEND} sys-devel/gettext >=dev-util/intltool-0.35 @@ -35,6 +36,7 @@ pkg_setup() { G2CONF="${G2CONF} --disable-scrollkeeper" + python_set_active_version 2 } src_prepare() { @@ -45,6 +47,12 @@ ln -s $(type -P true) py-compile } +src_install() { + gnome2_src_install + + python_convert_shebangs -r 2 "${D}" +} + pkg_postinst() { python_need_rebuild python_mod_optimize $(python_get_sitedir)/xml2po app-text/gnome-doc-utils-0.20.2 contains some fixes and only needs fix for shebangs. 29 Oct 2010; Gilles Dartiguelongue <eva@gentoo.org> gnome-doc-utils-0.20.2.ebuild: Enhance multiple python ABI support, bug #312103. (In reply to comment #6) > 29 Oct 2010; Gilles Dartiguelongue <eva@gentoo.org> > gnome-doc-utils-0.20.2.ebuild: > Enhance multiple python ABI support, bug #312103. > Thanks a lot (I have just updated to fixed gnome-doc-utils to stop getting false positives) *** Bug 349369 has been marked as a duplicate of this bug. *** |