Gentoo Archives: gentoo-commits

From: "Federico Ferri (mescalinum)" <mescalinum@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-lang/tcl: ChangeLog tcl-8.4.19.ebuild
Date: Sun, 26 Oct 2008 11:20:45
Message-Id: E1Ku3fl-0006EV-SR@stork.gentoo.org
1 mescalinum 08/10/26 11:20:41
2
3 Modified: ChangeLog
4 Added: tcl-8.4.19.ebuild
5 Log:
6 version bump for 8.4
7 (Portage version: 2.1.4.4)
8
9 Revision Changes Path
10 1.102 dev-lang/tcl/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/tcl/ChangeLog?rev=1.102&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/tcl/ChangeLog?rev=1.102&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/tcl/ChangeLog?r1=1.101&r2=1.102
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-lang/tcl/ChangeLog,v
19 retrieving revision 1.101
20 retrieving revision 1.102
21 diff -u -r1.101 -r1.102
22 --- ChangeLog 26 Oct 2008 09:09:19 -0000 1.101
23 +++ ChangeLog 26 Oct 2008 11:20:41 -0000 1.102
24 @@ -1,6 +1,11 @@
25 # ChangeLog for dev-lang/tcl
26 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/tcl/ChangeLog,v 1.101 2008/10/26 09:09:19 mescalinum Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/tcl/ChangeLog,v 1.102 2008/10/26 11:20:41 mescalinum Exp $
29 +
30 +*tcl-8.4.19 (26 Oct 2008)
31 +
32 + 26 Oct 2008; Federico Ferri <mescalinum@g.o> +tcl-8.4.19.ebuild:
33 + version bump for 8.4 too
34
35 *tcl-8.5.5 (26 Oct 2008)
36
37
38
39
40 1.1 dev-lang/tcl/tcl-8.4.19.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/tcl/tcl-8.4.19.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/tcl/tcl-8.4.19.ebuild?rev=1.1&content-type=text/plain
44
45 Index: tcl-8.4.19.ebuild
46 ===================================================================
47 # Copyright 1999-2008 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/dev-lang/tcl/tcl-8.4.19.ebuild,v 1.1 2008/10/26 11:20:41 mescalinum Exp $
50
51 WANT_AUTOCONF=latest
52 WANT_AUTOMAKE=latest
53
54 inherit autotools eutils multilib toolchain-funcs
55
56 DESCRIPTION="Tool Command Language"
57 HOMEPAGE="http://www.tcl.tk/"
58 SRC_URI="mirror://sourceforge/tcl/${PN}${PV}-src.tar.gz"
59
60 LICENSE="BSD"
61 SLOT="0"
62 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
63 IUSE="debug threads"
64
65 DEPEND=""
66
67 S="${WORKDIR}/${PN}${PV}"
68
69 pkg_setup() {
70 if use threads ; then
71 ewarn ""
72 ewarn "PLEASE NOTE: You are compiling ${PF} with"
73 ewarn "threading enabled."
74 ewarn "Threading is not supported by all applications"
75 ewarn "that compile against tcl. You use threading at"
76 ewarn "your own discretion."
77 ewarn ""
78 epause 5
79 fi
80 }
81
82 src_unpack() {
83 unpack ${A}
84 cd "${S}"
85 epatch "${FILESDIR}"/${PN}-8.4.16-multilib.patch
86
87 # Bug 125971
88 epatch "${FILESDIR}"/${PN}-8.4.15-tclm4-soname.patch
89 # cross-compile fix from buildroot.
90 epatch "${FILESDIR}"/${PN}-8.4.9-strtod.patch
91
92 local d
93 for d in */configure ; do
94 cd "${S}"/${d%%/*}
95 EPATCH_SINGLE_MSG="Patching nls cruft in ${d}" \
96 epatch "${FILESDIR}"/tcl-configure-LANG.patch
97 done
98
99 cd "${S}"/unix
100 eautoreconf
101 }
102
103 src_compile() {
104 tc-export CC
105 local local_config_use=""
106
107 if use threads ; then
108 local_config_use="--enable-threads"
109 fi
110
111 cd "${S}"/unix
112 econf \
113 $(use_enable threads) \
114 $(use_enable debug symbols) || die
115 emake || die
116 }
117
118 src_install() {
119 #short version number
120 local v1
121 v1=${PV%.*}
122
123 cd "${S}"/unix
124 S= emake DESTDIR="${D}" install || die
125
126 # fix the tclConfig.sh to eliminate refs to the build directory
127 local mylibdir=$(get_libdir) ; mylibdir=${mylibdir//\/}
128 sed -i \
129 -e "s,^TCL_BUILD_LIB_SPEC='-L.*/unix,TCL_BUILD_LIB_SPEC='-L$/usr/${mylibdir}," \
130 -e "s,^TCL_SRC_DIR='.*',TCL_SRC_DIR='/usr/${mylibdir}/tcl${v1}/include'," \
131 -e "s,^TCL_BUILD_STUB_LIB_SPEC='-L.*/unix,TCL_BUILD_STUB_LIB_SPEC='-L/usr/${mylibdir}," \
132 -e "s,^TCL_BUILD_STUB_LIB_PATH='.*/unix,TCL_BUILD_STUB_LIB_PATH='/usr/${mylibdir}," \
133 -e "s,^TCL_LIB_FILE='libtcl${v1}..TCL_DBGX..so',TCL_LIB_FILE=\"libtcl${v1}\$\{TCL_DBGX\}.so\"," \
134 -e "s,^TCL_CC_SEARCH_FLAGS='\(.*\)',TCL_CC_SEARCH_FLAGS='\1:/usr/${mylibdir}'," \
135 -e "s,^TCL_LD_SEARCH_FLAGS='\(.*\)',TCL_LD_SEARCH_FLAGS='\1:/usr/${mylibdir}'," \
136 "${D}"/usr/${mylibdir}/tclConfig.sh || die
137
138 # install private headers
139 insinto /usr/${mylibdir}/tcl${v1}/include/unix
140 doins "${S}"/unix/*.h || die
141 insinto /usr/${mylibdir}/tcl${v1}/include/generic
142 doins "${S}"/generic/*.h || die
143 rm -f "${D}"/usr/${mylibdir}/tcl${v1}/include/generic/tcl.h
144 rm -f "${D}"/usr/${mylibdir}/tcl${v1}/include/generic/tclDecls.h
145 rm -f "${D}"/usr/${mylibdir}/tcl${v1}/include/generic/tclPlatDecls.h
146
147 # install symlink for libraries
148 if use debug ; then
149 dosym libtcl${v1}g.so /usr/${mylibdir}/libtcl${v1}.so
150 dosym libtclstub${v1}g.a /usr/${mylibdir}/libtclstub${v1}.a
151 fi
152 dosym libtcl${v1}.so /usr/${mylibdir}/libtcl.so
153 dosym libtclstub${v1}.a /usr/${mylibdir}/libtclstub.a
154
155 dosym tclsh${v1} /usr/bin/tclsh
156
157 cd "${S}"
158 dodoc ChangeLog* README changes
159 }
160
161 pkg_postinst() {
162 ewarn
163 ewarn "If you're upgrading from tcl-8.3, you must recompile the other"
164 ewarn "packages on your system that link with tcl after the upgrade"
165 ewarn "completes. To perform this action, please run revdep-rebuild"
166 ewarn "in package app-portage/gentoolkit."
167 ewarn "If you have dev-lang/tk and dev-tcltk/tclx installed you should"
168 ewarn "upgrade them before this recompilation, too,"
169 ewarn
170 }