Contents of /trunk/core/tcl/tcl-8.5.5-r1.smage2
Parent Directory | Revision Log
Revision 244 -
(show annotations)
(download)
Wed Oct 15 23:04:01 2008 UTC (15 years, 11 months ago) by niro
File size: 2220 byte(s)
Wed Oct 15 23:04:01 2008 UTC (15 years, 11 months ago) by niro
File size: 2220 byte(s)
-re-diffed libdir patch
1 | # $Header: /magellan-cvs/smage/tcl/tcl-8.4.18-r1.smage2,v 1.1 2008/03/20 00:04:46 niro Exp $ |
2 | |
3 | PNAME="tcl" |
4 | PVER="8.5.5" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="dev-lang" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="The Tcl package contains the Tool Command Language, a robust general-purpose scripting language." |
11 | HOMEPAGE="http://tcl.sourceforge.net/" |
12 | |
13 | DEPEND=">= virtual/glibc" |
14 | SDEPEND=">= sys-apps/sed-4" |
15 | |
16 | SRCFILE="${PNAME}${PVER}-src.tar.gz" |
17 | SRCDIR="${BUILDDIR}/${PNAME}${PVER}" |
18 | |
19 | sminclude mtools |
20 | |
21 | SRC_URI=( |
22 | sourceforge://${PNAME}/${SRCFILE} |
23 | mirror://${PNAME}/${SRCFILE} |
24 | mirror://${PNAME}/${PNAME}-${PVER}-libdir.patch |
25 | ) |
26 | |
27 | UP2DATE="updatecmd_sourceforge ${PNAME} Tcl" |
28 | |
29 | src_prepare() |
30 | { |
31 | munpack ${SRCFILE} || die |
32 | cd ${SRCDIR} |
33 | |
34 | # support variable libdir |
35 | mpatch ${PNAME}-${PVER}-libdir.patch || die |
36 | } |
37 | |
38 | src_compile() |
39 | { |
40 | cd ${SRCDIR}/unix |
41 | |
42 | mconfigure || die |
43 | mmake CFLAGS="${CFLAGS}" || die |
44 | } |
45 | |
46 | src_install() |
47 | { |
48 | cd ${SRCDIR}/unix |
49 | |
50 | local V="$(echo ${PVER} | cut -d "." -f 1,2)" |
51 | |
52 | # removes the reference to the build directory |
53 | # and replace them by saner system wide locations |
54 | sed -i "s:${SRCDIR}/unix:/usr/$(mlibdir):" tclConfig.sh || die |
55 | sed -i "s:${SRCDIR}:/usr/include/tcl${V}:" tclConfig.sh || die |
56 | sed -i "s,^TCL_LIB_FILE='libtcl${V}..TCL_DBGX..so',TCL_LIB_FILE=\"libtcl${V}\$\{TCL_DBGX\}.so\"," tclConfig.sh || die |
57 | |
58 | # fixes a small doc issue cause Thread.3 maybe used by other packages |
59 | # mv ../doc/{,Tcl_}Thread.3 || die |
60 | # sed -i 's/ Thread.3/ Tcl_Thread.3/' mkLinks || die |
61 | |
62 | # installs tcl |
63 | make INSTALL_ROOT=${BINDIR} \ |
64 | MAN_INSTALL_DIR=${BINDIR}/usr/share/man \ |
65 | install || die |
66 | |
67 | # installs the internal headers into a system-wide location. |
68 | minstalldir /usr/include/tcl${V}/unix || die |
69 | minstallfile \*.h /usr/include/tcl${V}/unix/ || die |
70 | minstalldir /usr/include/tcl${V}/generic || die |
71 | minstallfile ../generic/\*.h /usr/include/tcl${V}/generic/ || die |
72 | rm -f ${BINDIR}/usr/include/tcl${V}/generic/{tcl,tclDecls,tclPlatDecls}.h || die |
73 | |
74 | # creates compatibility symbolic links for the libs |
75 | mlink /usr/include/tcl${V} /usr/$(mlibdir)/tcl${V}/include || die |
76 | mlink libtcl${V}.so /usr/$(mlibdir)/libtcl.so || die |
77 | |
78 | mlink tclsh${V} /usr/bin/tclsh || die |
79 | |
80 | cd ${SRCDIR} |
81 | minstalldocs ChangeLog* changes license.terms README || die |
82 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |