Annotation of /branches/R11-stable/core/tk/tk-8.6.0-r1.smage2
Parent Directory | Revision Log
Revision 14618 -
(hide annotations)
(download)
Tue Jan 1 18:57:57 2013 UTC (11 years, 8 months ago) by niro
Original Path: trunk/core/tk/tk-8.6.0-r1.smage2
File size: 2067 byte(s)
Tue Jan 1 18:57:57 2013 UTC (11 years, 8 months ago) by niro
Original Path: trunk/core/tk/tk-8.6.0-r1.smage2
File size: 2067 byte(s)
auto added: ver bump to 8.6.0-r1
1 | niro | 14618 | # $Id$ |
2 | |||
3 | PNAME="tk" | ||
4 | PVER="8.6.0" | ||
5 | PBUILD="r1" | ||
6 | |||
7 | PCAT="dev-lang" | ||
8 | |||
9 | DESCRIPTION="tk, a tcl gui toolkit." | ||
10 | HOMEPAGE="http://www.tcl.tk/software/tcltk/" | ||
11 | |||
12 | DEPEND=">= x11-libs/libX11-1 | ||
13 | == dev-lang/tcl-${PVER}" | ||
14 | |||
15 | SDEPEND=">= virtual/sed | ||
16 | >= x11-libs/libXt-1 | ||
17 | >= x11-proto/xproto-1" | ||
18 | |||
19 | SRCFILE="${PNAME}${PVER}-src.tar.gz" | ||
20 | SRCDIR="${BUILDDIR}/${PNAME}${PVER}" | ||
21 | |||
22 | sminclude mtools | ||
23 | |||
24 | SRC_URI=( | ||
25 | sourceforge://tcl/${SRCFILE} | ||
26 | mirror://${PNAME}/${SRCFILE} | ||
27 | mirror://${PNAME}/${PNAME}-8.4.13-libdir.patch | ||
28 | mirror://${PNAME}/${PNAME}-8.5.10-flags.patch | ||
29 | ) | ||
30 | |||
31 | # no alphas or betas | ||
32 | UP2EXCLUDE="[0-9][ab][0-9]" | ||
33 | UP2SEPERATOR="NULL" | ||
34 | UP2TARBALL="${PNAME}" | ||
35 | UP2DATE="updatecmd_sourceforge tcl Tcl -src.tar.gz" | ||
36 | |||
37 | src_prepare() | ||
38 | { | ||
39 | munpack ${SRCFILE} || die | ||
40 | cd ${SRCDIR} | ||
41 | |||
42 | # support variable libdir | ||
43 | mpatch ${PNAME}-8.4.13-libdir.patch || die | ||
44 | |||
45 | # fix rpath and pic issues | ||
46 | mpatch ${PNAME}-8.5.10-flags.patch || die | ||
47 | cd ${SRCDIR}/unix | ||
48 | mautoreconf || die | ||
49 | } | ||
50 | |||
51 | src_compile() | ||
52 | { | ||
53 | cd ${SRCDIR}/unix | ||
54 | |||
55 | mconfigure --enable-threads || die | ||
56 | mmake || die | ||
57 | } | ||
58 | |||
59 | src_check() | ||
60 | { | ||
61 | cd ${SRCDIR}/unix | ||
62 | make test || die | ||
63 | } | ||
64 | |||
65 | src_install() | ||
66 | { | ||
67 | cd ${SRCDIR}/unix | ||
68 | |||
69 | local V="$(echo ${PVER} | cut -d "." -f 1,2)" | ||
70 | |||
71 | # removes the reference to the build directory | ||
72 | # and replace them by saner system wide locations | ||
73 | sed -i "s:${SRCDIR}/unix:/usr/$(mlibdir):" tkConfig.sh || die | ||
74 | sed -i "s:${SRCDIR}:/usr/include/tk${V}:" tkConfig.sh || die | ||
75 | |||
76 | # installs tk | ||
77 | mmake DESTDIR=${BINDIR} install || die | ||
78 | |||
79 | # installs the internal headers into a system-wide location. | ||
80 | minstalldir /usr/include/tk${V}/unix || die | ||
81 | minstallfile \*.h /usr/include/tk${V}/unix/ || die | ||
82 | minstalldir /usr/include/tk${V}/generic || die | ||
83 | minstallfile ../generic/\*.h /usr/include/tk${V}/generic/ || die | ||
84 | rm -f ${BINDIR}/usr/include/tk${V}/generic/{tk,tkDecls,tkPlatDecls}.h || die | ||
85 | |||
86 | # creates compatibility symbolic links for the libs | ||
87 | mlink /usr/include/tk${V} /usr/$(mlibdir)/tk${V}/include || die | ||
88 | mlink libtk${V}.so /usr/$(mlibdir)/libtk.so || die | ||
89 | |||
90 | mlink whish${V} /usr/bin/whish || die | ||
91 | |||
92 | cd ${SRCDIR} | ||
93 | minstalldocs ChangeLog* changes license.terms README || die | ||
94 | } |