Magellan Linux

Contents of /trunk/extras/newt/newt-0.52.17-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 22097 - (show annotations) (download)
Mon Sep 1 14:57:11 2014 UTC (9 years, 9 months ago) by niro
File size: 982 byte(s)
-no multilib
1 # $Id$
2
3 PNAME="newt"
4 PVER="0.52.17"
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 sminclude mbuild
22
23 SRC_URI=(
24 https://fedorahosted.org/releases/${PNAME:0:1}/${PNAME:1:1}/${PNAME}/${SRCFILE}
25 mirror://${PNAME}/${SRCFILE}
26 )
27
28 UP2DATE="updatecmd https://fedorahosted.org/releases/${PNAME:0:1}/${PNAME:1:1}/${PNAME}/ | highesttarball gz"
29
30 src_prepare()
31 {
32 munpack ${SRCFILE} || die
33 cd ${SRCDIR}
34
35 # fix hardcoded tcl version and use DESTDIR
36 sed -i -e "s:-ltcl8.4:-ltcl:g" -e "s:instroot:DESTDIR:g" Makefile.in || die
37 echo '#define USE_INTERP_RESULT 1' >> config.h
38 }
39
40 src_compile()
41 {
42 cd ${SRCDIR}
43
44 mconfigure --with-tcl || die
45 mmake || die
46 }
47
48 src_install()
49 {
50 cd ${SRCDIR}
51
52 mmake DESTDIR=${BINDIR} install || die
53 }