Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-fs/e2fsprogs: ChangeLog e2fsprogs-1.41.5.ebuild
Date: Fri, 29 May 2009 23:27:05
Message-Id: E1MABTa-0005nV-Hs@stork.gentoo.org
1 vapier 09/05/29 23:27:02
2
3 Modified: ChangeLog
4 Added: e2fsprogs-1.41.5.ebuild
5 Log:
6 Version bump #267402 by Paul Mulders.
7 (Portage version: 2.2_rc33/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.185 sys-fs/e2fsprogs/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/e2fsprogs/ChangeLog?rev=1.185&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/e2fsprogs/ChangeLog?rev=1.185&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/e2fsprogs/ChangeLog?r1=1.184&r2=1.185
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-fs/e2fsprogs/ChangeLog,v
19 retrieving revision 1.184
20 retrieving revision 1.185
21 diff -u -r1.184 -r1.185
22 --- ChangeLog 5 Apr 2009 03:15:53 -0000 1.184
23 +++ ChangeLog 29 May 2009 23:27:02 -0000 1.185
24 @@ -1,6 +1,12 @@
25 # ChangeLog for sys-fs/e2fsprogs
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/e2fsprogs/ChangeLog,v 1.184 2009/04/05 03:15:53 vapier Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/e2fsprogs/ChangeLog,v 1.185 2009/05/29 23:27:02 vapier Exp $
29 +
30 +*e2fsprogs-1.41.5 (29 May 2009)
31 +
32 + 29 May 2009; Mike Frysinger <vapier@g.o> +e2fsprogs-1.41.5.ebuild,
33 + +files/e2fsprogs-1.41.5-makefile.patch:
34 + Version bump #267402 by Paul Mulders.
35
36 05 Apr 2009; Mike Frysinger <vapier@g.o> e2fsprogs-1.41.4.ebuild:
37 Move LDCONFIG/STRIP disabling to src_install #264469 by Nick Fortino.
38
39
40
41 1.1 sys-fs/e2fsprogs/e2fsprogs-1.41.5.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/e2fsprogs/e2fsprogs-1.41.5.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/e2fsprogs/e2fsprogs-1.41.5.ebuild?rev=1.1&content-type=text/plain
45
46 Index: e2fsprogs-1.41.5.ebuild
47 ===================================================================
48 # Copyright 1999-2009 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/sys-fs/e2fsprogs/e2fsprogs-1.41.5.ebuild,v 1.1 2009/05/29 23:27:02 vapier Exp $
51
52 inherit eutils flag-o-matic toolchain-funcs multilib
53
54 DESCRIPTION="Standard EXT2 and EXT3 filesystem utilities"
55 HOMEPAGE="http://e2fsprogs.sourceforge.net/"
56 SRC_URI="mirror://sourceforge/e2fsprogs/${P}.tar.gz"
57
58 LICENSE="GPL-2 BSD"
59 SLOT="0"
60 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
61 IUSE="nls elibc_FreeBSD"
62
63 RDEPEND="~sys-libs/${PN}-libs-${PV}
64 nls? ( virtual/libintl )"
65 DEPEND="${RDEPEND}
66 nls? ( sys-devel/gettext )
67 sys-apps/texinfo"
68
69 pkg_setup() {
70 if [[ ! -e ${ROOT}/etc/mtab ]] ; then
71 # add some crap to deal with missing /etc/mtab #217719
72 ewarn "No /etc/mtab file, creating one temporarily"
73 echo "${PN} crap for src_test" > "${ROOT}"/etc/mtab
74 fi
75 }
76
77 src_unpack() {
78 unpack ${A}
79 cd "${S}"
80 epatch "${FILESDIR}"/${PN}-1.38-tests-locale.patch #99766
81 epatch "${FILESDIR}"/${PN}-1.41.5-makefile.patch
82 epatch "${FILESDIR}"/${PN}-1.40-fbsd.patch
83 # blargh ... trick e2fsprogs into using e2fsprogs-libs
84 rm -rf doc
85 sed -i -r \
86 -e 's:@LIBINTL@:@LTLIBINTL@:' \
87 -e '/^LIB(COM_ERR|SS|UUID)/s:[$][(]LIB[)]/lib([^@]*)@LIB_EXT@:-l\1:' \
88 -e '/^DEPLIB(COM_ERR|SS|UUID)/s:=.*:=:' \
89 MCONFIG.in || die "muck libs" #122368
90 sed -i -r \
91 -e '/^LIB_SUBDIRS/s:lib/(et|ss|uuid)::g' \
92 Makefile.in || die "remove subdirs"
93 # stupid configure script clobbers CC for us
94 sed -i '/if test -z "$CC" ; then CC=cc; fi/d' configure
95 touch lib/ss/ss_err.h
96 }
97
98 src_compile() {
99 # Keep the package from doing silly things
100 addwrite /var/cache/fonts
101
102 # We want to use the "bsd" libraries while building on Darwin, but while
103 # building on other Gentoo/*BSD we prefer elf-naming scheme.
104 local libtype
105 case ${CHOST} in
106 *-darwin*) libtype=bsd;;
107 *) libtype=elf;;
108 esac
109
110 ac_cv_path_LDCONFIG=: \
111 econf \
112 --bindir=/bin \
113 --sbindir=/sbin \
114 --enable-${libtype}-shlibs \
115 --with-ldopts="${LDFLAGS}" \
116 $(use_enable !elibc_uclibc tls) \
117 --without-included-gettext \
118 $(use_enable nls) \
119 $(use_enable userland_GNU fsck) \
120 --disable-libblkid \
121 || die
122 if [[ ${CHOST} != *-uclibc ]] && grep -qs 'USE_INCLUDED_LIBINTL.*yes' config.{log,status} ; then
123 eerror "INTL sanity check failed, aborting build."
124 eerror "Please post your ${S}/config.log file as an"
125 eerror "attachment to http://bugs.gentoo.org/show_bug.cgi?id=81096"
126 die "Preventing included intl cruft from building"
127 fi
128 emake COMPILE_ET=compile_et MK_CMDS=mk_cmds || die
129
130 # Build the FreeBSD helper
131 if use elibc_FreeBSD ; then
132 cp "${FILESDIR}"/fsck_ext2fs.c .
133 emake fsck_ext2fs || die
134 fi
135 }
136
137 pkg_preinst() {
138 if [[ -r ${ROOT}/etc/mtab ]] ; then
139 if [[ $(<"${ROOT}"/etc/mtab) == "${PN} crap for src_test" ]] ; then
140 rm -f "${ROOT}"/etc/mtab
141 fi
142 fi
143 }
144
145 src_install() {
146 emake STRIP=: DESTDIR="${D}" install install-libs || die
147 dodoc README RELEASE-NOTES
148
149 # Move shared libraries to /lib/, install static libraries to /usr/lib/,
150 # and install linker scripts to /usr/lib/.
151 set -- "${D}"/usr/$(get_libdir)/*.a
152 set -- ${@/*\/lib}
153 gen_usr_ldscript -a "${@/.a}"
154
155 # move 'useless' stuff to /usr/
156 dosbin "${D}"/sbin/mklost+found
157 rm -f "${D}"/sbin/mklost+found
158
159 if use elibc_FreeBSD ; then
160 # Install helpers for us
161 into /
162 dosbin "${S}"/fsck_ext2fs || die
163 doman "${FILESDIR}"/fsck_ext2fs.8
164
165 # these manpages are already provided by FreeBSD libc
166 # and filefrag is linux only
167 rm -f \
168 "${D}"/sbin/filefrag \
169 "${D}"/usr/share/man/man8/filefrag.8 \
170 "${D}"/bin/uuidgen \
171 "${D}"/usr/share/man/man3/{uuid,uuid_compare}.3 \
172 "${D}"/usr/share/man/man1/uuidgen.1 || die
173 fi
174 }