Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (show annotations) (download)
Fri Oct 10 13:29:42 2008 UTC (15 years, 8 months ago) by niro
File size: 1330 byte(s)
import repo
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.9"
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.13
15 >= dev-lang/python-2.5"
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 src_prepare()
29 {
30 munpack ${SRCFILE} || die
31 cd ${SRCDIR}
32
33 # fix libdir
34 sed -i "s:\(libdir =\).*:\1 \$(prefix)/$(mlibdir):g" Makefile.in || die
35
36 # use DESTDIR instead of instroot
37 sed -i 's:instroot:DESTDIR:g' ${SRCDIR}/Makefile.in || die
38 }
39
40 src_compile()
41 {
42 cd ${SRCDIR}
43
44 mconfigure || die
45 mmake -j1 PYTHONVERS=python$(get_python_version) RPM_OPT_FLAGS="${CFLAGS}" || die
46 }
47
48 src_install()
49 {
50 cd ${SRCDIR}
51
52 # the RPM_OPT_FLAGS="ERROR" is there to catch a build error
53 # if it fails, that means something in src_compile() didn't build properly
54 make DESTDIR=${BINDIR} PYTHONVERS=python$(get_python_version) RPM_OPT_FLAGS=ERROR install || die
55 minstalldocs CHANGES COPYING peanuts.py popcorn.py tutorial.sgml || die
56 }

Properties

Name Value
svn:keywords Id