Gentoo Archives: gentoo-commits

From: "Justin Lecher (jlec)" <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-lang/tcl: ChangeLog tcl-8.5.11-r1.ebuild
Date: Thu, 07 Jun 2012 16:36:51
Message-Id: 20120607163640.DDB762004B@flycatcher.gentoo.org
1 jlec 12/06/07 16:36:40
2
3 Modified: ChangeLog
4 Added: tcl-8.5.11-r1.ebuild
5 Log:
6 dev-lang/tcl: Drop standard lib locataion from tclConfig.sh, #420129; thanks Ian Stakenvicius for the patch
7
8 (Portage version: 2.2.0_alpha110/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.158 dev-lang/tcl/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/tcl/ChangeLog?rev=1.158&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/tcl/ChangeLog?rev=1.158&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/tcl/ChangeLog?r1=1.157&r2=1.158
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-lang/tcl/ChangeLog,v
20 retrieving revision 1.157
21 retrieving revision 1.158
22 diff -u -r1.157 -r1.158
23 --- ChangeLog 26 Apr 2012 16:15:50 -0000 1.157
24 +++ ChangeLog 7 Jun 2012 16:36:40 -0000 1.158
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-lang/tcl
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/tcl/ChangeLog,v 1.157 2012/04/26 16:15:50 aballier Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/tcl/ChangeLog,v 1.158 2012/06/07 16:36:40 jlec Exp $
30 +
31 +*tcl-8.5.11-r1 (07 Jun 2012)
32 +
33 + 07 Jun 2012; Justin Lecher <jlec@g.o> +tcl-8.5.11-r1.ebuild:
34 + Drop standard lib locataion from tclConfig.sh, #420129; thanks Ian
35 + Stakenvicius for the patch
36
37 26 Apr 2012; Alexis Ballier <aballier@g.o> tcl-8.5.11.ebuild:
38 keyword ~amd64-fbsd
39
40
41
42 1.1 dev-lang/tcl/tcl-8.5.11-r1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/tcl/tcl-8.5.11-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/tcl/tcl-8.5.11-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: tcl-8.5.11-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2012 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.11-r1.ebuild,v 1.1 2012/06/07 16:36:40 jlec Exp $
52
53 EAPI=4
54
55 inherit versionator autotools eutils flag-o-matic multilib toolchain-funcs
56
57 MY_P="${PN}${PV/_beta/b}"
58
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 ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x86-solaris"
66 IUSE="debug threads"
67
68 S="${WORKDIR}/${MY_P}"
69
70 pkg_setup() {
71 if use threads ; then
72 echo
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 echo
79 fi
80 }
81
82 src_prepare() {
83 epatch "${FILESDIR}"/${PN}-8.5_alpha6-multilib.patch
84
85 # Bug 125971
86 epatch "${FILESDIR}"/${PN}-8.5_alpha6-tclm4-soname.patch
87
88 # Bug 354067
89 epatch "${FILESDIR}"/${PN}-8.5.9-gentoo-fbsd.patch
90
91 cd "${S}"/unix
92 eautoreconf
93 }
94
95 src_configure() {
96 # workaround stack check issues, bug #280934
97 if use hppa; then
98 append-cflags "-DTCL_NO_STACK_CHECK=1"
99 fi
100
101 tc-export CC
102
103 cd "${S}"/unix
104 econf \
105 $(use_enable threads) \
106 $(use_enable debug symbols)
107 }
108
109 src_compile() {
110 cd "${S}"/unix && emake
111 }
112
113 src_install() {
114 #short version number
115 local v1
116 v1=${PV%.*}
117
118 cd "${S}"/unix
119 S= emake DESTDIR="${D}" install
120
121 # fix the tclConfig.sh to eliminate refs to the build directory
122 # and drop unnecessary -L inclusion to default system libdir
123 local mylibdir=$(get_libdir) ; mylibdir=${mylibdir//\/}
124 sed -i \
125 -e "s,^TCL_BUILD_LIB_SPEC='-L.*/unix ,TCL_BUILD_LIB_SPEC='," \
126 -e "s,^TCL_SRC_DIR='.*',TCL_SRC_DIR='${EPREFIX}/usr/${mylibdir}/tcl${v1}/include'," \
127 -e "s,^TCL_BUILD_STUB_LIB_SPEC='-L.*/unix ,TCL_BUILD_STUB_LIB_SPEC='," \
128 -e "s,^TCL_BUILD_STUB_LIB_PATH='.*/unix,TCL_BUILD_STUB_LIB_PATH='${EPREFIX}/usr/${mylibdir}," \
129 -e "s,^TCL_LIB_FILE='libtcl${v1}..TCL_DBGX..so',TCL_LIB_FILE=\"libtcl${v1}\$\{TCL_DBGX\}.so\"," \
130 -e "s,^TCL_STUB_LIB_SPEC='-L${EPREFIX}/usr/${mylibdir} ,TCL_STUB_LIB_SPEC='," \
131 -e "s,^TCL_LIB_SPEC='-L${EPREFIX}/usr/${mylibdir} ,TCL_LIB_SPEC='," \
132 "${ED}"/usr/${mylibdir}/tclConfig.sh || die
133 if [[ ${CHOST} != *-darwin* && ${CHOST} != *-mint* ]] ; then
134 sed -i \
135 -e "s,^TCL_CC_SEARCH_FLAGS='\(.*\)',TCL_CC_SEARCH_FLAGS='\1:${EPREFIX}/usr/${mylibdir}'," \
136 -e "s,^TCL_LD_SEARCH_FLAGS='\(.*\)',TCL_LD_SEARCH_FLAGS='\1:${EPREFIX}/usr/${mylibdir}'," \
137 "${ED}"/usr/${mylibdir}/tclConfig.sh || die
138 fi
139
140 # install private headers
141 insinto /usr/${mylibdir}/tcl${v1}/include/unix
142 doins "${S}"/unix/*.h
143 insinto /usr/${mylibdir}/tcl${v1}/include/generic
144 doins "${S}"/generic/*.h
145 rm -f "${ED}"/usr/${mylibdir}/tcl${v1}/include/generic/tcl.h || die
146 rm -f "${ED}"/usr/${mylibdir}/tcl${v1}/include/generic/tclDecls.h || die
147 rm -f "${ED}"/usr/${mylibdir}/tcl${v1}/include/generic/tclPlatDecls.h || die
148
149 # install symlink for libraries
150 dosym libtcl${v1}$(get_libname) /usr/${mylibdir}/libtcl$(get_libname)
151 dosym libtclstub${v1}.a /usr/${mylibdir}/libtclstub.a
152
153 dosym tclsh${v1} /usr/bin/tclsh
154
155 cd "${S}"
156 dodoc ChangeLog* README changes
157 }
158
159 pkg_postinst() {
160 for version in ${REPLACING_VERSIONS}; do
161 if ! version_is_at_least 8.5 ${version}; then
162 echo
163 ewarn "You're upgrading from <dev-lang/tcl-8.5, 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 echo
170 fi
171 done
172 }