Contents of /trunk/core/expect/expect-5.43.0-r4.smage2
Parent Directory | Revision Log
Revision 2 -
(show annotations)
(download)
Fri Oct 10 13:29:42 2008 UTC (15 years, 11 months ago) by niro
File size: 1814 byte(s)
Fri Oct 10 13:29:42 2008 UTC (15 years, 11 months ago) by niro
File size: 1814 byte(s)
import repo
1 | # $Header: /magellan-cvs/smage/expect/expect-5.43.0-r4.smage2,v 1.1 2008/03/23 11:06:02 niro Exp $ |
2 | |
3 | PNAME="expect" |
4 | PVER="5.43.0" |
5 | PBUILD="r4" |
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.4 |
14 | >= dev-lang/tk-8.4" |
15 | |
16 | SDEPEND=">= sys-dev/autoconf-2.1" |
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 | ) |
29 | |
30 | UP2DATE="updatecmd ${HOMEPAGE}/src | grep ${PNAME}- | lasttarball gz" |
31 | |
32 | src_prepare() |
33 | { |
34 | munpack ${SRCFILE} |
35 | cd ${SRCDIR} |
36 | |
37 | mpatch -Np1 ${PNAME}-${PVER}-multilib.patch || die |
38 | mpatch -Np1 ${PNAME}-${PVER}-libdir.patch || die |
39 | |
40 | sed -i "s:/usr/local/bin:/usr/bin:" expect.man || die |
41 | sed -i "s:/usr/local/bin:/usr/bin:" expectk.man || die |
42 | |
43 | # stops any example scripts being installed by default |
44 | sed -i -e '/^install:/s/install-libraries //' \ |
45 | -e 's/^SCRIPTS_MANPAGES = /_&/' \ |
46 | Makefile.in || die |
47 | |
48 | gnuconfig-update || die |
49 | WANT_AUTOCONF=2.1 autoconf || die |
50 | } |
51 | |
52 | src_compile() |
53 | { |
54 | cd ${SRCDIR} |
55 | |
56 | local ver=$(grep TCL_VER /usr/include/tcl.h | sed 's/^.*"\(.*\)".*/\1/') |
57 | |
58 | mconfigure \ |
59 | --enable-shared \ |
60 | --with-tcl=/usr/$(mlibdir) \ |
61 | --with-tclinclude=/usr/$(mlibdir)/tcl${ver}/include/generic \ |
62 | --with-tk=/usr/$(mlibdir) \ |
63 | || die |
64 | |
65 | mmake || die |
66 | } |
67 | |
68 | src_install() |
69 | { |
70 | cd ${SRCDIR} |
71 | |
72 | # needed directories |
73 | minstalldir /usr/$(mlibdir) || die |
74 | |
75 | mmake INSTALL_ROOT="${BINDIR}" install || die |
76 | |
77 | # remove static lib |
78 | rm ${BINDIR}/usr/$(mlibdir)/${PNAME}${PVER%.[0-9]}/lib${PNAME}${PVER%.[0-9]}.a || die |
79 | |
80 | minstalldocs ChangeLog FAQ HISTORY NEWS README || die |
81 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |