Magellan Linux

Contents of /trunk/core/e2fsprogs/e2fsprogs-1.42.2-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 12753 - (show annotations) (download)
Mon Jul 2 14:37:15 2012 UTC (11 years, 11 months ago) by niro
File size: 1749 byte(s)
-marked unstable
1 # $Id$
2
3 PNAME="e2fsprogs"
4 PVER="1.42.2"
5 PBUILD="r2"
6
7 PCAT="sys-fs"
8 STATE="unstable"
9
10 DESCRIPTION="Standard EXT2 and EXT3 filesystem utilities."
11 HOMEPAGE="http://e2fsprogs.sourceforge.net/"
12
13 DEPEND=">= virtual/glibc"
14 SDEPEND=">= sys-apps/texinfo-4"
15
16 SRCFILE="${PNAME}-${PVER}.tar.gz"
17 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
18
19 sminclude multilib
20 msetfeature "!check"
21
22 SRC_URI=(
23 sourceforge://${PNAME}/${SRCFILE}
24 mirror://${PNAME}/${SRCFILE}
25 )
26
27 UP2DATE="updatecmd_sourceforge ${PNAME} | sed s/v//"
28
29 src_prepare()
30 {
31 munpack ${SRCFILE} || die
32
33 local abi
34 for abi in ${MULTILIB_ABIS}
35 do
36 install -d ${SRCDIR}-${abi}/build || die
37 if [[ ${abi} = m64 ]]
38 then
39 sed -i '/libdir=.*\/lib/s@/lib@/lib64@g' ${SRCDIR}-${abi}/configure || die
40 fi
41 done
42 }
43
44 src_compile()
45 {
46 # we are using blkid from util linux now (--disable-fsck --disable-libblkid)
47 # which merges the old blkid from e2fsprogs and udevs libvolume
48 # see: http://lists.freedesktop.org/archives/hal-commit/2009-May/004936.html
49 local abi
50 for abi in ${MULTILIB_ABIS}
51 do
52 cd ${SRCDIR}-${abi}/build
53 abi-${abi} ../configure \
54 --host=${CHOST} \
55 --prefix=/usr \
56 --infodir=/usr/share/info \
57 --mandir=/usr/share/man \
58 --enable-elf-shlibs \
59 --disable-fsck \
60 --disable-libblkid \
61 --disable-libuuid \
62 --disable-uuidd \
63 || die
64
65 make || die
66 done
67 }
68
69 src_install()
70 {
71 local abi
72 for abi in ${MULTILIB_ABIS}
73 do
74 cd ${SRCDIR}-${abi}/build
75 make DESTDIR=${BINDIR} install || die
76 make DESTDIR=${BINDIR} install-libs || die
77 done
78
79 # breaks our basesystem; we are using a symlink to /etc/rc.d/init.d
80 if [[ -d ${BINDIR}/etc/init.d ]]
81 then
82 rm -r ${BINDIR}/etc/init.d || die
83 fi
84
85 cd ${SRCDIR}
86 minstalldocs ABOUT-NLS ChangeLog COPYING README RELEASE-NOTES || die
87 }