/[gentoo-x86]/sys-fs/e2fsprogs/e2fsprogs-1.41.12-r1.ebuild
Gentoo

Diff of /sys-fs/e2fsprogs/e2fsprogs-1.41.12-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.2 Revision 1.3
1# Copyright 1999-2010 Gentoo Foundation 1# Copyright 1999-2010 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/sys-fs/e2fsprogs/Attic/e2fsprogs-1.41.12-r1.ebuild,v 1.2 2010/11/19 18:51:40 jlec Exp $ 3# $Header: /var/cvsroot/gentoo-x86/sys-fs/e2fsprogs/Attic/e2fsprogs-1.41.12-r1.ebuild,v 1.3 2010/12/04 22:29:24 vapier Exp $
4 4
5EAPI="3" 5EAPI="3"
6 6
7inherit eutils flag-o-matic multilib toolchain-funcs 7inherit eutils flag-o-matic multilib toolchain-funcs
8 8
13LICENSE="GPL-2 BSD" 13LICENSE="GPL-2 BSD"
14SLOT="0" 14SLOT="0"
15KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 -x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~m68k-mint" 15KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 -x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~m68k-mint"
16IUSE="nls elibc_FreeBSD" 16IUSE="nls elibc_FreeBSD"
17 17
18RDEPEND=" 18RDEPEND="~sys-libs/${PN}-libs-${PV}
19 >=sys-apps/util-linux-2.16 19 >=sys-apps/util-linux-2.16
20 ~sys-libs/${PN}-libs-${PV}
21 nls? ( virtual/libintl )" 20 nls? ( virtual/libintl )"
22DEPEND="${RDEPEND} 21DEPEND="${RDEPEND}
22 nls? ( sys-devel/gettext )
23 dev-util/pkgconfig 23 dev-util/pkgconfig
24 sys-apps/texinfo 24 sys-apps/texinfo"
25 nls? ( sys-devel/gettext )"
26 25
27pkg_setup() { 26pkg_setup() {
28 if [[ ! -e ${EROOT}/etc/mtab ]] ; then 27 if [[ ! -e ${EROOT}/etc/mtab ]] ; then
29 # add some crap to deal with missing /etc/mtab #217719 28 # add some crap to deal with missing /etc/mtab #217719
30 ewarn "No /etc/mtab file, creating one temporarily" 29 ewarn "No /etc/mtab file, creating one temporarily"
33} 32}
34 33
35src_prepare() { 34src_prepare() {
36 epatch "${FILESDIR}"/${PN}-1.38-tests-locale.patch #99766 35 epatch "${FILESDIR}"/${PN}-1.38-tests-locale.patch #99766
37 epatch "${FILESDIR}"/${PN}-1.41.8-makefile.patch 36 epatch "${FILESDIR}"/${PN}-1.41.8-makefile.patch
37 epatch "${FILESDIR}"/${PN}-1.41.12-getpagesize.patch
38 epatch "${FILESDIR}"/${PN}-1.40-fbsd.patch 38 epatch "${FILESDIR}"/${PN}-1.40-fbsd.patch
39 # use symlinks rather than hardlinks 39 # use symlinks rather than hardlinks
40 sed -i \ 40 sed -i \
41 -e 's:$(LN) -f $(DESTDIR).*/:$(LN_S) -f :' \ 41 -e 's:$(LN) -f $(DESTDIR).*/:$(LN_S) -f :' \
42 {e2fsck,misc}/Makefile.in || die 42 {e2fsck,misc}/Makefile.in || die
45 if [[ ${CHOST} == *-mint* ]] ; then 45 if [[ ${CHOST} == *-mint* ]] ; then
46 epatch "${FILESDIR}"/${PN}-1.41-mint.patch 46 epatch "${FILESDIR}"/${PN}-1.41-mint.patch
47 epatch "${FILESDIR}"/${PN}-1.41.7-mint-blkid.patch 47 epatch "${FILESDIR}"/${PN}-1.41.7-mint-blkid.patch
48 fi 48 fi
49 # blargh ... trick e2fsprogs into using e2fsprogs-libs 49 # blargh ... trick e2fsprogs into using e2fsprogs-libs
50 rm -rf doc || die 50 rm -rf doc
51 sed -i -r \ 51 sed -i -r \
52 -e 's:@LIBINTL@:@LTLIBINTL@:' \ 52 -e 's:@LIBINTL@:@LTLIBINTL@:' \
53 -e '/^LIB(COM_ERR|SS)/s:[$][(]LIB[)]/lib([^@]*)@LIB_EXT@:-l\1:' \ 53 -e '/^LIB(COM_ERR|SS)/s:[$][(]LIB[)]/lib([^@]*)@LIB_EXT@:-l\1:' \
54 -e '/^DEPLIB(COM_ERR|SS)/s:=.*:=:' \ 54 -e '/^DEPLIB(COM_ERR|SS)/s:=.*:=:' \
55 MCONFIG.in || die "muck libs" #122368 55 MCONFIG.in || die "muck libs" #122368
127 emake \ 127 emake \
128 STRIP=: \ 128 STRIP=: \
129 root_libdir="${EPREFIX}/usr/$(get_libdir)" \ 129 root_libdir="${EPREFIX}/usr/$(get_libdir)" \
130 DESTDIR="${D}" \ 130 DESTDIR="${D}" \
131 install install-libs || die 131 install install-libs || die
132 dodoc README RELEASE-NOTES || die 132 dodoc README RELEASE-NOTES
133 133
134 insinto /etc 134 insinto /etc
135 doins "${FILESDIR}"/e2fsck.conf || die 135 doins "${FILESDIR}"/e2fsck.conf || die
136 136
137 # Move shared libraries to /lib/, install static libraries to 137 # Move shared libraries to /lib/, install static libraries to
138 # /usr/lib/,
139 # and install linker scripts to /usr/lib/. 138 # /usr/lib/, and install linker scripts to /usr/lib/.
140 set -- "${ED}"/usr/$(get_libdir)/*.a 139 set -- "${ED}"/usr/$(get_libdir)/*.a
141 set -- ${@/*\/lib} 140 set -- ${@/*\/lib}
142 gen_usr_ldscript -a "${@/.a}" 141 gen_usr_ldscript -a "${@/.a}"
143
144 # For correct install_names (on Darwin) we can't do this with
145 # root_libdir=/lib and the code below, instead we need root_libdir=/usr/lib
146 # and gen_usr_ldscript that fixes install_names as the libs are moved
147 ## make sure symlinks are relative, not absolute, for cross-compiling
148 #cd "${ED}"/usr/$(get_libdir)
149 #local x l
150 #for x in lib* ; do
151 # l=$(readlink "${x}")
152 # [[ ${l} == /* ]] || continue
153 # rm -f "${x}"
154 # ln -s "../..${l}" "${x}"
155 #done
156 142
157 if use elibc_FreeBSD ; then 143 if use elibc_FreeBSD ; then
158 # Install helpers for us 144 # Install helpers for us
159 into / 145 into /
160 dosbin "${S}"/fsck_ext2fs || die 146 dosbin "${S}"/fsck_ext2fs || die

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.20