Magellan Linux

Contents of /branches/magellan-next/core/attr/attr-2.4.46-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7550 - (show annotations) (download)
Thu May 26 20:56:01 2011 UTC (13 years ago) by niro
File size: 1554 byte(s)
auto added: ver bump to 2.4.46-r1
1 # $Id$
2
3 PNAME="attr"
4 PVER="2.4.46"
5 PBUILD="r1"
6
7 PCATEGORIE="sys-apps"
8 STATE="unstable"
9
10 DESCRIPTION="attr: Extended Attributes Of Filesystem Objects."
11 HOMEPAGE="http://savannah.nongnu.org/projects/${PNAME}"
12
13 DEPEND=""
14 SDEPEND=">= sys-dev/autoconf-5
15 >= sys-dev/gettext-0.18"
16
17 SRCFILE="${PNAME}-${PVER}.src.tar.gz"
18 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
19
20 sminclude mtools multilib
21
22 SRC_URI=(
23 http://download.savannah.gnu.org/releases/${PNAME}/${SRCFILE}
24 mirror://${PNAME}/${PNAME}-${PVER}-gettext.patch
25 mirror://${PNAME}/${PNAME}-${PVER}-fix-includes.patch
26 )
27
28 UP2SUBSTITUTE=".src"
29 UP2DATE="updatecmd 'http://download.savannah.gnu.org/releases/${PNAME}?C=M;O=A' | lasttarball gz"
30
31 src_prepare()
32 {
33 munpack ${SRCFILE} || die
34 cd ${SRCDIR}
35
36 mpatch ${PNAME}-${PVER}-gettext.patch || die
37 mpatch ${PNAME}-${PVER}-fix-includes.patch || die
38
39 local abi
40 for abi in ${MULTILIB_ABIS}
41 do
42 cd ${SRCDIR}-${abi}
43 sed -i \
44 -e "/^PKG_DOC_DIR/s:@pkg_name@:${PNAME}-${PVER}:" \
45 -e '/HAVE_ZIPPED_MANPAGES/s:=.*:=false:' \
46 include/builddefs.in \
47 || die
48 done
49 }
50
51 src_compile()
52 {
53 cd ${SRCDIR}
54
55 # enable CFLAGS
56 export OPTIMIZER="${CFLAGS}"
57
58 # disable debug code
59 export DEBUG="-DNDEBUG"
60
61 mconfigure \
62 --bindir=/bin \
63 --libdir=/'$(mlibdir)' \
64 --libexecdir=/usr/'$(mlibdir)' \
65 --enable-gettext \
66 || die
67
68 mmake || die
69 }
70
71 src_install()
72 {
73 cd ${SRCDIR}
74 mmake DIST_ROOT=${BINDIR} install install-dev install-lib || die
75 minstalldocs README VERSION doc/{CHANGES,COPYING} || die
76
77 # provided by man-pages
78 rm -r ${BINDIR}/usr/share/man/man2 || die
79 }