Annotation of /smage/trunk/core/e2fsprogs/e2fsprogs-1.41.12-r1.smage2
Parent Directory | Revision Log
Revision 672 -
(hide annotations)
(download)
Thu Oct 21 12:29:03 2010 UTC (13 years, 6 months ago) by niro
File size: 2136 byte(s)
Thu Oct 21 12:29:03 2010 UTC (13 years, 6 months ago) by niro
File size: 2136 byte(s)
-mcore
1 | niro | 669 | # $Id: e2fsprogs-1.41.9-r2.smage2 5345 2010-05-04 21:31:05Z niro $ |
2 | |||
3 | PNAME="e2fsprogs" | ||
4 | PVER="1.41.12" | ||
5 | PBUILD="r1" | ||
6 | |||
7 | PCATEGORIE="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 | niro | 672 | MCORE_ONLY_KEEP="$(mlibdir)/*.so |
20 | $(mlibdir)/*.so.* | ||
21 | sbin/blkid | ||
22 | sbin/e2fsck | ||
23 | sbin/mke2fs | ||
24 | sbin/mkfs.ext2 | ||
25 | sbin/mkfs.ext3 | ||
26 | sbin/mkfs.ext4 | ||
27 | sbin/tune2fs | ||
28 | sbin/fsck.ext2 | ||
29 | sbin/fsck.ext3 | ||
30 | sbin/fsck.ext4 | ||
31 | usr/$(mlibdir)/*.so | ||
32 | usr/$(mlibdir)/*.so.* | ||
33 | usr/sbin/mklost+found" | ||
34 | niro | 669 | |
35 | niro | 672 | sminclude multilib mcore-split |
36 | |||
37 | niro | 669 | SRC_URI=( |
38 | sourceforge://${PNAME}/${SRCFILE} | ||
39 | mirror://${PNAME}/${SRCFILE} | ||
40 | ) | ||
41 | |||
42 | UP2DATE="updatecmd_sourceforge ${PNAME} | sed s/v//" | ||
43 | |||
44 | src_prepare() | ||
45 | { | ||
46 | munpack ${SRCFILE} || die | ||
47 | |||
48 | local abi | ||
49 | for abi in ${MULTILIB_ABIS} | ||
50 | do | ||
51 | install -d ${SRCDIR}-${abi}/build || die | ||
52 | if [[ ${abi} = m64 ]] | ||
53 | then | ||
54 | sed -i '/libdir=.*\/lib/s@/lib@/lib64@g' ${SRCDIR}-${abi}/configure || die | ||
55 | fi | ||
56 | done | ||
57 | } | ||
58 | |||
59 | src_compile() | ||
60 | { | ||
61 | # we are using blkid from util linux now (--disable-fsck --disable-libblkid) | ||
62 | # which merges the old blkid from e2fsprogs and udevs libvolume | ||
63 | # see: http://lists.freedesktop.org/archives/hal-commit/2009-May/004936.html | ||
64 | local abi | ||
65 | for abi in ${MULTILIB_ABIS} | ||
66 | do | ||
67 | cd ${SRCDIR}-${abi}/build | ||
68 | abi-${abi} ../configure \ | ||
69 | --host=${CHOST} \ | ||
70 | --prefix=/usr \ | ||
71 | --infodir=/usr/share/info \ | ||
72 | --mandir=/usr/share/man \ | ||
73 | --with-root-prefix="" \ | ||
74 | --enable-elf-shlibs \ | ||
75 | --disable-fsck \ | ||
76 | --disable-libblkid \ | ||
77 | --disable-libuuid \ | ||
78 | --disable-uuidd \ | ||
79 | niro | 672 | --disable-nls \ |
80 | niro | 669 | || die |
81 | |||
82 | make || die | ||
83 | done | ||
84 | } | ||
85 | |||
86 | niro | 672 | mcore_generic_src_install() |
87 | niro | 669 | { |
88 | local abi | ||
89 | for abi in ${MULTILIB_ABIS} | ||
90 | do | ||
91 | cd ${SRCDIR}-${abi}/build | ||
92 | make DESTDIR=${BINDIR} install || die | ||
93 | make DESTDIR=${BINDIR} install-libs || die | ||
94 | done | ||
95 | |||
96 | # breaks our basesystem; we are using a symlink to /etc/rc.d/init.d | ||
97 | if [[ -d ${BINDIR}/etc/init.d ]] | ||
98 | then | ||
99 | rm -r ${BINDIR}/etc/init.d || die | ||
100 | fi | ||
101 | |||
102 | cd ${SRCDIR} | ||
103 | minstalldocs ABOUT-NLS ChangeLog COPYING README RELEASE-NOTES || die | ||
104 | } |