Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1503 - (show annotations) (download)
Sun May 10 08:21:37 2009 UTC (14 years, 11 months ago) by niro
File size: 2275 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 aclocal || die
66 autoconf || die
67 cd testsuite
68 autoconf -I.. || die
69 }
70
71 src_compile()
72 {
73 cd ${SRCDIR}
74
75 local ver=$(grep TCL_VER /usr/include/tcl.h | sed 's/^.*"\(.*\)".*/\1/')
76
77 mconfigure \
78 --enable-shared \
79 --with-tcl=/usr/$(mlibdir) \
80 --with-tclinclude=/usr/$(mlibdir)/tcl${ver}/generic \
81 --with-tk=/usr/$(mlibdir) \
82 || die
83
84 mmake || die
85 }
86
87 src_install()
88 {
89 cd ${SRCDIR}
90
91 # needed directories
92 minstalldir /usr/$(mlibdir) || die
93
94 mmake INSTALL_ROOT="${BINDIR}" install || die
95
96 # remove static lib
97 rm ${BINDIR}/usr/$(mlibdir)/${PNAME}${PVER%.[0-9]}/lib${PNAME}${PVER%.[0-9]}.a || die
98
99 minstalldocs ChangeLog FAQ HISTORY NEWS README || die
100 }

Properties

Name Value
svn:keywords Id