Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 422 - (hide annotations) (download)
Thu Dec 25 01:30:48 2008 UTC (15 years, 6 months ago) by niro
File size: 1574 byte(s)
-fixed tcl versions
1 niro 421 # $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 niro 422 # 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 niro 421 # 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 niro 422 mmake -j1 LIBTCL=-ltcl8.5 PYTHONVERS=python$(get_python_version) RPM_OPT_FLAGS="${CFLAGS}" || die
51 niro 421 }
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