Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3092 - (hide annotations) (download)
Tue Oct 13 12:30:51 2009 UTC (14 years, 8 months ago) by niro
File size: 2061 byte(s)
auto added: ver bump to 2.4.43-r1
1 niro 3087 # $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 niro 3088 SRCFILE="${PNAME}_${PVER}-1.tar.gz"
18 niro 3087 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 niro 3091 # extreme dirty fix:
47     # it complains always about:
48     # libtool: compile: unable to infer tagged configuration
49     # libtool: compile: specify a tag with `--tag'
50     # make: *** [parser.o] Error 1
51     #
52     # to fix that we set the needed tag to libtool:
53     # --tag=CXX
54 niro 3092 sed -i '/^LIBTOOL/s:=.*:= @LIBTOOL@ --tag=CC:g' \
55 niro 3091 include/builddefs.in || die
56    
57 niro 3087 # libtool will clobber install-sh which is really a custom file
58     mv install-sh attr.install-sh || die
59     autoreconf --install --force --verbose || die
60     mv attr.install-sh install-sh || die
61     }
62    
63     src_compile()
64     {
65     cd ${SRCDIR}
66    
67 niro 3092 # enable CFLAGS
68 niro 3087 export OPTIMIZER="${CFLAGS}"
69 niro 3092
70     # disable debug code
71 niro 3087 export DEBUG="-DNDEBUG"
72    
73     mconfigure \
74     --bindir=/bin \
75     --libdir=/$(mlibdir) \
76     --libexecdir=/usr/$(mlibdir) \
77     --enable-gettext \
78     || die
79    
80 niro 3091 mmake || die
81 niro 3087 }
82    
83     src_install()
84     {
85     cd ${SRCDIR}
86 niro 3091 mmake DIST_ROOT=${BINDIR} install install-dev install-lib || die
87 niro 3087 minstalldocs README VERSION doc/{CHANGES,COPYING} || die
88    
89     # provided by man-pages
90     rm -r ${BINDIR}/usr/share/man/man2 || die
91     }

Properties

Name Value
svn:keywords Id