Gentoo Archives: gentoo-commits

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