dev-tcltk/tclx: bump to 8.4.4
authorAlfredo Tupone <tupone@gentoo.org>
Fri, 8 May 2020 20:42:52 +0000 (22:42 +0200)
committerAlfredo Tupone <tupone@gentoo.org>
Fri, 8 May 2020 20:42:52 +0000 (22:42 +0200)
Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
dev-tcltk/tclx/Manifest
dev-tcltk/tclx/tclx-8.4.4.ebuild [new file with mode: 0644]

index d5ea78ab5a5ef39a4c34401f53c2678dd4794ae3..3d1370b751037c28a44fa32fb39fb0848b09f239 100644 (file)
@@ -1 +1,2 @@
 DIST tclx8.4.1.tar.bz2 330073 BLAKE2B bc9cd45945b1c9b945bcd139bfc52d42fc9bf1bf4251a8bb599ca6ee2b3804bc692aee6038a3cb84de82d24173473a57a8396fa598558f83237f1586cbe59b11 SHA512 faad58f5d8e0e1e759da639800f354b583fb01418c94f2274924aa07beb0ee9559beb87b3386ed5ae3694700a71dfe5b8ac54ead0ec75c6963507e9d3ead7060
+DIST v8.4.4.tar.gz 456569 BLAKE2B 50123f95ed780c28dae9e2f0db956b81b559ee9ea33563b999f33a727c451374a63c0cba3012d4dd46df020426c7fdb3b04f932fc5b6ec742156e9dad81a7d3b SHA512 dcf9cbd08eae0cc4901e8e871a440e6c85d7d5ac923306206afaf0a1d931866ce3b91177d7b3a37e87a5cdcccb068ed7b9c76cb1a71a13f4f26cf204b8c42090
diff --git a/dev-tcltk/tclx/tclx-8.4.4.ebuild b/dev-tcltk/tclx/tclx-8.4.4.ebuild
new file mode 100644 (file)
index 0000000..f669900
--- /dev/null
@@ -0,0 +1,52 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit multilib
+
+DESCRIPTION="A set of extensions to TCL"
+HOMEPAGE="http://tclx.sourceforge.net"
+SRC_URI="https://github.com/flightaware/${PN}/archive/v${PV}.tar.gz"
+
+LICENSE="BSD"
+IUSE="threads"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~x86-macos"
+
+DEPEND="dev-lang/tcl:0="
+RDEPEND="${DEPEND}"
+
+# tests broken, bug #279283
+RESTRICT="test"
+
+PATCHES=(
+               "${FILESDIR}"/${PN}-8.4-varinit.patch
+               "${FILESDIR}"/${PN}-8.4-ldflags.patch
+)
+
+src_prepare() {
+       sed \
+               -e '/CC=/s:-pipe::g' \
+               -i tclconfig/tcl.m4 configure || die
+       default
+}
+
+src_configure() {
+       econf \
+               $(use_enable threads) \
+               --enable-shared \
+               --with-tcl="${EPREFIX}/usr/$(get_libdir)/"
+
+       # adjust install_name on darwin
+       if [[ ${CHOST} == *-darwin* ]]; then
+               sed -i \
+                       -e 's:^\(SHLIB_LD\W.*\)$:\1 -install_name ${pkglibdir}/$@:' \
+                               "${S}"/Makefile || die 'sed failed'
+       fi
+}
+
+src_install() {
+       default
+       doman doc/*.[n3]
+}