/[gentoo-x86]/dev-tcltk/tix/tix-8.4.3.ebuild
Gentoo

Contents of /dev-tcltk/tix/tix-8.4.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.15 - (show annotations) (download)
Mon Jan 21 17:18:15 2013 UTC (3 months, 3 weeks ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.14: +3 -2 lines
dev-tcltk/tix: Add fix tcl-8.6, #453370

(Portage version: 2.2.0_alpha158/cvs/Linux x86_64, signed Manifest commit with key 8009D6F070EB7916)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-tcltk/tix/tix-8.4.3.ebuild,v 1.14 2012/12/13 07:31:34 jlec Exp $
4
5 EAPI=5
6
7 inherit eutils multilib
8
9 MY_P="Tix${PV}"
10 DESCRIPTION="A widget library for Tcl/Tk"
11 HOMEPAGE="http://tix.sourceforge.net/"
12 SRC_URI="mirror://sourceforge/tix/${MY_P}-src.tar.gz"
13
14 IUSE=""
15 LICENSE="BSD"
16 SLOT="0"
17 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"
18
19 RESTRICT="test"
20
21 DEPEND="
22 dev-lang/tk
23 sys-apps/sed
24 x11-libs/libX11
25 x11-libs/libXau
26 x11-libs/libXdmcp"
27 RDEPEND="${DEPEND}"
28
29 S="${WORKDIR}/${MY_P}"
30
31 src_prepare() {
32 (use x86-macos || use x64-macos) || epatch "${FILESDIR}"/${P}-link.patch
33 sed \
34 -e 's:-Os::g' \
35 -i configure tclconfig/tcl.m4 || die
36 epatch "${FILESDIR}"/${P}-tcl8.6.patch
37 }
38
39 src_configure() {
40 econf \
41 --with-tcl="${EPREFIX}/usr/$(get_libdir)" \
42 --with-tk="${EPREFIX}/usr/$(get_libdir)"
43 }
44
45 src_install() {
46 default
47
48 # Bug 168897
49 doheader generic/tix.h
50 # Bug 201138
51 if use x86-macos || use x64-macos; then
52 mv "${ED}"/usr/$(get_libdir)/${MY_P}/libTix{,.}${PV}.dylib
53 dosym ${MY_P}/libTix.${PV}.dylib /usr/$(get_libdir)/libTix.${PV}.dylib
54 else
55 dosym ${MY_P}/lib${MY_P}.so /usr/$(get_libdir)/lib${MY_P}.so
56 fi
57
58 dodoc ChangeLog README.txt docs/*.txt
59 dohtml -r index.html ABOUT.html docs/
60 }

  ViewVC Help
Powered by ViewVC 1.1.13