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/tcl: ChangeLog tcl-8.4.16.ebuild tcl-8.5.0.ebuild tcl-8.5_alpha6.ebuild tcl-8.4.14.ebuild tcl-8.5_beta3.ebuild tcl-8.4.14-r1.ebuild
Date: Sat, 22 Dec 2007 03:55:03
Message-Id: E1J5vRu-0006PF-SL@stork.gentoo.org
1 matsuu 07/12/22 03:54:54
2
3 Modified: ChangeLog
4 Added: tcl-8.4.16.ebuild tcl-8.5.0.ebuild
5 Removed: tcl-8.5_alpha6.ebuild tcl-8.4.14.ebuild
6 tcl-8.5_beta3.ebuild tcl-8.4.14-r1.ebuild
7 Log:
8 Version bumped, bug #194385.
9 (Portage version: 2.1.3.19)
10
11 Revision Changes Path
12 1.91 dev-lang/tcl/ChangeLog
13
14 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/tcl/ChangeLog?rev=1.91&view=markup
15 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/tcl/ChangeLog?rev=1.91&content-type=text/plain
16 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/tcl/ChangeLog?r1=1.90&r2=1.91
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/dev-lang/tcl/ChangeLog,v
21 retrieving revision 1.90
22 retrieving revision 1.91
23 diff -u -r1.90 -r1.91
24 --- ChangeLog 25 Nov 2007 00:27:50 -0000 1.90
25 +++ ChangeLog 22 Dec 2007 03:54:54 -0000 1.91
26 @@ -1,6 +1,16 @@
27 # ChangeLog for dev-lang/tcl
28 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/tcl/ChangeLog,v 1.90 2007/11/25 00:27:50 matsuu Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/tcl/ChangeLog,v 1.91 2007/12/22 03:54:54 matsuu Exp $
31 +
32 +*tcl-8.5.0 (22 Dec 2007)
33 +*tcl-8.4.16 (22 Dec 2007)
34 +
35 + 22 Dec 2007; MATSUU Takuto <matsuu@g.o>
36 + -files/tcl-8.3.5-tclm4-soname.patch, +files/tcl-8.4.16-multilib.patch,
37 + -tcl-8.4.14.ebuild, -tcl-8.4.14-r1.ebuild, +tcl-8.4.16.ebuild,
38 + -tcl-8.5_alpha6.ebuild, -tcl-8.5_beta3.ebuild, +tcl-8.5.0.ebuild:
39 + Version bumped. bug #194385.
40 + Removed old versions.
41
42 *tcl-8.5_beta3 (25 Nov 2007)
43
44
45
46
47 1.1 dev-lang/tcl/tcl-8.4.16.ebuild
48
49 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/tcl/tcl-8.4.16.ebuild?rev=1.1&view=markup
50 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/tcl/tcl-8.4.16.ebuild?rev=1.1&content-type=text/plain
51
52 Index: tcl-8.4.16.ebuild
53 ===================================================================
54 # Copyright 1999-2007 Gentoo Foundation
55 # Distributed under the terms of the GNU General Public License v2
56 # $Header: /var/cvsroot/gentoo-x86/dev-lang/tcl/tcl-8.4.16.ebuild,v 1.1 2007/12/22 03:54:54 matsuu Exp $
57
58 WANT_AUTOCONF=latest
59 WANT_AUTOMAKE=latest
60
61 inherit autotools eutils multilib toolchain-funcs
62
63 DESCRIPTION="Tool Command Language"
64 HOMEPAGE="http://www.tcl.tk/"
65 SRC_URI="mirror://sourceforge/tcl/${PN}${PV}-src.tar.gz"
66
67 LICENSE="BSD"
68 SLOT="0"
69 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
70 IUSE="debug threads"
71
72 DEPEND=""
73
74 S="${WORKDIR}/${PN}${PV}"
75
76 pkg_setup() {
77 if use threads ; then
78 ewarn ""
79 ewarn "PLEASE NOTE: You are compiling ${PF} with"
80 ewarn "threading enabled."
81 ewarn "Threading is not supported by all applications"
82 ewarn "that compile against tcl. You use threading at"
83 ewarn "your own discretion."
84 ewarn ""
85 epause 5
86 fi
87 }
88
89 src_unpack() {
90 unpack ${A}
91 cd "${S}"
92 epatch "${FILESDIR}"/${P}-multilib.patch
93
94 # Bug 125971
95 epatch "${FILESDIR}"/${PN}-8.4.15-tclm4-soname.patch
96
97 local d
98 for d in */configure ; do
99 cd "${S}"/${d%%/*}
100 EPATCH_SINGLE_MSG="Patching nls cruft in ${d}" \
101 epatch "${FILESDIR}"/tcl-configure-LANG.patch
102 done
103
104 cd "${S}"/unix
105 eautoreconf
106 }
107
108 src_compile() {
109 tc-export CC
110 local local_config_use=""
111
112 if use threads ; then
113 local_config_use="--enable-threads"
114 fi
115
116 cd "${S}"/unix
117 econf \
118 $(use_enable threads) \
119 $(use_enable debug symbols) || die
120 emake || die
121 }
122
123 src_install() {
124 #short version number
125 local v1
126 v1=${PV%.*}
127
128 cd "${S}"/unix
129 S= emake DESTDIR="${D}" install || die
130
131 # fix the tclConfig.sh to eliminate refs to the build directory
132 local mylibdir=$(get_libdir) ; mylibdir=${mylibdir//\/}
133 sed -i \
134 -e "s,^TCL_BUILD_LIB_SPEC='-L.*/unix,TCL_BUILD_LIB_SPEC='-L$/usr/${mylibdir}," \
135 -e "s,^TCL_SRC_DIR='.*',TCL_SRC_DIR='/usr/${mylibdir}/tcl${v1}/include'," \
136 -e "s,^TCL_BUILD_STUB_LIB_SPEC='-L.*/unix,TCL_BUILD_STUB_LIB_SPEC='-L/usr/${mylibdir}," \
137 -e "s,^TCL_BUILD_STUB_LIB_PATH='.*/unix,TCL_BUILD_STUB_LIB_PATH='/usr/${mylibdir}," \
138 -e "s,^TCL_LIB_FILE='libtcl${v1}..TCL_DBGX..so',TCL_LIB_FILE=\"libtcl${v1}\$\{TCL_DBGX\}.so\"," \
139 -e "s,^TCL_CC_SEARCH_FLAGS='\(.*\)',TCL_CC_SEARCH_FLAGS='\1:/usr/${mylibdir}'," \
140 -e "s,^TCL_LD_SEARCH_FLAGS='\(.*\)',TCL_LD_SEARCH_FLAGS='\1:/usr/${mylibdir}'," \
141 "${D}"/usr/${mylibdir}/tclConfig.sh || die
142
143 # install private headers
144 insinto /usr/${mylibdir}/tcl${v1}/include/unix
145 doins "${S}"/unix/*.h || die
146 insinto /usr/${mylibdir}/tcl${v1}/include/generic
147 doins "${S}"/generic/*.h || die
148 rm -f "${D}"/usr/${mylibdir}/tcl${v1}/include/generic/tcl.h
149 rm -f "${D}"/usr/${mylibdir}/tcl${v1}/include/generic/tclDecls.h
150 rm -f "${D}"/usr/${mylibdir}/tcl${v1}/include/generic/tclPlatDecls.h
151
152 # install symlink for libraries
153 if use debug ; then
154 dosym libtcl${v1}g.so /usr/${mylibdir}/libtcl${v1}.so
155 dosym libtclstub${v1}g.a /usr/${mylibdir}/libtclstub${v1}.a
156 fi
157 dosym libtcl${v1}.so /usr/${mylibdir}/libtcl.so
158 dosym libtclstub${v1}.a /usr/${mylibdir}/libtclstub.a
159
160 dosym tclsh${v1} /usr/bin/tclsh
161
162 cd "${S}"
163 dodoc ChangeLog* README changes
164 }
165
166 pkg_postinst() {
167 ewarn
168 ewarn "If you're upgrading from tcl-8.3, you must recompile the other"
169 ewarn "packages on your system that link with tcl after the upgrade"
170 ewarn "completes. To perform this action, please run revdep-rebuild"
171 ewarn "in package app-portage/gentoolkit."
172 ewarn "If you have dev-lang/tk and dev-tcltk/tclx installed you should"
173 ewarn "upgrade them before this recompilation, too,"
174 ewarn
175 }
176
177
178
179 1.1 dev-lang/tcl/tcl-8.5.0.ebuild
180
181 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/tcl/tcl-8.5.0.ebuild?rev=1.1&view=markup
182 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/tcl/tcl-8.5.0.ebuild?rev=1.1&content-type=text/plain
183
184 Index: tcl-8.5.0.ebuild
185 ===================================================================
186 # Copyright 1999-2007 Gentoo Foundation
187 # Distributed under the terms of the GNU General Public License v2
188 # $Header: /var/cvsroot/gentoo-x86/dev-lang/tcl/tcl-8.5.0.ebuild,v 1.1 2007/12/22 03:54:54 matsuu Exp $
189
190 WANT_AUTOCONF=latest
191 WANT_AUTOMAKE=latest
192
193 inherit autotools eutils multilib toolchain-funcs
194
195 MY_P="${PN}${PV/_beta/b}"
196 DESCRIPTION="Tool Command Language"
197 HOMEPAGE="http://www.tcl.tk/"
198 SRC_URI="mirror://sourceforge/tcl/${MY_P}-src.tar.gz"
199
200 LICENSE="BSD"
201 SLOT="0"
202 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
203 IUSE="debug threads"
204
205 DEPEND=""
206
207 S="${WORKDIR}/${MY_P}"
208
209 pkg_setup() {
210 if use threads ; then
211 ewarn ""
212 ewarn "PLEASE NOTE: You are compiling ${P} with"
213 ewarn "threading enabled."
214 ewarn "Threading is not supported by all applications"
215 ewarn "that compile against tcl. You use threading at"
216 ewarn "your own discretion."
217 ewarn ""
218 epause 5
219 fi
220 }
221
222 src_unpack() {
223 unpack ${A}
224 cd "${S}"
225 epatch "${FILESDIR}"/${PN}-8.5_alpha6-multilib.patch
226
227 # Bug 125971
228 epatch "${FILESDIR}"/${PN}-8.5_alpha6-tclm4-soname.patch
229
230 cd "${S}"/unix
231 eautoreconf
232 }
233
234 src_compile() {
235 tc-export CC
236
237 cd "${S}"/unix
238 econf \
239 $(use_enable threads) \
240 $(use_enable debug symbols) || die
241 emake || die
242 }
243
244 src_install() {
245 #short version number
246 local v1
247 v1=${PV%.*}
248
249 cd "${S}"/unix
250 S= emake DESTDIR="${D}" install || die
251
252 # fix the tclConfig.sh to eliminate refs to the build directory
253 local mylibdir=$(get_libdir) ; mylibdir=${mylibdir//\/}
254 sed -i \
255 -e "s,^TCL_BUILD_LIB_SPEC='-L.*/unix,TCL_BUILD_LIB_SPEC='-L$/usr/${mylibdir}," \
256 -e "s,^TCL_SRC_DIR='.*',TCL_SRC_DIR='/usr/${mylibdir}/tcl${v1}/include'," \
257 -e "s,^TCL_BUILD_STUB_LIB_SPEC='-L.*/unix,TCL_BUILD_STUB_LIB_SPEC='-L/usr/${mylibdir}," \
258 -e "s,^TCL_BUILD_STUB_LIB_PATH='.*/unix,TCL_BUILD_STUB_LIB_PATH='/usr/${mylibdir}," \
259 -e "s,^TCL_LIB_FILE='libtcl${v1}..TCL_DBGX..so',TCL_LIB_FILE=\"libtcl${v1}\$\{TCL_DBGX\}.so\"," \
260 -e "s,^TCL_CC_SEARCH_FLAGS='\(.*\)',TCL_CC_SEARCH_FLAGS='\1:/usr/${mylibdir}'," \
261 -e "s,^TCL_LD_SEARCH_FLAGS='\(.*\)',TCL_LD_SEARCH_FLAGS='\1:/usr/${mylibdir}'," \
262 "${D}"/usr/${mylibdir}/tclConfig.sh || die
263
264 # install private headers
265 insinto /usr/${mylibdir}/tcl${v1}/include/unix
266 doins "${S}"/unix/*.h || die
267 insinto /usr/${mylibdir}/tcl${v1}/include/generic
268 doins "${S}"/generic/*.h || die
269 rm -f "${D}"/usr/${mylibdir}/tcl${v1}/include/generic/tcl.h
270 rm -f "${D}"/usr/${mylibdir}/tcl${v1}/include/generic/tclDecls.h
271 rm -f "${D}"/usr/${mylibdir}/tcl${v1}/include/generic/tclPlatDecls.h
272
273 # install symlink for libraries
274 dosym libtcl${v1}.so /usr/${mylibdir}/libtcl.so
275 dosym libtclstub${v1}.a /usr/${mylibdir}/libtclstub.a
276
277 dosym tclsh${v1} /usr/bin/tclsh
278
279 cd "${S}"
280 dodoc ChangeLog* README changes
281 }
282
283 pkg_postinst() {
284 ewarn
285 ewarn "If you're upgrading from <dev-lang/tcl-8.5, you must recompile the other"
286 ewarn "packages on your system that link with tcl after the upgrade"
287 ewarn "completes. To perform this action, please run revdep-rebuild"
288 ewarn "in package app-portage/gentoolkit."
289 ewarn "If you have dev-lang/tk and dev-tcltk/tclx installed you should"
290 ewarn "upgrade them before this recompilation, too,"
291 ewarn
292 }
293
294
295
296 --
297 gentoo-commits@g.o mailing list