Gentoo Archives: gentoo-commits

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