Annotation of /trunk/core/xfsprogs/xfsprogs-3.0.3-r1.smage2
Parent Directory | Revision Log
Revision 3218 -
(hide annotations)
(download)
Fri Oct 16 16:33:08 2009 UTC (14 years, 11 months ago) by niro
File size: 2439 byte(s)
Fri Oct 16 16:33:08 2009 UTC (14 years, 11 months ago) by niro
File size: 2439 byte(s)
auto added: ver bump to 3.0.3-r1
1 | niro | 3218 | # $Id$ |
2 | |||
3 | PNAME="xfsprogs" | ||
4 | PVER="3.0.3" | ||
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.41" | ||
15 | |||
16 | SDEPEND=">= sys-dev/gettext-0.17 | ||
17 | >= sys-apps/sed-4" | ||
18 | |||
19 | SRCFILE="${PNAME}-${PVER}.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 | UP2DATE="updatecmd ftp://oss.sgi.com/projects/xfs/cmd_tars | grep ${PNAME} | lasttarball gz" | ||
32 | |||
33 | src_prepare() | ||
34 | { | ||
35 | munpack ${SRCFILE} || die | ||
36 | cd ${SRCDIR} | ||
37 | |||
38 | # fix CFLAGS and some install pathes | ||
39 | sed -i "/^PKG_DOC_DIR/s:=.*:= /usr/share/doc/${PNAME}-${PVER}:" \ | ||
40 | include/builddefs.in || die | ||
41 | |||
42 | # extreme dirty fix: | ||
43 | # it complains always about: | ||
44 | # libtool: compile: unable to infer tagged configuration | ||
45 | # libtool: compile: specify a tag with `--tag' | ||
46 | # make: *** [parser.o] Error 1 | ||
47 | # | ||
48 | # to fix that we set the needed tag to libtool: | ||
49 | # --tag=CXX | ||
50 | # sed -i '/^LIBTOOL/s:=.*:= @LIBTOOL@ --tag=CXX:g' \ | ||
51 | # include/builddefs.in || die | ||
52 | |||
53 | # create configure scripts | ||
54 | mlibtoolize || die | ||
55 | autoconf --force || 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 | --sbindir=/sbin \ | ||
71 | --libexecdir=/$(mlibdir) \ | ||
72 | --enable-gettext \ | ||
73 | || die | ||
74 | |||
75 | mmake || die | ||
76 | } | ||
77 | |||
78 | src_install() | ||
79 | { | ||
80 | cd ${SRCDIR} | ||
81 | |||
82 | # needed directories | ||
83 | minstalldir /usr/$(mlibdir) || die | ||
84 | |||
85 | make DIST_ROOT=${BINDIR} \ | ||
86 | DK_INC_DIR=${BINDIR}/usr/include/disk \ | ||
87 | install install-dev \ | ||
88 | || die | ||
89 | |||
90 | # missing link | ||
91 | mlink /$(mlibdir)/libhandle.so.1 /$(mlibdir)/libhandle.so || die | ||
92 | |||
93 | # fix .la file | ||
94 | sed -e 's:installed=no:installed=yes:g' \ | ||
95 | libhandle/.libs/libhandle.la \ | ||
96 | > ${BINDIR}/usr/$(mlibdir)/libhandle.la \ | ||
97 | || die | ||
98 | |||
99 | # move static lib to /usr/lib | ||
100 | mv ${BINDIR}/$(mlibdir)/*.a ${BINDIR}/usr/$(mlibdir)/ || die | ||
101 | |||
102 | # we want compressed docs | ||
103 | rm -rf ${BINDIR}/usr/share/doc || die | ||
104 | |||
105 | # prune unneeded docs | ||
106 | rm doc/{CHANGES.gz,INSTALL,Makefile} || die | ||
107 | |||
108 | # sometime /var/tmp exist, remove it, to keep the right permissions | ||
109 | [[ -d ${BINDIR}/var ]] && rm -rf ${BINDIR}/var | ||
110 | |||
111 | minstalldocs doc/* || die | ||
112 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |