summaryrefslogtreecommitdiff
path: root/dev-tcltk/tclxml
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-tcltk/tclxml
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-tcltk/tclxml')
-rw-r--r--dev-tcltk/tclxml/Manifest7
-rw-r--r--dev-tcltk/tclxml/files/tclxml-3.2-fix-implicit-declarations.patch12
-rw-r--r--dev-tcltk/tclxml/files/tclxml-3.2-format-security.patch16
-rw-r--r--dev-tcltk/tclxml/metadata.xml11
-rw-r--r--dev-tcltk/tclxml/tclxml-3.2-r2.ebuild52
5 files changed, 98 insertions, 0 deletions
diff --git a/dev-tcltk/tclxml/Manifest b/dev-tcltk/tclxml/Manifest
new file mode 100644
index 000000000000..06f4c58e6936
--- /dev/null
+++ b/dev-tcltk/tclxml/Manifest
@@ -0,0 +1,7 @@
+AUX tclxml-3.2-fix-implicit-declarations.patch 488 SHA256 13028681e6a4a272f0fb579c744189b95ca6ae56ab39869421af27e9282f8eec SHA512 9f8a0c55886c01324e318aec70c99b85f845567a486daddbb897900f242d8a9fec99026c8f6ec7d73e5dca8ee22bf851dc64eab2a83a3a2c959828a24e79e4ca WHIRLPOOL 79c3fc4532bfc04317ef6e3d8583ece18ec4668f8999927e6c0823fe66e045cf74494e734c1e332ee47ccea86fae02d1467af9ba2b4e7ee963a09526aa229067
+AUX tclxml-3.2-format-security.patch 647 SHA256 093b73a367804592bce492ff263009e47b9d2a556f635049200e6ae935f90ae8 SHA512 2b76363f015400642f00ce24ef67fd8f7607cd6ed0a63a5768aa343fbe9d6a8af50e15ccebecff813aa0c6d0714d65626c31e2edc860b6b826e52952bb47d435 WHIRLPOOL 87ebea841487a14a7d190da3a22de82836355c9a024318c40ca6596eccbfaf43108ea9ebdbf169bba2ebe93b73914c5066fed4e9543487c7268df30e4c9b3ff5
+DIST tclxml-3.2.tar.gz 757594 SHA256 f4116b6680b249ce74b856a121762361ca09e6256f0c8ad578d1c661b822cb39 SHA512 5e7d45063c1a311d49ecc42f664bf7d88862fc19a46b64f52d038e2adfcc5b6964ae74d61b40bcf8eb4e1440f849339095fd8712bd39f0cb57e279acea58a3da WHIRLPOOL 6b0b04e2a0e27bc73bbcd595642c8ec024a36eb25d12a8f324835de95afd64dd25fa58c3109be1dec03b379852e14a79db81b3ea7f0f1c6896b07054dd9c8d13
+EBUILD tclxml-3.2-r2.ebuild 1125 SHA256 9f55d368ebf522bd83b54bc4aea861259b56ea1e2a2982c893d46e202d446843 SHA512 5c8701ca9bb8deaaefe05d18ead1e727004c2f7fc9464c90c76b28c3c4ed34ee8533cb76dfc30f6eaf84c09a11697e2ebc9a88d14dc541d08d93f3e93b2b74e0 WHIRLPOOL 64bda48c64a5b6cef7908e75c502b09ad94b2a013297d65860e5111f7f55bb82316965983dd409b65a131dcf7b7c347aa1422270fc9f8d1c4555b5135bf21826
+MISC ChangeLog 2797 SHA256 5a1f5630e367dff4add1612b69dad1ad44ea9ed3bc292185b05cf0b0458c95b2 SHA512 918b837e0c9ef9ddd30fbd9ebe9d5b2c6b9198554de92ec41acd443f5a7c47811fa9f9715e69913b133b4e5e5135b1e505e32cc3b6a087a61929aeffd314437f WHIRLPOOL 669fc0a94d01dcca7e372621acc1729ba98566090de4951800f84dbe599744a38907a9d06e81db2c1dccc5a38aa552bbb225b81d9800207926e8ccd10dc6d8be
+MISC ChangeLog-2015 6941 SHA256 8c77ff83d3fa3d73cd2a08d3c3afc140d419c5907eb5e4d8074be880126f11b5 SHA512 8d59fff8656f004b0ec45bf4db070aabe50394a92da41d0b2171d93834a461e2d515f315107492746674a518de6f9ea098d623f68a0dde122d4e84877cb5dd40 WHIRLPOOL 47307da6f289cad9b574c275a47544099c6915ee54a663c57f007f50b429e7ee8807d24b222c602c508ecf662dd752090059bc8081dafb14e678630da2dd6bb0
+MISC metadata.xml 329 SHA256 8d61e95bd2627e3207a204fda48d8b0804c1e90de5e37db43c0e34e4ad608590 SHA512 32f679fcef8e5ad247a7e566ccfe9098116d093ce83e7326e744dbfede0eeb47fbcc3de723e135a1dd3733d337de6648632ab1b5191ec2e9135d48a3b2988e5d WHIRLPOOL 7bb174294e7749a0e33cbb1d7eed352ddcdeb18a5f2fef6966d7a8fc89b11579430847ef027cb9191c14c449e39bbba73e2fcc140b1d8ec37c583c094c6e5e96
diff --git a/dev-tcltk/tclxml/files/tclxml-3.2-fix-implicit-declarations.patch b/dev-tcltk/tclxml/files/tclxml-3.2-fix-implicit-declarations.patch
new file mode 100644
index 000000000000..b463306abf1e
--- /dev/null
+++ b/dev-tcltk/tclxml/files/tclxml-3.2-fix-implicit-declarations.patch
@@ -0,0 +1,12 @@
+diff -urpN tclxml-3.2.orig/tclxml.c tclxml-3.2/tclxml.c
+--- tclxml-3.2.orig/tclxml.c 2009-06-08 12:56:10.000000000 +0200
++++ tclxml-3.2/tclxml.c 2009-06-08 12:57:24.000000000 +0200
+@@ -20,6 +20,8 @@
+ #include <tclxslt/tclxslt.h>
+ #include <string.h>
+
++int Tcldom_libxml2_Init ( Tcl_Interp *interp );
++
+ #define TCL_DOES_STUBS \
+ (TCL_MAJOR_VERSION > 8 || TCL_MAJOR_VERSION == 8 && (TCL_MINOR_VERSION > 1 || \
+ (TCL_MINOR_VERSION == 1 && TCL_RELEASE_LEVEL == TCL_FINAL_RELEASE)))
diff --git a/dev-tcltk/tclxml/files/tclxml-3.2-format-security.patch b/dev-tcltk/tclxml/files/tclxml-3.2-format-security.patch
new file mode 100644
index 000000000000..2d13c6575ea6
--- /dev/null
+++ b/dev-tcltk/tclxml/files/tclxml-3.2-format-security.patch
@@ -0,0 +1,16 @@
+ tclxslt-libxslt.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/tclxslt-libxslt.c b/tclxslt-libxslt.c
+index d943bf7..d18f645 100644
+--- a/tclxslt-libxslt.c
++++ b/tclxslt-libxslt.c
+@@ -1506,7 +1506,7 @@ TclXSLTExtFunction(xpathCtxt, nargs)
+ obj = TclXSLT_ConvertTclObjToXPathObj(extinfo->interp, resultPtr);
+ valuePush(xpathCtxt, obj);
+ } else {
+- xmlGenericError(xmlGenericErrorContext,
++ xmlGenericError(xmlGenericErrorContext, "%s",
+ Tcl_GetStringFromObj(resultPtr, NULL));
+ /* Need to define a new error code - this is the closest in meaning */
+ xpathCtxt->error = XPATH_UNKNOWN_FUNC_ERROR;
diff --git a/dev-tcltk/tclxml/metadata.xml b/dev-tcltk/tclxml/metadata.xml
new file mode 100644
index 000000000000..47411252c4c4
--- /dev/null
+++ b/dev-tcltk/tclxml/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>tcltk@gentoo.org</email>
+ <name>Gentoo Tcltk Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">tclxml</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-tcltk/tclxml/tclxml-3.2-r2.ebuild b/dev-tcltk/tclxml/tclxml-3.2-r2.ebuild
new file mode 100644
index 000000000000..b0a217d741f6
--- /dev/null
+++ b/dev-tcltk/tclxml/tclxml-3.2-r2.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils multilib
+
+DESCRIPTION="Pure Tcl implementation of an XML parser"
+HOMEPAGE="http://tclxml.sourceforge.net/"
+SRC_URI="mirror://sourceforge/tclxml/${P}.tar.gz"
+
+IUSE="debug threads"
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="alpha amd64 ppc sparc x86"
+
+DEPEND="
+ >=dev-lang/tcl-8.2:0
+ >=dev-libs/libxml2-2.6.9
+ dev-libs/libxslt
+ >=dev-tcltk/tcllib-1.2
+ dev-libs/expat
+ !dev-tcltk/tcldom"
+# test? ( dev-tcltk/tclparser )
+RDEPEND="${DEPEND}"
+
+RESTRICT="test"
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${P}-fix-implicit-declarations.patch \
+ "${FILESDIR}"/${P}-format-security.patch
+}
+
+src_configure() {
+ local myconf=""
+
+ use threads && myconf="${myconf} --enable-threads"
+
+ econf ${myconf} \
+ --with-xml2-config="${EPREFIX}"/usr/bin/xml2-config \
+ --with-xslt-config="${EPREFIX}"/usr/bin/xslt-config \
+ --with-tclinclude="${EPREFIX}"/usr/include \
+ --with-tcl="${EPREFIX}"/usr/$(get_libdir) \
+ $(use_enable amd64 64bit) \
+ $(use_enable debug symbols)
+}
+
+src_install() {
+ default
+ dohtml doc/*.html
+}