Contents of /trunk/core/attr/attr-2.4.46-r2.smage2
Parent Directory | Revision Log
Revision 9975 -
(show annotations)
(download)
Sun Jan 15 15:26:47 2012 UTC (12 years, 8 months ago) by niro
File size: 1573 byte(s)
Sun Jan 15 15:26:47 2012 UTC (12 years, 8 months ago) by niro
File size: 1573 byte(s)
auto added: ver bump to 2.4.46-r2
1 | # $Id$ |
2 | |
3 | PNAME="attr" |
4 | PVER="2.4.46" |
5 | PBUILD="r2" |
6 | |
7 | PCAT="sys-apps" |
8 | |
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 | msetfeature "!check" |
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 | --disable-static \ |
67 | || die |
68 | |
69 | mmake || die |
70 | } |
71 | |
72 | src_install() |
73 | { |
74 | cd ${SRCDIR} |
75 | mmake DIST_ROOT=${BINDIR} install install-dev install-lib || die |
76 | minstalldocs README VERSION doc/{CHANGES,COPYING} || die |
77 | |
78 | # provided by man-pages |
79 | rm -r ${BINDIR}/usr/share/man/man2 || die |
80 | } |