Magellan Linux

Contents of /trunk/extras/expect/expect-5.45-r3.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 16162 - (show annotations) (download)
Fri Jan 25 13:53:16 2013 UTC (11 years, 3 months ago) by niro
File size: 886 byte(s)
-use mlibdir
1 # $Id$
2
3 PNAME="expect"
4 PVER="5.45"
5 PBUILD="r3"
6
7 PCAT="dev-util"
8
9 DESCRIPTION="A tool for automating interactive applications."
10 HOMEPAGE="http://expect.nist.gov/"
11
12 DEPEND=">= dev-lang/tcl-8.6
13 >= dev-lang/tk-8.6"
14
15 SDEPEND=">= sys-dev/autoconf-5"
16
17 SRCFILE="${PNAME}${PVER}.tar.gz"
18 SRCDIR="${BUILDDIR}/${PNAME}${PVER}"
19
20 sminclude mtools mbuild
21 msetfeature "!check"
22
23 SRC_URI=(
24 sourceforge://${PNAME}/${SRCFILE}
25 mirror://${PNAME}/${SRCFILE}
26 )
27
28 UP2DATE="updatecmd ${HOMEPAGE}/src | grep ${PNAME}- | lasttarball gz"
29
30 src_compile()
31 {
32 cd ${SRCDIR}
33
34 mconfigure \
35 --enable-shared \
36 --with-tcl=/usr/$(mlibdir) \
37 --with-tclinclude=/usr/include \
38 || die
39
40 mmake || die
41 }
42
43 src_install()
44 {
45 cd ${SRCDIR}
46
47 mmake DESTDIR=${BINDIR} install || die
48 # fix missing symlink
49 mlink expect${PVER}/libexpect${PVER}.so /usr/$(mlibdir)/ || die
50 minstalldocs ChangeLog FAQ HISTORY NEWS README || die
51 }