summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTupone Alfredo <tupone@gentoo.org>2018-10-31 21:47:31 +0100
committerTupone Alfredo <tupone@gentoo.org>2018-10-31 21:47:31 +0100
commitfd2d8d1921ffd9aa3edcadea65a3097aeb768bf0 (patch)
tree4bb55ca79fbfcb6289d52d065e0a3abb06ee39e1 /dev-tcltk
parentwww-client/firefox: bump to v63.0.1 (diff)
downloadgentoo-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')
-rw-r--r--dev-tcltk/tdom/Manifest1
-rw-r--r--dev-tcltk/tdom/files/tdom-0.9.1-tnc.patch55
-rw-r--r--dev-tcltk/tdom/files/tdom-0.9.1.patch58
-rw-r--r--dev-tcltk/tdom/tdom-0.9.1.ebuild85
4 files changed, 199 insertions, 0 deletions
diff --git a/dev-tcltk/tdom/Manifest b/dev-tcltk/tdom/Manifest
index b3b4c2eb776..da4d8a71d02 100644
--- a/dev-tcltk/tdom/Manifest
+++ b/dev-tcltk/tdom/Manifest
@@ -1 +1,2 @@
DIST tDOM-0.8.3.tgz 990367 BLAKE2B 172c20fba9a5d66564f94b76b2a732d0ec1d281386b957b151e300c824d96dea746f355446896eda1953aab9708da8916e05083d991c9ef317f11928ec04a541 SHA512 aa5352bc9b67c45d115e52dbf2cf153a3db89f851b51c1cd574af69b02c466f643df0b5448f7d105245246d20a92f80605f16bd927cd7925c1f2007827f2dc20
+DIST tdom-0.9.1-src.tgz 1100163 BLAKE2B 25fca8ae7b2dbcfaca711df90e42479dfba57e9aaf0e616c519b6e74bafb1b5fa371c48abe0875126aa8e1979196a10f6030a0ffe8786b21f7685e8c2ddcb16c SHA512 40dd5ec942ac4cce2fd78f53caf3a2b5e2fae9fbc5617923d94f07c9f530fa936696d79abe080ade2edbc4f4a86c35898b000180f20d9320edd8bfa3fa19d863
diff --git a/dev-tcltk/tdom/files/tdom-0.9.1-tnc.patch b/dev-tcltk/tdom/files/tdom-0.9.1-tnc.patch
new file mode 100644
index 00000000000..36d844d74cb
--- /dev/null
+++ b/dev-tcltk/tdom/files/tdom-0.9.1-tnc.patch
@@ -0,0 +1,55 @@
+--- a/extensions/tnc/Makefile.in 2018-10-31 21:18:18.701695694 +0100
++++ b/extensions/tnc/Makefile.in 2018-10-31 21:19:25.621555122 +0100
+@@ -372,25 +372,25 @@
+ #========================================================================
+
+ install-lib-binaries: binaries
+- @$(INSTALL_DATA_DIR) $(DESTDIR)$(pkglibdir)
++ @$(INSTALL_DATA_DIR) $(DESTDIR)$(libdir)
+ @list='$(lib_BINARIES)'; for p in $$list; do \
+ if test -f $$p; then \
+- echo " $(INSTALL_LIBRARY) $$p $(DESTDIR)$(pkglibdir)/$$p"; \
+- $(INSTALL_LIBRARY) $$p $(DESTDIR)$(pkglibdir)/$$p; \
++ echo " $(INSTALL_LIBRARY) $$p $(DESTDIR)$(libdir)/$$p"; \
++ $(INSTALL_LIBRARY) $$p $(DESTDIR)$(libdir)/$$p; \
+ stub=`echo $$p|sed -e "s/.*\(stub\).*/\1/"`; \
+ if test "x$$stub" = "xstub"; then \
+- echo " $(RANLIB_STUB) $(DESTDIR)$(pkglibdir)/$$p"; \
+- $(RANLIB_STUB) $(DESTDIR)$(pkglibdir)/$$p; \
++ echo " $(RANLIB_STUB) $(DESTDIR)$(libdir)/$$p"; \
++ $(RANLIB_STUB) $(DESTDIR)$(libdir)/$$p; \
+ else \
+- echo " $(RANLIB) $(DESTDIR)$(pkglibdir)/$$p"; \
+- $(RANLIB) $(DESTDIR)$(pkglibdir)/$$p; \
++ echo " $(RANLIB) $(DESTDIR)$(libdir)/$$p"; \
++ $(RANLIB) $(DESTDIR)$(libdir)/$$p; \
+ fi; \
+ ext=`echo $$p|sed -e "s/.*\.//"`; \
+ if test "x$$ext" = "xdll"; then \
+ lib=`basename $$p|sed -e 's/.[^.]*$$//'`.lib; \
+ if test -f $$lib; then \
+- echo " $(INSTALL_DATA) $$lib $(DESTDIR)$(pkglibdir)/$$lib"; \
+- $(INSTALL_DATA) $$lib $(DESTDIR)$(pkglibdir)/$$lib; \
++ echo " $(INSTALL_DATA) $$lib $(DESTDIR)$(libdir)/$$lib"; \
++ $(INSTALL_DATA) $$lib $(DESTDIR)$(libdir)/$$lib; \
+ fi; \
+ fi; \
+ fi; \
+@@ -398,13 +398,13 @@
+ @list='$(PKG_TCL_SOURCES)'; for p in $$list; do \
+ if test -f $(srcdir)/$$p; then \
+ destp=`basename $$p`; \
+- echo " Install $$destp $(DESTDIR)$(pkglibdir)/$$destp"; \
+- $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(pkglibdir)/$$destp; \
++ echo " Install $$destp $(DESTDIR)$(libdir)/$$destp"; \
++ $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(libdir)/$$destp; \
+ fi; \
+ done
+ @if test "x$(SHARED_BUILD)" = "x1"; then \
+- echo " Install pkgIndex.tcl $(DESTDIR)$(pkglibdir)"; \
+- $(INSTALL_DATA) pkgIndex.tcl $(DESTDIR)$(pkglibdir); \
++ echo " Install pkgIndex.tcl $(DESTDIR)$(libdir)"; \
++ $(INSTALL_DATA) pkgIndex.tcl $(DESTDIR)$(libdir); \
+ fi
+
+ #========================================================================
diff --git a/dev-tcltk/tdom/files/tdom-0.9.1.patch b/dev-tcltk/tdom/files/tdom-0.9.1.patch
new file mode 100644
index 00000000000..00d3df2a306
--- /dev/null
+++ b/dev-tcltk/tdom/files/tdom-0.9.1.patch
@@ -0,0 +1,58 @@
+--- a/Makefile.in 2018-10-31 21:12:16.856861967 +0100
++++ b/Makefile.in 2018-10-31 21:15:26.611628532 +0100
+@@ -326,7 +326,7 @@
+
+ pkgIndex.tcl-hand:
+ @(echo 'package ifneeded $(PACKAGE_NAME) $(PACKAGE_VERSION) \
+- "load [list [file join $$dir $(PKG_LIB_FILE)]];\
++ "load $(PKG_LIB_FILE);\
+ source [list [file join $$dir tdom.tcl]]"'\
+ ) > pkgIndex.tcl
+
+@@ -422,7 +422,7 @@
+ #========================================================================
+
+ install-lib-binaries: binaries
+- @$(INSTALL_DATA_DIR) $(DESTDIR)$(pkglibdir)
++ @$(INSTALL_DATA_DIR) $(DESTDIR)$(libdir)
+ @list='$(lib_BINARIES)'; for p in $$list; do \
+ if test -f $$p; then \
+ if test "x$$stub" = "xstub"; then \
+@@ -432,15 +432,15 @@
+ echo " $(RANLIB) $$p"; \
+ $(RANLIB) $$p; \
+ fi; \
+- echo " $(INSTALL_LIBRARY) $$p $(DESTDIR)$(pkglibdir)/$$p"; \
+- $(INSTALL_LIBRARY) $$p $(DESTDIR)$(pkglibdir)/$$p; \
++ echo " $(INSTALL_LIBRARY) $$p $(DESTDIR)$(libdir)/$$p"; \
++ $(INSTALL_LIBRARY) $$p $(DESTDIR)$(libdir)/$$p; \
+ stub=`echo $$p|sed -e "s/.*\(stub\).*/\1/"`; \
+ ext=`echo $$p|sed -e "s/.*\.//"`; \
+ if test "x$$ext" = "xdll"; then \
+ lib=`basename $$p|sed -e 's/.[^.]*$$//'`.lib; \
+ if test -f $$lib; then \
+- echo " $(INSTALL_DATA) $$lib $(DESTDIR)$(pkglibdir)/$$lib"; \
+- $(INSTALL_DATA) $$lib $(DESTDIR)$(pkglibdir)/$$lib; \
++ echo " $(INSTALL_DATA) $$lib $(DESTDIR)$(libdir)/$$lib"; \
++ $(INSTALL_DATA) $$lib $(DESTDIR)$(libdir)/$$lib; \
+ fi; \
+ fi; \
+ fi; \
+@@ -450,13 +450,13 @@
+ @list='$(PKG_TCL_SOURCES)'; for p in $$list; do \
+ if test -f $(srcdir)/$$p; then \
+ destp=`basename $$p`; \
+- echo " Install $$destp $(DESTDIR)$(pkglibdir)/$$destp"; \
+- $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(pkglibdir)/$$destp; \
++ echo " Install $$destp $(DESTDIR)$(libdir)/$$destp"; \
++ $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(libdir)/$$destp; \
+ fi; \
+ done
+ @if test "x$(SHARED_BUILD)" = "x1"; then \
+- echo " Install pkgIndex.tcl $(DESTDIR)$(pkglibdir)"; \
+- $(INSTALL_DATA) pkgIndex.tcl $(DESTDIR)$(pkglibdir); \
++ echo " Install pkgIndex.tcl $(DESTDIR)$(libdir)"; \
++ $(INSTALL_DATA) pkgIndex.tcl $(DESTDIR)$(libdir); \
+ fi
+
+ #========================================================================
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 00000000000..26d4c0f9b84
--- /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
+}