diff options
author | Alfredo Tupone <tupone@gentoo.org> | 2023-01-19 08:07:01 +0100 |
---|---|---|
committer | Alfredo Tupone <tupone@gentoo.org> | 2023-01-19 08:07:20 +0100 |
commit | 42267f3f7730c31ad246d7ea62357fe1a240bff3 (patch) | |
tree | 299fe956db83bd96be7dbd8546541af470ce5ed6 /dev-tcltk/tdom/tdom-0.9.3.ebuild | |
parent | dev-python/nltk-data: Remove last-rited pkg (diff) | |
download | gentoo-42267f3f7730c31ad246d7ea62357fe1a240bff3.tar.gz gentoo-42267f3f7730c31ad246d7ea62357fe1a240bff3.tar.bz2 gentoo-42267f3f7730c31ad246d7ea62357fe1a240bff3.zip |
dev-tcltk/tdom: add 0.9.3
Bug: https://bugs.gentoo.org/884415
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'dev-tcltk/tdom/tdom-0.9.3.ebuild')
-rw-r--r-- | dev-tcltk/tdom/tdom-0.9.3.ebuild | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/dev-tcltk/tdom/tdom-0.9.3.ebuild b/dev-tcltk/tdom/tdom-0.9.3.ebuild new file mode 100644 index 000000000000..b5944cf4da05 --- /dev/null +++ b/dev-tcltk/tdom/tdom-0.9.3.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools flag-o-matic + +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 ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" +IUSE="threads" + +DEPEND=" + dev-lang/tcl:0= + dev-libs/expat" +RDEPEND="${DEPEND}" + +S="${WORKDIR}"/${P}-src + +PATCHES=( "${FILESDIR}"/${PN}-0.9.2-useCC.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 tclconfig/tcl.m4 || die + mv extensions/tnc/configure.{in,ac} || die + mv extensions/example/configure.{in,ac} || 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() { + cd unix && default +} + +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 +} |