Contents of /branches/R11-stable/core/attr/attr-2.4.47-r1.smage2
Parent Directory | Revision Log
Revision 17731 -
(show annotations)
(download)
Wed Jun 26 12:08:31 2013 UTC (11 years, 3 months ago) by niro
File size: 1700 byte(s)
Wed Jun 26 12:08:31 2013 UTC (11 years, 3 months ago) by niro
File size: 1700 byte(s)
-release branches/R11-stable
1 | # $Id$ |
2 | |
3 | PNAME="attr" |
4 | PVER="2.4.47" |
5 | PBUILD="r1" |
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 | --libexecdir=/usr/'$(mlibdir)' \ |
63 | --enable-gettext \ |
64 | --disable-static \ |
65 | || die |
66 | |
67 | mmake || die |
68 | } |
69 | |
70 | src_install() |
71 | { |
72 | cd ${SRCDIR} |
73 | mmake DIST_ROOT=${BINDIR} install install-dev install-lib || die |
74 | # symlinks are not honored by features !libool & prune |
75 | #all-abis rm ${BINDIR}/usr/'$(mlibdir)'/libattr.a || die |
76 | all-abis rm ${BINDIR}/usr/'$(mlibdir)'/libattr.la || die |
77 | minstalldocs README VERSION doc/{CHANGES,COPYING} || die |
78 | |
79 | # provided by man-pages |
80 | rm -r ${BINDIR}/usr/share/man/man2 || die |
81 | } |