diff options
Diffstat (limited to 'dev-libs/libxslt/libxslt-1.1.26-r4.ebuild')
-rw-r--r-- | dev-libs/libxslt/libxslt-1.1.26-r4.ebuild | 137 |
1 files changed, 0 insertions, 137 deletions
diff --git a/dev-libs/libxslt/libxslt-1.1.26-r4.ebuild b/dev-libs/libxslt/libxslt-1.1.26-r4.ebuild deleted file mode 100644 index 05e8b76c4a8d..000000000000 --- a/dev-libs/libxslt/libxslt-1.1.26-r4.ebuild +++ /dev/null @@ -1,137 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/libxslt/libxslt-1.1.26-r4.ebuild,v 1.5 2012/09/23 17:30:21 armin76 Exp $ - -EAPI="4" -PYTHON_DEPEND="python? 2" -SUPPORT_PYTHON_ABIS="1" -RESTRICT_PYTHON_ABIS="3.* *-jython *-pypy-*" - -inherit autotools eutils python toolchain-funcs - -DESCRIPTION="XSLT libraries and tools" -HOMEPAGE="http://www.xmlsoft.org/" -SRC_URI="ftp://xmlsoft.org/${PN}/${P}.tar.gz" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ~ppc ~ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd" -IUSE="crypt debug python static-libs" - -DEPEND=">=dev-libs/libxml2-2.6.27:2 - crypt? ( >=dev-libs/libgcrypt-1.1.42 )" -RDEPEND="${DEPEND}" - -pkg_setup() { - if use python; then - python_pkg_setup - fi - DOCS="AUTHORS ChangeLog FEATURES NEWS README TODO" -} - -src_prepare() { - epatch "${FILESDIR}"/libxslt.m4-${P}.patch \ - "${FILESDIR}"/${PN}-1.1.23-parallel-install.patch \ - "${FILESDIR}"/${P}-undefined.patch \ - "${FILESDIR}"/${P}-disable_static_modules.patch - - # Python bindings are built/tested/installed manually. - sed -e "s/@PYTHON_SUBDIR@//" -i Makefile.am || die "sed failed" - - # Fix generate-id() to not expose object addresses, bug #358615 - epatch "${FILESDIR}/${P}-id-generation.patch" - - # Fix off-by-one in xsltCompilePatternInternal, bug #402861 - epatch "${FILESDIR}/${P}-pattern-out-of-bounds-read.patch" - - # Namespace nodes require special treatment, bug #433603 - epatch "${FILESDIR}/${P}-node-type-"{1,2,3}.patch - - # Use-after-free errors, bug #433603 - epatch "${FILESDIR}/${P}-pattern-compile-crash.patch" - epatch "${FILESDIR}/${P}-generate-id-crash.patch" - - # Build fix for freebsd, bug #420335 - epatch "${FILESDIR}/${P}-posix-comparison.patch" - - eautoreconf - epunt_cxx -} - -src_configure() { - # libgcrypt is missing pkg-config file, so fixing cross-compile - # here. see bug 267503. - if tc-is-cross-compiler; then - export LIBGCRYPT_CONFIG="${SYSROOT}/usr/bin/libgcrypt-config" - fi - - econf \ - --disable-dependency-tracking \ - --with-html-dir=/usr/share/doc/${PF} \ - --with-html-subdir=html \ - $(use_with crypt crypto) \ - $(use_with python) \ - $(use_with debug) \ - $(use_with debug mem-debug) \ - $(use_enable static-libs static) -} - -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_VERSION="$(python_get_version)" - } - 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() { - default - - 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 "${ED}"/usr/share/doc/${PN}-python-${PV} \ - "${ED}"/usr/share/doc/${PF}/python - - if ! use static-libs; then - # Remove useless .la files - find "${D}" -name '*.la' -exec rm -f {} + || die "la file removal failed" - fi -} - -pkg_postinst() { - if use python; then - python_mod_optimize libxslt.py - fi -} - -pkg_postrm() { - if use python; then - python_mod_cleanup libxslt.py - fi -} |