summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2021-10-26 21:18:17 +0200
committerAlfredo Tupone <tupone@gentoo.org>2021-10-26 21:18:17 +0200
commit1a96067b27c453b3d35dbdc837fc14aa4904cd9b (patch)
treea8383db814bafaac3ccbae0a65709cfa9f556504 /dev-tcltk/tix
parentdev-tcltk/tkpng: EAPI 7 (diff)
downloadgentoo-1a96067b27c453b3d35dbdc837fc14aa4904cd9b.tar.gz
gentoo-1a96067b27c453b3d35dbdc837fc14aa4904cd9b.tar.bz2
gentoo-1a96067b27c453b3d35dbdc837fc14aa4904cd9b.zip
dev-tcltk/tix: EAPI 8
Closes: https://bugs.gentoo.org/819588 Closes: https://bugs.gentoo.org/806282 Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'dev-tcltk/tix')
-rw-r--r--dev-tcltk/tix/tix-8.4.3-r2.ebuild69
1 files changed, 69 insertions, 0 deletions
diff --git a/dev-tcltk/tix/tix-8.4.3-r2.ebuild b/dev-tcltk/tix/tix-8.4.3-r2.ebuild
new file mode 100644
index 000000000000..778b62246342
--- /dev/null
+++ b/dev-tcltk/tix/tix-8.4.3-r2.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+MY_P="Tix${PV}"
+DESCRIPTION="A widget library for Tcl/Tk"
+HOMEPAGE="http://tix.sourceforge.net/"
+SRC_URI="mirror://sourceforge/tix/${MY_P}-src.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos"
+
+RESTRICT="test"
+
+DEPEND="
+ dev-lang/tk:0=
+ x11-libs/libX11
+ x11-libs/libXau
+ x11-libs/libXdmcp"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-tcl8.5.patch
+ "${FILESDIR}"/${P}-tcl8.6.patch
+)
+
+src_prepare() {
+ [[ ${CHOST} == *-darwin* ]] || eapply "${FILESDIR}"/${P}-link.patch
+
+ sed \
+ -e 's:-Os::g' \
+ -i configure tclconfig/tcl.m4 || die
+ default
+}
+
+src_configure() {
+ econf \
+ --with-tcl="${EPREFIX}/usr/$(get_libdir)" \
+ --with-tk="${EPREFIX}/usr/$(get_libdir)"
+}
+
+src_install() {
+ DOCS=( ChangeLog README.txt docs/*.txt )
+ HTML_DOCS=(
+ index.html
+ ABOUT.html
+ docs/*.html
+ docs/html
+ docs/img
+ docs/tix-book
+ )
+
+ default
+
+ # Bug #168897
+ doheader generic/tix.h
+
+ # Bug #201138
+ if [[ ${CHOST} == *-darwin* ]] ; then
+ mv "${ED}"/usr/$(get_libdir)/${MY_P}/libTix{,.}${PV}.dylib || die
+ dosym ${MY_P}/libTix.${PV}.dylib /usr/$(get_libdir)/libTix.${PV}.dylib
+ else
+ dosym ${MY_P}/lib${MY_P}.so /usr/$(get_libdir)/lib${MY_P}.so
+ fi
+}