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.14.ebuild
Date: Wed, 01 May 2013 11:09:59
Message-Id: 20130501110955.5FEED2171D@flycatcher.gentoo.org
1 jlec 13/05/01 11:09:55
2
3 Modified: ChangeLog
4 Added: tcl-8.5.14.ebuild
5 Log:
6 dev-lang/tcl: Version BUmp
7
8 (Portage version: 2.2.0_alpha173/cvs/Linux x86_64, signed Manifest commit with key 8009D6F070EB7916)
9
10 Revision Changes Path
11 1.182 dev-lang/tcl/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/tcl/ChangeLog?rev=1.182&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/tcl/ChangeLog?rev=1.182&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/tcl/ChangeLog?r1=1.181&r2=1.182
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-lang/tcl/ChangeLog,v
20 retrieving revision 1.181
21 retrieving revision 1.182
22 diff -u -r1.181 -r1.182
23 --- ChangeLog 25 Feb 2013 21:39:15 -0000 1.181
24 +++ ChangeLog 1 May 2013 11:09:55 -0000 1.182
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-lang/tcl
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/tcl/ChangeLog,v 1.181 2013/02/25 21:39:15 zmedico Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/tcl/ChangeLog,v 1.182 2013/05/01 11:09:55 jlec Exp $
30 +
31 +*tcl-8.5.14 (01 May 2013)
32 +
33 + 01 May 2013; Justin Lecher <jlec@g.o> +tcl-8.5.14.ebuild,
34 + +files/tcl-8.5.14-conf.patch:
35 + Version BUmp
36
37 25 Feb 2013; Zac Medico <zmedico@g.o> tcl-8.6.0-r1.ebuild:
38 Add ~arm-linux keyword.
39
40
41
42 1.1 dev-lang/tcl/tcl-8.5.14.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/tcl/tcl-8.5.14.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/tcl/tcl-8.5.14.ebuild?rev=1.1&content-type=text/plain
46
47 Index: tcl-8.5.14.ebuild
48 ===================================================================
49 # Copyright 1999-2013 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.14.ebuild,v 1.1 2013/05/01 11:09:55 jlec Exp $
52
53 EAPI=5
54
55 inherit autotools eutils flag-o-matic multilib toolchain-funcs versionator
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="tcltk"
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 SPARENT="${WORKDIR}/${MY_P}"
69 S="${SPARENT}"/unix
70
71 pkg_setup() {
72 if use threads ; then
73 echo
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 echo
80 fi
81 }
82
83 src_prepare() {
84 epatch "${FILESDIR}"/${PN}-8.5.13-multilib.patch
85
86 # Bug 125971
87 epatch "${FILESDIR}"/${P}-conf.patch
88
89 # Bug 354067
90 epatch "${FILESDIR}"/${PN}-8.5.9-gentoo-fbsd.patch
91
92 # workaround stack check issues, bug #280934
93 use hppa && append-cflags "-DTCL_NO_STACK_CHECK=1"
94
95 tc-export CC
96
97 eautoconf
98 }
99
100 src_configure() {
101 econf \
102 $(use_enable threads) \
103 $(use_enable debug symbols)
104 }
105
106 src_install() {
107 #short version number
108 local v1=$(get_version_component_range 1-2)
109 local mylibdir=$(get_libdir)
110
111 S= default
112
113 # fix the tclConfig.sh to eliminate refs to the build directory
114 # and drop unnecessary -L inclusion to default system libdir
115
116 sed \
117 -e "/^TCL_BUILD_LIB_SPEC=/s:-L${SPARENT}.*unix *::g" \
118 -e "/^TCL_LIB_SPEC=/s:-L${EPREFIX}/usr/${mylibdir} *::g" \
119 -e "/^TCL_SRC_DIR=/s:${SPARENT}:${EPREFIX}/usr/${mylibdir}/tcl${v1}/include:g" \
120 -e "/^TCL_BUILD_STUB_LIB_SPEC=/s:-L${SPARENT}.*unix *::g" \
121 -e "/^TCL_STUB_LIB_SPEC=/s:-L${EPREFIX}/usr/${mylibdir} *::g" \
122 -e "/^TCL_BUILD_STUB_LIB_PATH=/s:${SPARENT}.*unix:${EPREFIX}/usr/${mylibdir}:g" \
123 -e "/^TCL_LIB_FILE=/s:'libtcl${v1}..TCL_DBGX..so':\"libtcl${v1}\$\{TCL_DBGX\}.so\":g" \
124 -i "${ED}"/usr/${mylibdir}/tclConfig.sh || die
125 if use prefix && [[ ${CHOST} != *-darwin* && ${CHOST} != *-mint* ]] ; then
126 sed \
127 -e "/^TCL_CC_SEARCH_FLAGS=/s|'$|:${EPREFIX}/usr/${mylibdir}'|g" \
128 -e "/^TCL_LD_SEARCH_FLAGS=/s|'$|:${EPREFIX}/usr/${mylibdir}'|" \
129 -i "${ED}"/usr/${mylibdir}/tclConfig.sh || die
130 fi
131
132 # install private headers
133 insinto /usr/${mylibdir}/tcl${v1}/include/unix
134 doins "${S}"/*.h
135 insinto /usr/${mylibdir}/tcl${v1}/include/generic
136 doins "${SPARENT}"/generic/*.h
137 rm -f "${ED}"/usr/${mylibdir}/tcl${v1}/include/generic/{tcl,tclDecls,tclPlatDecls}.h || die
138
139 # install symlink for libraries
140 dosym libtcl${v1}$(get_libname) /usr/${mylibdir}/libtcl$(get_libname)
141 dosym libtclstub${v1}.a /usr/${mylibdir}/libtclstub.a
142
143 dosym tclsh${v1} /usr/bin/tclsh
144
145 dodoc "${SPARENT}"/{ChangeLog*,README,changes}
146 }
147
148 pkg_postinst() {
149 for version in ${REPLACING_VERSIONS}; do
150 if ! version_is_at_least 8.5 ${version}; then
151 echo
152 ewarn "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 echo
159 fi
160 done
161 }