Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 231841 Details for
Bug 312195
dev-libs/libxslt: Verify and potentially improve Python-related code
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
libxslt-1.1.26.ebuild.patch
libxslt-1.1.26.ebuild.patch (text/plain), 2.16 KB, created by
Arfrever Frehtes Taifersar Arahesis (RETIRED)
on 2010-05-17 18:22:26 UTC
(
hide
)
Description:
libxslt-1.1.26.ebuild.patch
Filename:
MIME Type:
Creator:
Arfrever Frehtes Taifersar Arahesis (RETIRED)
Created:
2010-05-17 18:22:26 UTC
Size:
2.16 KB
patch
obsolete
>--- libxslt-1.1.26.ebuild >+++ libxslt-1.1.26.ebuild >@@ -2,8 +2,12 @@ > # Distributed under the terms of the GNU General Public License v2 > # $Header: /var/cvsroot/gentoo-x86/dev-libs/libxslt/libxslt-1.1.26.ebuild,v 1.12 2010/01/25 19:29:16 armin76 Exp $ > >-EAPI=2 >-inherit autotools eutils toolchain-funcs >+EAPI="2" >+PYTHON_DEPEND="python? 2" >+SUPPORT_PYTHON_ABIS="1" >+RESTRICT_PYTHON_ABIS="3.*" >+ >+inherit autotools eutils python toolchain-funcs > > DESCRIPTION="XSLT libraries and tools" > HOMEPAGE="http://www.xmlsoft.org/" >@@ -15,13 +19,22 @@ > IUSE="crypt debug python" > > DEPEND=">=dev-libs/libxml2-2.6.27 >- crypt? ( >=dev-libs/libgcrypt-1.1.42 ) >- python? ( >=dev-lang/python-2.5 )" >+ crypt? ( >=dev-libs/libgcrypt-1.1.42 )" >+ >+pkg_setup() { >+ if use python; then >+ python_pkg_setup >+ fi >+} > > src_prepare() { > epatch "${FILESDIR}"/libxslt.m4-${P}.patch \ > "${FILESDIR}"/${PN}-1.1.23-parallel-install.patch \ > "${FILESDIR}"/${P}-undefined.patch >+ >+ # Python bindings are built/tested/installed manually. >+ sed -e "s/@PYTHON_SUBDIR@//" -i Makefile.am || die "sed failed" >+ > eautoreconf > epunt_cxx > } >@@ -43,9 +56,57 @@ > $(use_with debug mem-debug) > } > >+src_compile() { >+ default >+ >+ if use python; then >+ python_copy_sources python >+ building() { >+ emake PYTHON_INCLUDES="$(python_get_includedir)" \ >+ PYTHON_SITE_PACKAGES="$(python_get_sitedir)" >+ } >+ python_execute_function -s --source-dir python building >+ fi >+} >+ >+src_test() { >+ default >+ >+ if use python; then >+ testing() { >+ emake test >+ } >+ python_execute_function -s --source-dir python testing >+ fi >+} >+ > src_install() { > emake DESTDIR="${D}" install || die >+ >+ if use python; then >+ installation() { >+ emake DESTDIR="${D}" \ >+ PYTHON_SITE_PACKAGES="$(python_get_sitedir)" \ >+ install >+ } >+ python_execute_function -s --source-dir python installation >+ >+ python_clean_installation_image >+ fi >+ > mv -vf "${D}"/usr/share/doc/${PN}-python-${PV} \ > "${D}"/usr/share/doc/${PF}/python > dodoc AUTHORS ChangeLog FEATURES NEWS README TODO || die > } >+ >+pkg_postinst() { >+ if use python; then >+ python_mod_optimize libxslt.py >+ fi >+} >+ >+pkg_postrm() { >+ if use python; then >+ python_mod_cleanup libxslt.py >+ fi >+}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 312195
:
226955
| 231841