Magellan Linux

Annotation of /trunk/extras/tk/tk-8.6.2-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 22629 - (hide annotations) (download)
Mon Oct 27 10:37:50 2014 UTC (9 years, 7 months ago) by niro
File size: 2249 byte(s)
auto added: ver bump to 8.6.2-r1
1 niro 22629 # $Id$
2    
3     PNAME="tk"
4     PVER="8.6.2"
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.6
13     >= x11-libs/libXft-2.3
14     >= x11-libs/libXScrnSaver-1.2
15     == dev-lang/tcl-${PVER}"
16    
17     SDEPEND=">= virtual/sed
18     >= x11-libs/libXt-1"
19    
20     SRCFILE="${PNAME}${PVER}-src.tar.gz"
21     SRCDIR="${BUILDDIR}/${PNAME}${PVER}"
22    
23     sminclude mtools
24     msetfeature "!check" # disabled, requires full x11
25    
26     SRC_URI=(
27     sourceforge://tcl/${SRCFILE}
28     mirror://${PNAME}/${SRCFILE}
29     mirror://${PNAME}/${PNAME}-8.4.13-libdir.patch
30     mirror://${PNAME}/${PNAME}-8.6.1-flags.patch
31     )
32    
33     # no alphas or betas
34     UP2EXCLUDE="[0-9][ab][0-9]"
35     UP2SEPERATOR="NULL"
36     UP2TARBALL="${PNAME}"
37     UP2DATE="updatecmd_sourceforge tcl Tcl -src.tar.gz"
38    
39     src_prepare()
40     {
41     munpack ${SRCFILE} || die
42     cd ${SRCDIR}
43    
44     # support variable libdir
45     mpatch ${PNAME}-8.4.13-libdir.patch || die
46    
47     # fix rpath and pic issues
48     mpatch ${PNAME}-8.6.1-flags.patch || die
49     cd ${SRCDIR}/unix
50     mautoreconf || die
51     }
52    
53     src_compile()
54     {
55     cd ${SRCDIR}/unix
56    
57     mconfigure --enable-threads || die
58     mmake || die
59     }
60    
61     src_check()
62     {
63     # requires X11
64     cd ${SRCDIR}/unix
65     make test || die
66     }
67    
68     src_install()
69     {
70     cd ${SRCDIR}/unix
71    
72     local V="$(echo ${PVER} | cut -d "." -f 1,2)"
73    
74     # removes the reference to the build directory
75     # and replace them by saner system wide locations
76     sed -i "s:${SRCDIR}/unix:/usr/$(mlibdir):" tkConfig.sh || die
77     sed -i "s:${SRCDIR}:/usr/include/tk${V}:" tkConfig.sh || die
78    
79     # installs tk
80     mmake DESTDIR=${BINDIR} install || die
81    
82     # installs the internal headers into a system-wide location.
83     minstalldir /usr/include/tk${V}/unix || die
84     minstallfile \*.h /usr/include/tk${V}/unix/ || die
85     minstalldir /usr/include/tk${V}/generic || die
86     minstallfile ../generic/\*.h /usr/include/tk${V}/generic/ || die
87     mdelete /usr/include/tk${V}/generic/tk.h || die
88     mdelete /usr/include/tk${V}/generic/tkDecls.h || die
89     mdelete /usr/include/tk${V}/generic/tkPlatDecls.h || die
90    
91     # creates compatibility symbolic links for the libs
92     mlink /usr/include/tk${V} /usr/$(mlibdir)/tk${V}/include || die
93     mlink libtk${V}.so /usr/$(mlibdir)/libtk.so || die
94    
95     mlink whish${V} /usr/bin/whish || die
96    
97     cd ${SRCDIR}
98     minstalldocs ChangeLog* changes license.terms README || die
99     }