summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2024-02-28 21:37:37 +0100
committerAlfredo Tupone <tupone@gentoo.org>2024-02-28 21:37:37 +0100
commit79b4f08ceeba4c388deb4818121143b1e01e1b16 (patch)
tree554a10c970200b6e85ef476037cba0029e7a7686 /dev-tcltk
parentdev-tcltk/iwidgets: update SRC_URI (diff)
downloadgentoo-79b4f08ceeba4c388deb4818121143b1e01e1b16.tar.gz
gentoo-79b4f08ceeba4c388deb4818121143b1e01e1b16.tar.bz2
gentoo-79b4f08ceeba4c388deb4818121143b1e01e1b16.zip
dev-tcltk/itk: add 4.2.3
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'dev-tcltk')
-rw-r--r--dev-tcltk/itk/Manifest1
-rw-r--r--dev-tcltk/itk/itk-4.2.3.ebuild68
2 files changed, 69 insertions, 0 deletions
diff --git a/dev-tcltk/itk/Manifest b/dev-tcltk/itk/Manifest
index e63dd42916d8..6e6b0c4e3ac0 100644
--- a/dev-tcltk/itk/Manifest
+++ b/dev-tcltk/itk/Manifest
@@ -1 +1,2 @@
+DIST itk-4-2-3.tar.gz 168217 BLAKE2B 450c9f3393228b93a716cf338ad322ecc8934aca08a1f7c4a81dab07a38ac6729ab2ae43b7197130e3cda1bc03ed61c81f9d63cac542d8dcbb199764d47ae4d7 SHA512 0c5c70119b0d0dd950a8e3a52f5a508935bad920f647c38193980a414f617589711a65f4eac3ec67c4bef72f787205cae12513d4d3d35c3b8a795b1bb763fac4
DIST itk4.1.0.tar.gz 253796 BLAKE2B 7d51689d41871f39fbdf940f1aede2c89ee0165cc6be989f7da65df85a0d15e5db037722a5e30a284e51129b7bfff20dfde0fbc78d2d72d8acb9031f328a5d16 SHA512 1deed09daf66ae1d0cc88550be13814edff650f3ef2ecb5ae8d28daf92e37550b0e46921eb161da8ccc3886aaf62a4a3087df0f13610839b7c2d6f4b39c9f07e
diff --git a/dev-tcltk/itk/itk-4.2.3.ebuild b/dev-tcltk/itk/itk-4.2.3.ebuild
new file mode 100644
index 000000000000..493cb8bd0beb
--- /dev/null
+++ b/dev-tcltk/itk/itk-4.2.3.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit virtualx
+
+MY_PV=${PN}-$(ver_rs 1- '-')
+
+DESCRIPTION="Object Oriented Enhancements for Tcl/Tk"
+HOMEPAGE="http://incrtcl.sourceforge.net/"
+SRC_URI="https://github.com/tcltk/${PN}/archive/refs/tags/${MY_PV}.tar.gz"
+
+SLOT="0"
+LICENSE="BSD"
+KEYWORDS="~amd64 ~arm64 ~ia64 ~ppc ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux"
+RESTRICT="!test? ( test )"
+
+DEPEND="
+ >=dev-lang/tk-8.6:=
+ >=dev-tcltk/itcl-4.1"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+QA_CONFIG_IMPL_DECL_SKIP=(
+ stat64 # used to test for Large File Support
+)
+
+src_prepare() {
+ sed 's:-pipe::g' -i configure || die
+ default
+ echo "unknown" > manifest.uuid
+}
+
+src_configure() {
+ local itcl_package=$(best_version dev-tcltk/itcl)
+ local itcl_version=${itcl_package#*/*-}
+ local ITCL_VERSION="${itcl_version%-*}"
+ source "${EPREFIX}"/usr/$(get_libdir)/itcl${ITCL_VERSION}*/itclConfig.sh || die
+ econf \
+ --with-tcl="${EPREFIX}"/usr/$(get_libdir) \
+ --with-tclinclude="${EPREFIX}"/usr/include \
+ --with-tk="${EPREFIX}"/usr/$(get_libdir) \
+ --with-tkinclude="${EPREFIX}"/usr/include \
+ --with-itcl="${ITCL_SRC_DIR}" \
+ --with-x
+}
+
+src_compile() {
+ emake CFLAGS_DEFAULT="${CFLAGS}"
+}
+
+src_test() {
+ virtx default
+}
+
+src_install() {
+ default
+
+ dodoc license.terms
+
+ cat >> "${T}"/34${PN} <<- EOF
+ LDPATH="${EPREFIX}/usr/$(get_libdir)/${PN}${MY_PV}/"
+ EOF
+ doenvd "${T}"/34${PN}
+ dosym . /usr/$(get_libdir)/${PN}${MY_PV}/library
+}