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