blob: 522a6af80e1e34d059ca0a1db4773ccfd3c5c8fe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-tcltk/tix/tix-8.4.3-r1.ebuild,v 1.9 2015/04/03 13:34:13 jlec Exp $
EAPI=5
inherit eutils multilib
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"
IUSE=""
LICENSE="BSD"
SLOT="0"
KEYWORDS="alpha amd64 arm ~hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos"
RESTRICT="test"
DEPEND="
dev-lang/tk:0=
x11-libs/libX11
x11-libs/libXau
x11-libs/libXdmcp"
RDEPEND="${DEPEND}"
S="${WORKDIR}/${MY_P}"
src_prepare() {
(use x86-macos || use x64-macos) || epatch "${FILESDIR}"/${P}-link.patch
sed \
-e 's:-Os::g' \
-i configure tclconfig/tcl.m4 || die
epatch \
"${FILESDIR}"/${P}-tcl8.5.patch \
"${FILESDIR}"/${P}-tcl8.6.patch
}
src_configure() {
econf \
--with-tcl="${EPREFIX}/usr/$(get_libdir)" \
--with-tk="${EPREFIX}/usr/$(get_libdir)"
}
src_install() {
default
# Bug 168897
doheader generic/tix.h
# Bug 201138
if use x86-macos || use x64-macos; then
mv "${ED}"/usr/$(get_libdir)/${MY_P}/libTix{,.}${PV}.dylib
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
dodoc ChangeLog README.txt docs/*.txt
dohtml -r index.html ABOUT.html docs/
}
|