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/tk: ChangeLog tk-8.5b.ebuild
Date: Sat, 03 Nov 2007 21:29:35
Message-Id: E1IoQYZ-0001mg-FJ@stork.gentoo.org
1 jokey 07/11/03 21:29:27
2
3 Modified: ChangeLog
4 Added: tk-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.98 dev-lang/tk/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/tk/ChangeLog?rev=1.98&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/tk/ChangeLog?rev=1.98&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/tk/ChangeLog?r1=1.97&r2=1.98
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-lang/tk/ChangeLog,v
19 retrieving revision 1.97
20 retrieving revision 1.98
21 diff -u -r1.97 -r1.98
22 --- ChangeLog 23 Sep 2007 01:19:14 -0000 1.97
23 +++ ChangeLog 3 Nov 2007 21:29:26 -0000 1.98
24 @@ -1,6 +1,11 @@
25 # ChangeLog for dev-lang/tk
26 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/tk/ChangeLog,v 1.97 2007/09/23 01:19:14 fmccor Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/tk/ChangeLog,v 1.98 2007/11/03 21:29:26 jokey Exp $
29 +
30 +*tk-8.5b (03 Nov 2007)
31 +
32 + 03 Nov 2007; Markus Ullmann <jokey@g.o> +tk-8.5b.ebuild:
33 + Version bump, dropping keywords as status wrt other packages is untested
34
35 23 Sep 2007; Ferris McCormick <fmccor@g.o> tk-8.4.15-r1.ebuild:
36 Sparc stable --- security Bug #192539 --- has been running fine.
37
38
39
40 1.1 dev-lang/tk/tk-8.5b.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/tk/tk-8.5b.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/tk/tk-8.5b.ebuild?rev=1.1&content-type=text/plain
44
45 Index: tk-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/tk/tk-8.5b.ebuild,v 1.1 2007/11/03 21:29:26 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="Tk Widget Set"
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 RDEPEND="x11-libs/libX11
67 ~dev-lang/tcl-${PV}"
68 DEPEND="${RDEPEND}
69 x11-libs/libXt
70 x11-proto/xproto"
71
72 S="${WORKDIR}/${MY_P}"
73
74 pkg_setup() {
75 if use threads ; then
76 ewarn ""
77 ewarn "PLEASE NOTE: You are compiling ${P} with"
78 ewarn "threading enabled."
79 ewarn "Threading is not supported by all applications"
80 ewarn "that compile against tcl. You use threading at"
81 ewarn "your own discretion."
82 ewarn ""
83 epause 5
84 fi
85 }
86
87 src_unpack() {
88 unpack ${A}
89 cd "${S}"
90 epatch "${FILESDIR}"/${PN}-8.4.11-multilib.patch
91
92 # Bug 125971
93 epatch "${FILESDIR}"/${PN}-8.5_alpha6-tclm4-soname.patch
94
95 cd "${S}"/unix
96 eautoreconf
97 }
98
99 src_compile() {
100 tc-export CC
101 cd "${S}"/unix
102
103 local mylibdir=$(get_libdir) ; mylibdir=${mylibdir//\/}
104
105 econf \
106 --with-tcl=/usr/${mylibdir} \
107 $(use_enable threads) \
108 $(use_enable debug symbols) || die
109
110 emake || die
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 || die
120
121 # fix the tkConfig.sh to eliminate refs to the build directory
122 local mylibdir=$(get_libdir) ; mylibdir=${mylibdir//\/}
123 sed -i \
124 -e "s,^\(TK_BUILD_LIB_SPEC='-L\)${S}/unix,\1/usr/${mylibdir}," \
125 -e "s,^\(TK_SRC_DIR='\)${S}',\1/usr/${mylibdir}/tk${v1}/include'," \
126 -e "s,^\(TK_BUILD_STUB_LIB_SPEC='-L\)${S}/unix,\1/usr/${mylibdir}," \
127 -e "s,^\(TK_BUILD_STUB_LIB_PATH='\)${S}/unix,\1/usr/${mylibdir}," \
128 -e "s,^\(TK_CC_SEARCH_FLAGS='.*\)',\1:/usr/${mylibdir}'," \
129 -e "s,^\(TK_LD_SEARCH_FLAGS='.*\)',\1:/usr/${mylibdir}'," \
130 "${D}"/usr/${mylibdir}/tkConfig.sh || die
131
132 # install private headers
133 insinto /usr/${mylibdir}/tk${v1}/include/unix
134 doins "${S}"/unix/*.h || die
135 insinto /usr/${mylibdir}/tk${v1}/include/generic
136 doins "${S}"/generic/*.h || die
137 rm -f "${D}"/usr/${mylibdir}/tk${v1}/include/generic/tk.h
138 rm -f "${D}"/usr/${mylibdir}/tk${v1}/include/generic/tkDecls.h
139 rm -f "${D}"/usr/${mylibdir}/tk${v1}/include/generic/tkPlatDecls.h
140
141 # install symlink for libraries
142 #dosym libtk${v1}.a /usr/${mylibdir}/libtk.a
143 dosym libtk${v1}.so /usr/${mylibdir}/libtk.so
144 dosym libtkstub${v1}.a /usr/${mylibdir}/libtkstub.a
145
146 dosym wish${v1} /usr/bin/wish
147
148 cd "${S}"
149 dodoc ChangeLog* README changes
150 }
151
152
153
154 --
155 gentoo-commits@g.o mailing list