Magellan Linux

Contents of /trunk/core/attr/attr-2.4.43-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3096 - (show annotations) (download)
Tue Oct 13 12:51:56 2009 UTC (14 years, 7 months ago) by niro
File size: 1953 byte(s)
auto added: ver bump to 2.4.43-r1
1 # $Id$
2
3 PNAME="attr"
4 PVER="2.4.43"
5 PBUILD="r1"
6
7 PCATEGORIE="sys-apps"
8 STATE="unstable"
9
10 DESCRIPTION="attr: Extended Attributes Of Filesystem Objects."
11 HOMEPAGE="http://xfs.org/"
12
13 DEPEND=""
14 SDEPEND=">= sys-dev/autoconf-5
15 >= sys-dev/gettext-0.17"
16
17 SRCFILE="${PNAME}_${PVER}-1.tar.gz"
18 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
19
20 sminclude mtools
21
22 SRC_URI=(
23 ftp://oss.sgi.com/projects/xfs/cmd_tars/${SRCFILE}
24 ftp://oss.sgi.com/projects/xfs/previous/cmd_tars/${SRCFILE}
25 mirror://${PNAME}/${SRCFILE}
26 mirror://${PNAME}/${PNAME}-${PVER}-gettext.patch
27 mirror://${PNAME}/${PNAME}-${PVER}-only-symlink-when-needed.patch
28 )
29
30 UP2DATE="updatecmd ftp://oss.sgi.com/projects/xfs/cmd_tars | grep ${PNAME} | sed -n 's/.*_\(.*\)-[0-9]\..*/\1/;$ p'"
31
32 src_prepare()
33 {
34 munpack ${SRCFILE} || die
35 cd ${SRCDIR}
36
37 mpatch ${PNAME}-${PVER}-gettext.patch || die
38 mpatch ${PNAME}-${PVER}-only-symlink-when-needed.patch || die
39
40 sed -i \
41 -e "/^PKG_DOC_DIR/s:@pkg_name@:${PNAME}-${PVER}:" \
42 -e '/HAVE_ZIPPED_MANPAGES/s:=.*:=false:' \
43 include/builddefs.in \
44 || die
45
46 # libtool fixes
47 sed -i -e '/autoconf/d' -e 's@default: $(CONFIGURE)@default:@' Makefile || die
48 sed -i "/AC_OUTPUT/i\AC_PROG_LIBTOOL" configure.in || die
49
50 # libtool will clobber install-sh which is really a custom file
51 mv install-sh attr.install-sh || die
52 mlibtoolize --install --force || die
53 mv attr.install-sh install-sh || die
54 aclocal -I m4 || die
55 autoconf || die
56 }
57
58 src_compile()
59 {
60 cd ${SRCDIR}
61
62 # enable CFLAGS
63 export OPTIMIZER="${CFLAGS}"
64
65 # disable debug code
66 export DEBUG="-DNDEBUG"
67
68 mconfigure \
69 --bindir=/bin \
70 --libdir=/$(mlibdir) \
71 --libexecdir=/usr/$(mlibdir) \
72 --enable-gettext \
73 || die
74
75 mmake LIBTOOL=$PWD/libtool || die
76 }
77
78 src_install()
79 {
80 cd ${SRCDIR}
81 mmake LIBTOOL=$PWD/libtool DIST_ROOT=${BINDIR} install install-dev install-lib || die
82 minstalldocs README VERSION doc/{CHANGES,COPYING} || die
83
84 # provided by man-pages
85 rm -r ${BINDIR}/usr/share/man/man2 || die
86 }

Properties

Name Value
svn:keywords Id