Contents of /trunk/core/newt/newt-0.52.10-r2.smage2
Parent Directory | Revision Log
Revision 3569 -
(show annotations)
(download)
Mon Oct 26 15:19:06 2009 UTC (14 years, 11 months ago) by niro
File size: 1470 byte(s)
Mon Oct 26 15:19:06 2009 UTC (14 years, 11 months ago) by niro
File size: 1470 byte(s)
auto added: ver bump to 0.52.10-r2
1 | # $Id$ |
2 | |
3 | PNAME="newt" |
4 | PVER="0.52.10" |
5 | PBUILD="r2" |
6 | |
7 | PCATEGORIE="dev-libs" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="Redhat's Newt windowing toolkit development files." |
11 | HOMEPAGE="https://fedorahosted.org/newt/" |
12 | |
13 | DEPEND=">= sys-libs/slang-2.2 |
14 | >= dev-libs/popt-1.15 |
15 | >= dev-lang/python-2.6" |
16 | |
17 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
18 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
19 | |
20 | # get python version -> ex 2.4 |
21 | sminclude python |
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}/ | lasttarball gz" |
29 | |
30 | src_prepare() |
31 | { |
32 | munpack ${SRCFILE} || die |
33 | cd ${SRCDIR} |
34 | |
35 | # fix libdir |
36 | sed -i "s:\(libdir =\).*:\1 \$(prefix)/$(mlibdir):g" Makefile.in || die |
37 | |
38 | # fix tcl version |
39 | sed -i "s:-ltcl[0-9].[0-9]:-ltcl$(readlink /usr/bin/tclsh | sed 's/tclsh//'):" Makefile.in || die |
40 | |
41 | # use DESTDIR instead of instroot |
42 | sed -i 's:instroot:DESTDIR:g' ${SRCDIR}/Makefile.in || die |
43 | } |
44 | |
45 | src_compile() |
46 | { |
47 | cd ${SRCDIR} |
48 | |
49 | mconfigure || die |
50 | mmake -j1 PYTHONVERS=python$(get_python_version) RPM_OPT_FLAGS="${CFLAGS}" || die |
51 | } |
52 | |
53 | src_install() |
54 | { |
55 | cd ${SRCDIR} |
56 | |
57 | # the RPM_OPT_FLAGS="ERROR" is there to catch a build error |
58 | # if it fails, that means something in src_compile() didn't build properly |
59 | make DESTDIR=${BINDIR} PYTHONVERS=python$(get_python_version) RPM_OPT_FLAGS=ERROR install || die |
60 | minstalldocs CHANGES COPYING peanuts.py popcorn.py tutorial.sgml || die |
61 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |