Magellan Linux

Annotation of /branches/branch-xorg18/core/expect/expect-5.43.0-r6.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5192 - (hide annotations) (download)
Tue Apr 6 21:54:10 2010 UTC (14 years, 2 months ago) by niro
File size: 1979 byte(s)
created branch 'branch-xorg18'
1 niro 3419 # $Id$
2    
3     PNAME="expect"
4     PVER="5.43.0"
5     PBUILD="r6"
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     )
31    
32     UP2DATE="updatecmd ${HOMEPAGE}/src | grep ${PNAME}- | lasttarball gz"
33    
34     src_prepare()
35     {
36     munpack ${SRCFILE}
37     cd ${SRCDIR}
38    
39     mpatch ${PNAME}-${PVER}-multilib.patch || die
40     mpatch ${PNAME}-${PVER}-libdir.patch || die
41    
42     # fix build with tcl-8.5 (missing includes)
43     mpatch ${PNAME}-${PVER}-tcl8.5.patch || die
44    
45     # fix build with >=tcl-8.5.6
46     mpatch ${PNAME}-${PVER}-tcl8.5.6.patch || die
47    
48     sed -i "s:/usr/local/bin:/usr/bin:" expect.man || die
49     sed -i "s:/usr/local/bin:/usr/bin:" expectk.man || die
50    
51     # stops any example scripts being installed by default
52     sed -i -e '/^install:/s/install-libraries //' \
53     -e 's/^SCRIPTS_MANPAGES = /_&/' \
54     Makefile.in || die
55    
56     gnuconfig-update || die
57     WANT_AUTOCONF=2.1 autoconf || die
58     }
59    
60     src_compile()
61     {
62     cd ${SRCDIR}
63    
64     local ver=$(grep TCL_VER /usr/include/tcl.h | sed 's/^.*"\(.*\)".*/\1/')
65    
66     mconfigure \
67     --enable-shared \
68     --with-tcl=/usr/$(mlibdir) \
69     --with-tclinclude=/usr/$(mlibdir)/tcl${ver}/include/generic \
70     --with-tk=/usr/$(mlibdir) \
71     || die
72    
73     mmake || die
74     }
75    
76     src_install()
77     {
78     cd ${SRCDIR}
79    
80     # needed directories
81     minstalldir /usr/$(mlibdir) || die
82    
83     mmake INSTALL_ROOT="${BINDIR}" install || die
84    
85     # remove static lib
86     rm ${BINDIR}/usr/$(mlibdir)/${PNAME}${PVER%.[0-9]}/lib${PNAME}${PVER%.[0-9]}.a || die
87    
88     minstalldocs ChangeLog FAQ HISTORY NEWS README || die
89     }

Properties

Name Value
svn:keywords Id