Magellan Linux

Contents of /trunk/core/expect/expect-5.43.0-r5.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1501 - (show annotations) (download)
Sun May 10 08:09:39 2009 UTC (14 years, 11 months ago) by niro
File size: 2309 byte(s)
auto added: ver bump to 5.43.0-r5
1 # $Id$
2
3 PNAME="expect"
4 PVER="5.43.0"
5 PBUILD="r5"
6
7 PCATEGORIE="dev-util"
8 STATE="unstable"
9
10 DESCRIPTION="A tool for automating interactive applications."
11 HOMEPAGE="http://expect.nist.gov/"
12
13 DEPEND=">= dev-lang/tcl-8.5
14 >= dev-lang/tk-8.5"
15
16 SDEPEND=">= sys-dev/autoconf-5"
17
18 SRCFILE="${PNAME}-${PVER}.tar.gz"
19 SRCDIR="${BUILDDIR}/${PNAME}-${PVER%.[0-9]}"
20
21 sminclude gnuconfig mtools
22
23 SRC_URI=(
24 http://expect.nist.gov/src/${SRCFILE}
25 mirror://${PNAME}/${SRCFILE}
26 mirror://${PNAME}/${PNAME}-${PVER}-multilib.patch
27 mirror://${PNAME}/${PNAME}-${PVER}-libdir.patch
28 mirror://${PNAME}/${PNAME}-${PVER}-tcl8.5.patch
29 mirror://${PNAME}/${PNAME}-${PVER}-tcl8.5.6.patch
30 mirror://${PNAME}/${PNAME}-${PVER}-pkgpath.patch
31 mirror://${PNAME}/${PNAME}-${PVER}-pkgIndex-x.patch
32 )
33
34 UP2DATE="updatecmd ${HOMEPAGE}/src | grep ${PNAME}- | lasttarball gz"
35
36 src_prepare()
37 {
38 munpack ${SRCFILE}
39 cd ${SRCDIR}
40
41 mpatch ${PNAME}-${PVER}-multilib.patch || die
42 mpatch ${PNAME}-${PVER}-libdir.patch || die
43
44 # fix build with tcl-8.5 (missing includes)
45 mpatch ${PNAME}-${PVER}-tcl8.5.patch || die
46
47 # fix build with >=tcl-8.5.6
48 mpatch ${PNAME}-${PVER}-tcl8.5.6.patch || die
49
50 # fix tcl-8.5 pkg-pathes
51 mpatch ${PNAME}-${PVER}-pkgpath.patch || die
52
53 # pkgIndex.tcl should not be an executable
54 mpatch ${PNAME}-${PVER}-pkgIndex-x.patch || die
55
56 sed -i "s:/usr/local/bin:/usr/bin:" expect.man || die
57 sed -i "s:/usr/local/bin:/usr/bin:" expectk.man || die
58
59 # stops any example scripts being installed by default
60 sed -i -e '/^install:/s/install-libraries //' \
61 -e 's/^SCRIPTS_MANPAGES = /_&/' \
62 Makefile.in || die
63
64 gnuconfig-update || die
65 export WANT_AUTOCONF=2.1
66 aclocal || die
67 autoconf || die
68 cd testsuite
69 autoconf -I.. || die
70 }
71
72 src_compile()
73 {
74 cd ${SRCDIR}
75
76 local ver=$(grep TCL_VER /usr/include/tcl.h | sed 's/^.*"\(.*\)".*/\1/')
77
78 mconfigure \
79 --enable-shared \
80 --with-tcl=/usr/$(mlibdir) \
81 --with-tclinclude=/usr/$(mlibdir)/tcl${ver}/include/generic \
82 --with-tk=/usr/$(mlibdir) \
83 || die
84
85 mmake || die
86 }
87
88 src_install()
89 {
90 cd ${SRCDIR}
91
92 # needed directories
93 minstalldir /usr/$(mlibdir) || die
94
95 mmake INSTALL_ROOT="${BINDIR}" install || die
96
97 # remove static lib
98 rm ${BINDIR}/usr/$(mlibdir)/${PNAME}${PVER%.[0-9]}/lib${PNAME}${PVER%.[0-9]}.a || die
99
100 minstalldocs ChangeLog FAQ HISTORY NEWS README || die
101 }

Properties

Name Value
svn:keywords Id