Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 22095 - (show annotations) (download)
Mon Sep 1 14:52:27 2014 UTC (9 years, 9 months ago) by niro
File size: 965 byte(s)
auto added: ver bump to 0.52.17-r1
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 multilib
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
34 # fix hardcoded tcl version and use DESTDIR
35 all-abis 'sed -i -e "s:-ltcl8.4:-ltcl:g" -e -e "s:instroot:DESTDIR:g" Makefile.in || die'
36 all-abis "echo '#define USE_INTERP_RESULT 1' >> config.h"
37 }
38
39 src_compile()
40 {
41 mconfigure --with-tcl || die
42 mmake || die
43 }
44
45 src_install()
46 {
47 mmake DESTDIR=${BINDIR} install || die
48 }