Gentoo Archives: gentoo-commits

From: Alfredo Tupone <tupone@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-tcltk/tix/
Date: Tue, 26 Oct 2021 19:18:37
Message-Id: 1635275897.1a96067b27c453b3d35dbdc837fc14aa4904cd9b.tupone@gentoo
1 commit: 1a96067b27c453b3d35dbdc837fc14aa4904cd9b
2 Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
3 AuthorDate: Tue Oct 26 19:18:17 2021 +0000
4 Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
5 CommitDate: Tue Oct 26 19:18:17 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1a96067b
7
8 dev-tcltk/tix: EAPI 8
9
10 Closes: https://bugs.gentoo.org/819588
11 Closes: https://bugs.gentoo.org/806282
12 Package-Manager: Portage-3.0.20, Repoman-3.0.3
13 Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>
14
15 dev-tcltk/tix/tix-8.4.3-r2.ebuild | 69 +++++++++++++++++++++++++++++++++++++++
16 1 file changed, 69 insertions(+)
17
18 diff --git a/dev-tcltk/tix/tix-8.4.3-r2.ebuild b/dev-tcltk/tix/tix-8.4.3-r2.ebuild
19 new file mode 100644
20 index 00000000000..778b6224634
21 --- /dev/null
22 +++ b/dev-tcltk/tix/tix-8.4.3-r2.ebuild
23 @@ -0,0 +1,69 @@
24 +# Copyright 1999-2021 Gentoo Authors
25 +# Distributed under the terms of the GNU General Public License v2
26 +
27 +EAPI=8
28 +
29 +MY_P="Tix${PV}"
30 +DESCRIPTION="A widget library for Tcl/Tk"
31 +HOMEPAGE="http://tix.sourceforge.net/"
32 +SRC_URI="mirror://sourceforge/tix/${MY_P}-src.tar.gz"
33 +
34 +LICENSE="BSD"
35 +SLOT="0"
36 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos"
37 +
38 +RESTRICT="test"
39 +
40 +DEPEND="
41 + dev-lang/tk:0=
42 + x11-libs/libX11
43 + x11-libs/libXau
44 + x11-libs/libXdmcp"
45 +RDEPEND="${DEPEND}"
46 +
47 +S="${WORKDIR}/${MY_P}"
48 +
49 +PATCHES=(
50 + "${FILESDIR}"/${P}-tcl8.5.patch
51 + "${FILESDIR}"/${P}-tcl8.6.patch
52 +)
53 +
54 +src_prepare() {
55 + [[ ${CHOST} == *-darwin* ]] || eapply "${FILESDIR}"/${P}-link.patch
56 +
57 + sed \
58 + -e 's:-Os::g' \
59 + -i configure tclconfig/tcl.m4 || die
60 + default
61 +}
62 +
63 +src_configure() {
64 + econf \
65 + --with-tcl="${EPREFIX}/usr/$(get_libdir)" \
66 + --with-tk="${EPREFIX}/usr/$(get_libdir)"
67 +}
68 +
69 +src_install() {
70 + DOCS=( ChangeLog README.txt docs/*.txt )
71 + HTML_DOCS=(
72 + index.html
73 + ABOUT.html
74 + docs/*.html
75 + docs/html
76 + docs/img
77 + docs/tix-book
78 + )
79 +
80 + default
81 +
82 + # Bug #168897
83 + doheader generic/tix.h
84 +
85 + # Bug #201138
86 + if [[ ${CHOST} == *-darwin* ]] ; then
87 + mv "${ED}"/usr/$(get_libdir)/${MY_P}/libTix{,.}${PV}.dylib || die
88 + dosym ${MY_P}/libTix.${PV}.dylib /usr/$(get_libdir)/libTix.${PV}.dylib
89 + else
90 + dosym ${MY_P}/lib${MY_P}.so /usr/$(get_libdir)/lib${MY_P}.so
91 + fi
92 +}