summaryrefslogtreecommitdiff
path: root/dev-tcltk/tdom
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-11-06 03:03:24 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-11-06 03:03:24 +0000
commit2ceda67569b0a59d190a0f6afe73c18336b54268 (patch)
treeb769c1b06703783b963015c2c528fd5a50d2046b /dev-tcltk/tdom
parent564cd64dc5f2727c4df6aeb1bb51327503c84e78 (diff)
gentoo auto-resync : 06:11:2024 - 03:03:24
Diffstat (limited to 'dev-tcltk/tdom')
-rw-r--r--dev-tcltk/tdom/Manifest3
-rw-r--r--dev-tcltk/tdom/files/tdom-0.9.4-useCC.patch28
-rw-r--r--dev-tcltk/tdom/tdom-0.9.5.ebuild85
3 files changed, 116 insertions, 0 deletions
diff --git a/dev-tcltk/tdom/Manifest b/dev-tcltk/tdom/Manifest
index 7a2db6648718..d9491555969f 100644
--- a/dev-tcltk/tdom/Manifest
+++ b/dev-tcltk/tdom/Manifest
@@ -1,5 +1,8 @@
AUX tdom-0.9.2-useCC.patch 868 BLAKE2B e5d41422bfd8336dacbd177f16b19126f3af1a2ddffaa1f8676546b4db29a5adc679ff4bccf3debe32bc656c3d8b5d9523c6d6a478a202ae739b6e2a08597624 SHA512 59388e3ffa2c21daae3770c2d337337ec28c0845286114337e23c374c310a2dc6f790d6df4ec6f8b741040936cce021197aaf76fd162aca2f391fb480d057d20
AUX tdom-0.9.3-expat.patch 255 BLAKE2B e6d8add83b294a178aab7d23e4432e3f55f001096ee5fa6ea0620ca2336555a30bc841c88ca4e33b15abeb86159cdb6925aa5f61781dca2ff6c8260031359962 SHA512 c94e03bea0909d5cc2ec6f479fd6abf430f2d0c3c6df1186a01d1c422322d54ca7e7009ac07329eabac6432bf75cbe0db7f3b529cca89bd4b9c2589b0f57d5d3
+AUX tdom-0.9.4-useCC.patch 887 BLAKE2B d71d42b6c3f2a2b31fb7ac692db8c94c666ae81d1cba80004b151721bcc7196bc266c57848934ed66216f20fa48d98a1f7f14f44d1971d0e6fd9422acef6f0f3 SHA512 4f6b3564cd4c8d0c9573ddc53d156958b00fec21e1afd080937b72b50867731140ee1b0ea53bf52a023a14a77ef24dbcc6f06679f60ce6934432f8af43b0b801
DIST tdom-0.9.3-src.tgz 1319804 BLAKE2B 8b4c50407eaf28c002ec8399d44881b91bef346dca75370c27e06266a5fa90900528a01fc8310d8a250f551e3a627d0d2965a2e85ef8a9132010f7718e5549ce SHA512 71a589465f84721f222b6312f51ee564d11d88a82000a0e5cc1dab4653bffd57347a39936590b62a580e9df59d7266ff3ae4295fe91ff4b9e58f012e80b0cb3e
+DIST tdom-0.9.5-src.tgz 1512934 BLAKE2B 4e706d5378f2421fc21742327fe40ac106488c7523f33e90261d05c3969797fa35d7e5f785346c9a83fa6aadeff53a9e11a710d4ce32c38db332018b9e997c49 SHA512 84b35ec00744d04f184638b95d6b34f008087f48852a8734ce17c491f6d4c5f1208a8dcc041b5a3bf0253af41ab91677ab2b2d978d00807c687585e41c909979
EBUILD tdom-0.9.3.ebuild 1810 BLAKE2B 23b59fde31fc3cd6b622be0745b8e369e15861b92e62de2959f8f627f0a131d251f65999532d42f733992973a43fbc3c17be56ed5861d6c2eb296fd19c918006 SHA512 e87d31e079f650fa031c73c06855feb704310900d65d6eafdace89e79062a2a11eec19e5390af1c9b556dd4850171cc9f18d0c61f9dbe5bfc5c981489b8fc3a6
+EBUILD tdom-0.9.5.ebuild 1731 BLAKE2B 1525cadccbfc711d455c57f6df67f77404ddbc951a85c33e7a94731c926ee41ede33656d2514644288ccff4b3e6cbb5200fdaac3e294c1bb30b61895c37ecd59 SHA512 55c6b8c3f0476c84da53d03178cef4977858a30a219a382c18b45966fabe55887269ad120bc47f28dbbf4179d6b5f06b2b5fcbb9647791fc38364e9378d593e1
MISC metadata.xml 622 BLAKE2B 161871f522bbaa638ba5980f62f693f4022d9a830225aa645786e4adf43f525ce0fdeae3d26136db09db45d94ac271547a1abb86e1a639e57859bd688e14627e SHA512 557c17a5eda00ec07212dfa9ef7cac6e1688839bad2a59cdd32276773de955cf068ad793a93e371e779cf3dac2b6e81b91a82946ebd4805b7b6e9754f8110ec9
diff --git a/dev-tcltk/tdom/files/tdom-0.9.4-useCC.patch b/dev-tcltk/tdom/files/tdom-0.9.4-useCC.patch
new file mode 100644
index 000000000000..18af36b7792b
--- /dev/null
+++ b/dev-tcltk/tdom/files/tdom-0.9.4-useCC.patch
@@ -0,0 +1,28 @@
+--- a/tclconfig/tcl.m4 2024-11-05 20:59:09.219230897 +0100
++++ b/tclconfig/tcl.m4 2024-11-05 21:01:32.642430617 +0100
+@@ -423,7 +423,6 @@
+ AC_SUBST(TCL_STUB_LIB_SPEC)
+
+ AC_MSG_CHECKING([platform])
+- hold_cc=$CC; CC="$TCL_CC"
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[
+ #ifdef _WIN32
+ #error win32
+@@ -436,7 +435,6 @@
+ TEA_PLATFORM="windows"
+ AC_CHECK_PROG(CYGPATH, cygpath, cygpath -m, echo)
+ ])
+- CC=$hold_cc
+ AC_MSG_RESULT($TEA_PLATFORM)
+
+ # The BUILD_$pkg is to define the correct extern storage class
+--- a/configure.ac 2024-11-05 21:02:53.670413146 +0100
++++ b/configure.ac 2024-11-05 21:03:19.630087072 +0100
+@@ -30,6 +30,7 @@
+ TEA_INIT()
+
+ AC_CONFIG_AUX_DIR(tclconfig)
++AC_CONFIG_SUBDIRS([extensions/tnc extensions/example])
+
+ #--------------------------------------------------------------------
+ # Load the tclConfig.sh file
diff --git a/dev-tcltk/tdom/tdom-0.9.5.ebuild b/dev-tcltk/tdom/tdom-0.9.5.ebuild
new file mode 100644
index 000000000000..6afb469b02ac
--- /dev/null
+++ b/dev-tcltk/tdom/tdom-0.9.5.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2024 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"
+
+S="${WORKDIR}"/${P}-src
+
+LICENSE="MPL-1.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE="threads"
+
+DEPEND="
+ dev-lang/tcl:0=
+ dev-libs/expat"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.9.4-useCC.patch
+ "${FILESDIR}"/${PN}-0.9.3-expat.patch
+)
+
+QA_CONFIG_IMPL_DECL_SKIP=(
+ opendir64 rewinddir64 closedir64 stat64 # used to test for Large File Support
+ arc4random_buf arc4random # used for BSD
+)
+
+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
+ 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
+}