2013-10-31 09:29:27 +01:00
|
|
|
# Copyright 1999-2013 Gentoo Foundation
|
2011-12-03 21:16:15 +01:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2012-11-28 21:24:35 +01:00
|
|
|
# $Header: /var/cvsroot/gentoo-x86/sys-fs/reiser4progs/reiser4progs-1.0.7.ebuild,v 1.8 2012/05/24 02:54:11 vapier Exp $
|
2011-12-03 21:16:15 +01:00
|
|
|
|
2012-11-28 21:24:35 +01:00
|
|
|
inherit multilib eutils toolchain-funcs
|
2011-12-03 21:16:15 +01:00
|
|
|
|
|
|
|
MY_P=${PN}-${PV/_p/-}
|
|
|
|
DESCRIPTION="reiser4progs: mkfs, fsck, etc..."
|
|
|
|
HOMEPAGE="http://www.kernel.org/pub/linux/utils/fs/reiser4/reiser4progs/"
|
2013-10-31 09:29:27 +01:00
|
|
|
SRC_URI="http://sourceforge.net/projects/reiser4/files/reiser4-utils/reiser4progs/${MY_P}.tar.gz"
|
2011-12-03 21:16:15 +01:00
|
|
|
|
|
|
|
LICENSE="GPL-2"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="amd64 arm ppc ppc64 -sparc x86"
|
|
|
|
IUSE="static debug readline"
|
|
|
|
|
|
|
|
DEPEND="~sys-libs/libaal-1.0.5
|
|
|
|
readline? ( sys-libs/readline )"
|
|
|
|
|
|
|
|
S=${WORKDIR}/${MY_P}
|
|
|
|
|
|
|
|
src_unpack() {
|
|
|
|
unpack ${A}
|
|
|
|
cd "${S}"
|
2013-10-31 09:29:27 +01:00
|
|
|
#epatch "${FILESDIR}"/${P}-gcc-4.4.patch #269240
|
2012-11-28 21:24:35 +01:00
|
|
|
epatch "${FILESDIR}"/reiser4progs_1.0.7-6.diff
|
2011-12-03 21:16:15 +01:00
|
|
|
printf '#!/bin/sh\ntrue\n' > run-ldconfig
|
|
|
|
}
|
|
|
|
|
|
|
|
src_compile() {
|
|
|
|
econf \
|
|
|
|
$(use_enable static full-static) \
|
|
|
|
$(use_enable static mkfs-static) \
|
|
|
|
$(use_enable static fsck-static) \
|
|
|
|
$(use_enable static debugfs-static) \
|
|
|
|
$(use_enable static measurefs-static) \
|
|
|
|
$(use_enable static cpfs-static) \
|
|
|
|
$(use_enable static resizefs-static) \
|
|
|
|
$(use_enable debug) \
|
|
|
|
$(use_with readline) \
|
|
|
|
--enable-libminimal \
|
|
|
|
--sbindir=/sbin \
|
|
|
|
|| die "configure failed"
|
|
|
|
emake || die "make failed"
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
emake DESTDIR="${D}" install || die
|
|
|
|
dodoc AUTHORS BUGS CREDITS ChangeLog NEWS README THANKS TODO
|
|
|
|
|
|
|
|
# move shared libs to /
|
|
|
|
dodir /$(get_libdir)
|
|
|
|
mv "${D}"/usr/$(get_libdir)/lib*.so* "${D}"/$(get_libdir)/ || die
|
|
|
|
gen_usr_ldscript libreiser4-minimal.so libreiser4.so librepair.so
|
|
|
|
}
|