Contents of /trunk/core/xfsprogs/xfsprogs-2.10.2-r1.smage2
Parent Directory | Revision Log
Revision 402 -
(show annotations)
(download)
Wed Dec 24 10:18:23 2008 UTC (15 years, 9 months ago) by niro
File size: 2380 byte(s)
Wed Dec 24 10:18:23 2008 UTC (15 years, 9 months ago) by niro
File size: 2380 byte(s)
-ver bump to 2.10.2-r1
1 | # $Header: /magellan-cvs/smage/xfsprogs/xfsprogs-2.9.8-r2.smage2,v 1.1 2008/05/13 13:58:02 niro Exp $ |
2 | |
3 | PNAME="xfsprogs" |
4 | PVER="2.10.2" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="sys-fs" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="Administration and debugging tools for the XFS file system." |
11 | HOMEPAGE="http://oss.sgi.com/projects/xfs/" |
12 | |
13 | DEPEND=">= virtual/glibc |
14 | >= sys-fs/e2fsprogs-1.40" |
15 | |
16 | SDEPEND=">= sys-dev/gettext-0.17 |
17 | >= sys-apps/sed-4" |
18 | |
19 | SRCFILE="${PNAME}_${PVER}-1.tar.gz" |
20 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
21 | |
22 | sminclude mtools |
23 | |
24 | SRC_URI=( |
25 | ftp://oss.sgi.com/projects/xfs/cmd_tars/${SRCFILE} |
26 | ftp://oss.sgi.com/projects/xfs/previous/cmd_tars/${SRCFILE} |
27 | mirror://${PNAME}/${SRCFILE} |
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 | # fix CFLAGS and some install pathes |
38 | sed -i "/^PKG_DOC_DIR/s:=.*:= /usr/share/doc/${PNAME}-${PVER}:" \ |
39 | include/builddefs.in || die |
40 | |
41 | # extreme dirty fix: |
42 | # it complains always about: |
43 | # libtool: compile: unable to infer tagged configuration |
44 | # libtool: compile: specify a tag with `--tag' |
45 | # make: *** [parser.o] Error 1 |
46 | # |
47 | # to fix that we set the needed tag to libtool: |
48 | # --tag=CXX |
49 | sed -i '/^LIBTOOL/s:=.*:= @LIBTOOL@ --tag=CXX:g' \ |
50 | include/builddefs.in || die |
51 | } |
52 | |
53 | src_compile() |
54 | { |
55 | cd ${SRCDIR} |
56 | |
57 | # enable CFLAGS |
58 | export OPTIMIZER="${CFLAGS}" || die |
59 | |
60 | # disable debug code |
61 | export DEBUG=-DNDEBUG || die |
62 | |
63 | mconfigure \ |
64 | --bindir=/bin \ |
65 | --sbindir=/sbin \ |
66 | --libexecdir=/$(mlibdir) \ |
67 | --enable-gettext \ |
68 | || die |
69 | |
70 | mmake || die |
71 | } |
72 | |
73 | src_install() |
74 | { |
75 | cd ${SRCDIR} |
76 | |
77 | # needed directories |
78 | minstalldir /usr/$(mlibdir) || die |
79 | |
80 | make DIST_ROOT=${BINDIR} \ |
81 | DK_INC_DIR=${BINDIR}/usr/include/disk \ |
82 | install install-dev \ |
83 | || die |
84 | |
85 | # missing link |
86 | mlink /$(mlibdir)/libhandle.so.1 /$(mlibdir)/libhandle.so || die |
87 | |
88 | # fix .la file |
89 | sed -e 's:installed=no:installed=yes:g' \ |
90 | libhandle/.libs/libhandle.la \ |
91 | > ${BINDIR}/usr/$(mlibdir)/libhandle.la \ |
92 | || die |
93 | |
94 | # move static lib to /usr/lib |
95 | mv ${BINDIR}/$(mlibdir)/*.a ${BINDIR}/usr/$(mlibdir)/ || die |
96 | |
97 | # we want compressed docs |
98 | rm -rf ${BINDIR}/usr/share/doc || die |
99 | |
100 | # prune unneeded docs |
101 | rm doc/{CHANGES.gz,INSTALL,Makefile} || die |
102 | |
103 | # sometime /var/tmp exist, remove it, to keep the right permissions |
104 | [[ -d ${BINDIR}/var ]] && rm -rf ${BINDIR}/var |
105 | |
106 | minstalldocs doc/* || die |
107 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |