Magellan Linux

Annotation of /trunk/core/slang/slang-2.2.1-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3630 - (hide annotations) (download)
Tue Oct 27 22:26:21 2009 UTC (14 years, 10 months ago) by niro
File size: 1032 byte(s)
-rebuild against ncurses-widec
1 niro 3630 # $Id$
2    
3     PNAME="slang"
4     PVER="2.2.1"
5     PBUILD="r2"
6    
7     PCATEGORIE="sys-libs"
8     STATE="unstable"
9    
10     DESCRIPTION="Console display library used by most text viewer"
11     HOMEPAGE="http://www.s-lang.org/"
12    
13     DEPEND=">= sys-libs/ncurses-5.7
14     >= sys-libs/readline-6.0
15     >= dev-libs/libpcre-8.0
16     >= media-libs/libpng-1.2.40"
17    
18     SRCFILE="${PNAME}-${PVER}.tar.bz2"
19     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
20    
21    
22     SRC_URI=(
23     ftp://space.mit.edu/pub/davis/slang/v${PVER:0:3}/${SRCFILE}
24     mirror://${PNAME}/${SRCFILE}
25     mirror://${PNAME}/${PNAME}-2.1.3-slsh-libs.patch
26     )
27    
28     UP2DATE="updatecmd ${HOMEPAGE}/download.html | grep 'latest release' | sed 's/.* \(.*\)\..*/\1/'"
29    
30     src_prepare()
31     {
32     munpack ${SRCFILE} || die
33     cd ${SRCDIR}
34    
35     # fix build of slsh libs
36     mpatch ${PNAME}-2.1.3-slsh-libs.patch || die
37     }
38    
39     src_compile()
40     {
41     cd ${SRCDIR}
42    
43     mconfigure --with-readline=gnu --with-pcre --with-png || die
44     mmake -j1 all elf || die
45     }
46    
47     src_install()
48     {
49     cd ${SRCDIR}
50    
51     make DESTDIR=${BINDIR} install install-elf || die
52     minstalldocs changes.txt COPYING NEWS README UPGRADE.txt || die
53     }

Properties

Name Value
svn:keywords Id