diff options
author | Tupone Alfredo <tupone@gentoo.org> | 2018-10-31 21:47:31 +0100 |
---|---|---|
committer | Tupone Alfredo <tupone@gentoo.org> | 2018-10-31 21:47:31 +0100 |
commit | fd2d8d1921ffd9aa3edcadea65a3097aeb768bf0 (patch) | |
tree | 4bb55ca79fbfcb6289d52d065e0a3abb06ee39e1 /dev-tcltk/tdom/tdom-0.9.1.ebuild | |
parent | www-client/firefox: bump to v63.0.1 (diff) | |
download | gentoo-fd2d8d1921ffd9aa3edcadea65a3097aeb768bf0.tar.gz gentoo-fd2d8d1921ffd9aa3edcadea65a3097aeb768bf0.tar.bz2 gentoo-fd2d8d1921ffd9aa3edcadea65a3097aeb768bf0.zip |
dev-tcltk/tdom: Version bump to 0.9.1
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Package-Manager: Portage-2.3.49, Repoman-2.3.11
Diffstat (limited to 'dev-tcltk/tdom/tdom-0.9.1.ebuild')
-rw-r--r-- | dev-tcltk/tdom/tdom-0.9.1.ebuild | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/dev-tcltk/tdom/tdom-0.9.1.ebuild b/dev-tcltk/tdom/tdom-0.9.1.ebuild new file mode 100644 index 000000000000..26d4c0f9b84c --- /dev/null +++ b/dev-tcltk/tdom/tdom-0.9.1.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools eutils flag-o-matic multilib toolchain-funcs + +MY_P="tDOM-${PV}" + +DESCRIPTION="A XML/DOM/XPath/XSLT Implementation for Tcl" +HOMEPAGE="https://core.tcl.tk/tdom/" +SRC_URI="http://tdom.org/downloads/${P}-src.tgz" + +LICENSE="MPL-1.1" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~s390 ~sparc ~x86 ~amd64-fbsd ~amd64-linux ~x86-linux" +IUSE="static-libs threads" + +DEPEND=" + dev-lang/tcl:0= + dev-libs/expat" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}/"${P}.patch + "${FILESDIR}/"${P}-tnc.patch + "${FILESDIR}/"${PN}-0.8.3-soname.patch +) + +src_prepare() { + append-libs -lm + sed \ + -e 's:-O2::g' \ + -e 's:-pipe::g' \ + -e 's:-fomit-frame-pointer::g' \ + -e '/SHLIB_LD_LIBS/s:\"$: ${TCL_LIB_FLAG}":g' \ + -i {.,extensions/tnc}/configure tclconfig/tcl.m4 || die + default + eautoreconf +} + +src_configure() { + local myeconfargs=( + $(use_enable threads) + --enable-shared + --with-tcl="${EPREFIX}"/usr/$(get_libdir) + ) + + cd "${S}"/unix && ECONF_SOURCE=".." econf ${myeconfargs} \ + --disable-tdomalloc --with-expat + cd "${S}"/extensions/tdomhtml && econf + 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_test() { + cp lib/tdom.tcl . + tclsh tests/all.tcl +} + +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 +} |