diff options
author | Justin Lecher <jlec@gentoo.org> | 2012-01-06 12:19:24 +0000 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2012-01-06 12:19:24 +0000 |
commit | 990595615f16bee21c5b55ae462a60127c037291 (patch) | |
tree | 4d3fbc30c75738b1ddd7c9aa9a2807c008cbe513 /dev-tcltk/tdom/tdom-0.8.3-r1.ebuild | |
parent | Set needed permissions to remove colliding file when using 'userpriv', bug #3... (diff) | |
download | historical-990595615f16bee21c5b55ae462a60127c037291.tar.gz historical-990595615f16bee21c5b55ae462a60127c037291.tar.bz2 historical-990595615f16bee21c5b55ae462a60127c037291.zip |
Drop all FLAGS from upstream, correct soname symlink, #397859 & #397861
Package-Manager: portage-2.2.0_alpha84/cvs/Linux x86_64
Diffstat (limited to 'dev-tcltk/tdom/tdom-0.8.3-r1.ebuild')
-rw-r--r-- | dev-tcltk/tdom/tdom-0.8.3-r1.ebuild | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/dev-tcltk/tdom/tdom-0.8.3-r1.ebuild b/dev-tcltk/tdom/tdom-0.8.3-r1.ebuild new file mode 100644 index 000000000000..822b0f1fb911 --- /dev/null +++ b/dev-tcltk/tdom/tdom-0.8.3-r1.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-tcltk/tdom/tdom-0.8.3-r1.ebuild,v 1.1 2012/01/06 12:19:24 jlec Exp $ + +EAPI=4 + +inherit autotools eutils multilib + +MY_P="tDOM-${PV}" + +DESCRIPTION="A XML/DOM/XPath/XSLT Implementation for Tcl" +HOMEPAGE="http://tdom.github.com/" +#SRC_URI="http://cloud.github.com/downloads/tDOM/${PN}/${MY_P}.tgz" +SRC_URI="mirror://github/tDOM/${PN}/${MY_P}.tgz" + +LICENSE="MPL-1.1" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux" +IUSE="static-libs threads" + +DEPEND=" + dev-lang/tcl + dev-libs/expat" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${MY_P}" + +PATCHES=( + "${FILESDIR}/"${PN}-0.8.2.patch + "${FILESDIR}/"${P}-soname.patch + "${FILESDIR}/"${P}-expat.patch + "${FILESDIR}/"${PN}-0.8.2-tnc.patch + ) + +src_prepare() { + sed \ + -e 's:-O2::g' \ + -e 's:-pipe::g' \ + -e 's:-fomit-frame-pointer::g' \ + -i {.,extensions/tnc}/configure tclconfig/tcl.m4 || die + epatch "${PATCHES[@]}" + eautoreconf +} + +src_configure() { + local myeconfargs=( + $(use_enable threads) + --enable-shared + --disable-tdomalloc + --with-expat + ) + + cd "${S}"/unix && ECONF_SOURCE=".." econf ${myeconfargs} + cd "${S}"/extensions/tdomhtml && econf ${myeconfargs} + cd "${S}"/extensions/tnc && econf ${myeconfargs} +} + +src_compile() { + local dir + + for dir in "${S}"/unix "${S}"/extensions/tnc; do + pushd ${dir} > /dev/null + emake + popd > /dev/null + done +} + +src_install() { + local dir + + dodoc CHANGES ChangeLog README* + + for dir in "${S}"/unix "${S}"/extensions/tdomhtml "${S}"/extensions/tnc; do + pushd ${dir} > /dev/null + emake DESTDIR="${D}" install + popd > /dev/null + done + + if ! use static-libs; then + einfo "Removing static libs ..." + rm -f "${ED}"/usr/$(get_libdir)/*.{a,la} || die + fi +} |