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