Magellan Linux

Annotation of /branches/R11-unstable/extras/newt/newt-0.52.20-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 32552 - (hide annotations) (download)
Mon Apr 29 13:07:50 2019 UTC (5 years ago) by niro
File size: 1048 byte(s)
-release branches/R11-unstable
1 niro 29018 # $Id$
2    
3     PNAME="newt"
4     PVER="0.52.20"
5     PBUILD="r2"
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 multilib
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    
35     # fix hardcoded tcl version and use DESTDIR
36 niro 29019 all-abis sed -i -e "s:-ltcl8.4:-ltcl:g" -e "s:instroot:DESTDIR:g" Makefile.in || die
37     all-abis echo '#define USE_INTERP_RESULT 1' >> config.h
38 niro 29018 }
39    
40     src_compile()
41     {
42 niro 29021 if [[ $(mlibdir) != lib ]]
43     then
44 niro 29022 only-m32 mconfigure --without-tcl || die
45 niro 29021 only-m64 mconfigure --with-tcl || die
46     else
47     mconfigure --with-tcl || die
48     fi
49 niro 29018 mmake || die
50     }