Magellan Linux

Annotation of /trunk/core/attr/attr-2.4.46-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9973 - (hide annotations) (download)
Sun Jan 15 15:25:54 2012 UTC (12 years, 8 months ago) by niro
File size: 1552 byte(s)
-import from magellan-next
1 niro 9455 # $Id$
2    
3     PNAME="attr"
4     PVER="2.4.46"
5     PBUILD="r2"
6    
7 niro 9973 PCAT="sys-apps"
8 niro 9455
9     DESCRIPTION="attr: Extended Attributes Of Filesystem Objects."
10     HOMEPAGE="http://savannah.nongnu.org/projects/${PNAME}"
11    
12     DEPEND=""
13     SDEPEND=">= sys-dev/autoconf-5
14     >= sys-dev/gettext-0.18"
15    
16     SRCFILE="${PNAME}-${PVER}.src.tar.gz"
17     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
18    
19     sminclude mtools multilib
20    
21     SRC_URI=(
22     http://download.savannah.gnu.org/releases/${PNAME}/${SRCFILE}
23     mirror://${PNAME}/${PNAME}-${PVER}-gettext.patch
24     mirror://${PNAME}/${PNAME}-${PVER}-fix-includes.patch
25     )
26    
27     UP2SUBSTITUTE=".src"
28     UP2DATE="updatecmd 'http://download.savannah.gnu.org/releases/${PNAME}?C=M;O=A' | lasttarball gz"
29    
30     src_prepare()
31     {
32     munpack ${SRCFILE} || die
33     cd ${SRCDIR}
34    
35     mpatch ${PNAME}-${PVER}-gettext.patch || die
36     mpatch ${PNAME}-${PVER}-fix-includes.patch || die
37    
38     local abi
39     for abi in ${MULTILIB_ABIS}
40     do
41     cd ${SRCDIR}-${abi}
42     sed -i \
43     -e "/^PKG_DOC_DIR/s:@pkg_name@:${PNAME}-${PVER}:" \
44     -e '/HAVE_ZIPPED_MANPAGES/s:=.*:=false:' \
45     include/builddefs.in \
46     || die
47     done
48     }
49    
50     src_compile()
51     {
52     cd ${SRCDIR}
53    
54     # enable CFLAGS
55     export OPTIMIZER="${CFLAGS}"
56    
57     # disable debug code
58     export DEBUG="-DNDEBUG"
59    
60     mconfigure \
61     --bindir=/bin \
62     --libdir=/'$(mlibdir)' \
63     --libexecdir=/usr/'$(mlibdir)' \
64     --enable-gettext \
65     --disable-static \
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     }