Contents of /trunk/extras/newt/newt-0.52.20-r2.smage2
Parent Directory | Revision Log
Revision 29022 -
(show annotations)
(download)
Wed May 17 14:51:15 2017 UTC (7 years, 4 months ago) by niro
File size: 1048 byte(s)
Wed May 17 14:51:15 2017 UTC (7 years, 4 months ago) by niro
File size: 1048 byte(s)
-fixed multilib issues
1 | # $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 | 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 | } |
39 | |
40 | src_compile() |
41 | { |
42 | if [[ $(mlibdir) != lib ]] |
43 | then |
44 | only-m32 mconfigure --without-tcl || die |
45 | only-m64 mconfigure --with-tcl || die |
46 | else |
47 | mconfigure --with-tcl || die |
48 | fi |
49 | mmake || die |
50 | } |