Gentoo Archives: gentoo-commits

From: "Matsuu Takuto (matsuu)" <matsuu@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-lang/tk: ChangeLog tk-8.5.0-r1.ebuild
Date: Sun, 30 Dec 2007 03:35:14
Message-Id: E1J8oxB-00089i-VP@stork.gentoo.org
1 matsuu 07/12/30 03:35:09
2
3 Modified: ChangeLog
4 Added: tk-8.5.0-r1.ebuild
5 Log:
6 Added truetype USE flag. Bug #173467.
7 (Portage version: 2.1.3.19)
8
9 Revision Changes Path
10 1.101 dev-lang/tk/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/tk/ChangeLog?rev=1.101&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/tk/ChangeLog?rev=1.101&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/tk/ChangeLog?r1=1.100&r2=1.101
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-lang/tk/ChangeLog,v
19 retrieving revision 1.100
20 retrieving revision 1.101
21 diff -u -r1.100 -r1.101
22 --- ChangeLog 22 Dec 2007 03:58:06 -0000 1.100
23 +++ ChangeLog 30 Dec 2007 03:35:09 -0000 1.101
24 @@ -1,6 +1,11 @@
25 # ChangeLog for dev-lang/tk
26 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/tk/ChangeLog,v 1.100 2007/12/22 03:58:06 matsuu Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/tk/ChangeLog,v 1.101 2007/12/30 03:35:09 matsuu Exp $
29 +
30 +*tk-8.5.0-r1 (30 Dec 2007)
31 +
32 + 30 Dec 2007; MATSUU Takuto <matsuu@g.o> +tk-8.5.0-r1.ebuild:
33 + Added truetype USE flag. bug #173467.
34
35 *tk-8.5.0 (22 Dec 2007)
36 *tk-8.4.16 (22 Dec 2007)
37
38
39
40 1.1 dev-lang/tk/tk-8.5.0-r1.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/tk/tk-8.5.0-r1.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/tk/tk-8.5.0-r1.ebuild?rev=1.1&content-type=text/plain
44
45 Index: tk-8.5.0-r1.ebuild
46 ===================================================================
47 # Copyright 1999-2007 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/dev-lang/tk/tk-8.5.0-r1.ebuild,v 1.1 2007/12/30 03:35:09 matsuu Exp $
50
51 WANT_AUTOCONF=latest
52 WANT_AUTOMAKE=latest
53
54 inherit autotools eutils multilib toolchain-funcs
55
56 MY_P="${PN}${PV/_beta/b}"
57 DESCRIPTION="Tk Widget Set"
58 HOMEPAGE="http://www.tcl.tk/"
59 SRC_URI="mirror://sourceforge/tcl/${MY_P}-src.tar.gz"
60
61 LICENSE="BSD"
62 SLOT="0"
63 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
64 IUSE="debug threads truetype"
65
66 RDEPEND="x11-libs/libX11
67 ~dev-lang/tcl-${PV}"
68 DEPEND="${RDEPEND}
69 truetype? ( x11-libs/libXft )
70 x11-libs/libXt
71 x11-proto/xproto"
72
73 S="${WORKDIR}/${MY_P}"
74
75 pkg_setup() {
76 if use threads ; then
77 ewarn ""
78 ewarn "PLEASE NOTE: You are compiling ${P} with"
79 ewarn "threading enabled."
80 ewarn "Threading is not supported by all applications"
81 ewarn "that compile against tcl. You use threading at"
82 ewarn "your own discretion."
83 ewarn ""
84 epause 5
85 fi
86 }
87
88 src_unpack() {
89 unpack ${A}
90 cd "${S}"
91 epatch "${FILESDIR}"/${PN}-8.4.11-multilib.patch
92
93 # Bug 125971
94 epatch "${FILESDIR}"/${PN}-8.5_alpha6-tclm4-soname.patch
95
96 cd "${S}"/unix
97 eautoreconf
98 }
99
100 src_compile() {
101 tc-export CC
102 cd "${S}"/unix
103
104 local mylibdir=$(get_libdir) ; mylibdir=${mylibdir//\/}
105
106 econf \
107 --with-tcl=/usr/${mylibdir} \
108 $(use_enable threads) \
109 $(use_enable truetype xft) \
110 $(use_enable debug symbols) || die
111
112 emake || die
113 }
114
115 src_install() {
116 #short version number
117 local v1
118 v1=${PV%.*}
119
120 cd "${S}"/unix
121 S= emake DESTDIR="${D}" install || die
122
123 # fix the tkConfig.sh to eliminate refs to the build directory
124 local mylibdir=$(get_libdir) ; mylibdir=${mylibdir//\/}
125 sed -i \
126 -e "s,^\(TK_BUILD_LIB_SPEC='-L\)${S}/unix,\1/usr/${mylibdir}," \
127 -e "s,^\(TK_SRC_DIR='\)${S}',\1/usr/${mylibdir}/tk${v1}/include'," \
128 -e "s,^\(TK_BUILD_STUB_LIB_SPEC='-L\)${S}/unix,\1/usr/${mylibdir}," \
129 -e "s,^\(TK_BUILD_STUB_LIB_PATH='\)${S}/unix,\1/usr/${mylibdir}," \
130 -e "s,^\(TK_CC_SEARCH_FLAGS='.*\)',\1:/usr/${mylibdir}'," \
131 -e "s,^\(TK_LD_SEARCH_FLAGS='.*\)',\1:/usr/${mylibdir}'," \
132 "${D}"/usr/${mylibdir}/tkConfig.sh || die
133
134 # install private headers
135 insinto /usr/${mylibdir}/tk${v1}/include/unix
136 doins "${S}"/unix/*.h || die
137 insinto /usr/${mylibdir}/tk${v1}/include/generic
138 doins "${S}"/generic/*.h || die
139 rm -f "${D}"/usr/${mylibdir}/tk${v1}/include/generic/tk.h
140 rm -f "${D}"/usr/${mylibdir}/tk${v1}/include/generic/tkDecls.h
141 rm -f "${D}"/usr/${mylibdir}/tk${v1}/include/generic/tkPlatDecls.h
142
143 # install symlink for libraries
144 #dosym libtk${v1}.a /usr/${mylibdir}/libtk.a
145 dosym libtk${v1}.so /usr/${mylibdir}/libtk.so
146 dosym libtkstub${v1}.a /usr/${mylibdir}/libtkstub.a
147
148 dosym wish${v1} /usr/bin/wish
149
150 cd "${S}"
151 dodoc ChangeLog* README changes
152 }
153
154
155
156 --
157 gentoo-commits@g.o mailing list