Magellan Linux

Annotation of /branches/R11-unstable/extras/newt/newt-0.52.18-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 25672 - (hide annotations) (download)
Tue Nov 25 04:08:47 2014 UTC (9 years, 6 months ago) by niro
File size: 1003 byte(s)
-release branches/R11-unstable
1 niro 22565 # $Id$
2    
3     PNAME="newt"
4     PVER="0.52.18"
5     PBUILD="r1"
6    
7     PCAT="dev-libs"
8    
9     DESCRIPTION="A library for text mode user interfaces."
10     HOMEPAGE="https://fedorahosted.org/newt/"
11    
12     DEPEND=">= dev-libs/popt-1.16
13     >= sys-libs/slang-2.2"
14    
15     SDEPEND=">= dev-lang/python-2.7
16     >= dev-lang/tcl-8.6"
17    
18     SRCFILE="${PNAME}-${PVER}.tar.gz"
19     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
20    
21     msetfeature "!check"
22     sminclude mbuild
23    
24     SRC_URI=(
25     https://fedorahosted.org/releases/${PNAME:0:1}/${PNAME:1:1}/${PNAME}/${SRCFILE}
26     mirror://${PNAME}/${SRCFILE}
27     )
28    
29     UP2DATE="updatecmd https://fedorahosted.org/releases/${PNAME:0:1}/${PNAME:1:1}/${PNAME}/ | highesttarball gz"
30    
31     src_prepare()
32     {
33     munpack ${SRCFILE} || die
34     cd ${SRCDIR}
35    
36     # fix hardcoded tcl version and use DESTDIR
37     sed -i -e "s:-ltcl8.4:-ltcl:g" -e "s:instroot:DESTDIR:g" Makefile.in || die
38     echo '#define USE_INTERP_RESULT 1' >> config.h
39     }
40    
41     src_compile()
42     {
43     cd ${SRCDIR}
44    
45     mconfigure --with-tcl || die
46     mmake || die
47     }
48    
49     src_install()
50     {
51     cd ${SRCDIR}
52    
53     mmake DESTDIR=${BINDIR} install || die
54     }