Magellan Linux

Contents of /trunk/core/newt/newt-0.52.10-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 421 - (show annotations) (download)
Thu Dec 25 01:14:54 2008 UTC (15 years, 6 months ago) by niro
File size: 1439 byte(s)
-ver bump to 0.52.10-r1
1 # $Header: /magellan-cvs/smage/newt/newt-0.52.9-r1.smage2,v 1.1 2008/04/09 21:37:28 niro Exp $
2
3 PNAME="newt"
4 PVER="0.52.10"
5 PBUILD="r1"
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.1
14 >= dev-libs/popt-1.14
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 # use DESTDIR instead of instroot
39 sed -i 's:instroot:DESTDIR:g' ${SRCDIR}/Makefile.in || die
40 }
41
42 src_compile()
43 {
44 cd ${SRCDIR}
45
46 mconfigure || die
47 mmake -j1 PYTHONVERS=python$(get_python_version) RPM_OPT_FLAGS="${CFLAGS}" || die
48 }
49
50 src_install()
51 {
52 cd ${SRCDIR}
53
54 # the RPM_OPT_FLAGS="ERROR" is there to catch a build error
55 # if it fails, that means something in src_compile() didn't build properly
56 make DESTDIR=${BINDIR} PYTHONVERS=python$(get_python_version) RPM_OPT_FLAGS=ERROR install || die
57 minstalldocs CHANGES COPYING peanuts.py popcorn.py tutorial.sgml || die
58 }

Properties

Name Value
svn:keywords Id