linamh/sys-fs/reiser4progs/reiser4progs-1.0.9.ebuild
Mario Fetka a34cadcb13 Bump
Package-Manager: portage-2.2.8-r1
RepoMan-Options: --force
2014-07-14 16:11:24 +02:00

51 lines
1.4 KiB
Bash

# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-fs/reiser4progs/reiser4progs-1.0.8.ebuild,v 1.1 2014/03/13 22:38:34 vapier Exp $
EAPI="4"
inherit multilib eutils toolchain-funcs
DESCRIPTION="reiser4progs: mkfs, fsck, etc..."
HOMEPAGE="https://sourceforge.net/projects/reiser4/"
SRC_URI="mirror://sourceforge/reiser4/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 -sparc ~x86"
IUSE="debug readline static static-libs"
LIB_DEPEND="~sys-libs/libaal-1.0.6[static-libs(+)]
readline? ( sys-libs/readline[static-libs(+)] )"
RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )
static-libs? ( ~sys-libs/libaal-1.0.6[static-libs(+)] )"
DEPEND="${RDEPEND}
static? ( ${LIB_DEPEND} )"
src_prepare() {
printf '#!/bin/sh\ntrue\n' > run-ldconfig
# Delete hardcoded link/compile flags.
sed -i -r \
-e '/CFLAGS=/s: -static":":' \
-e '/CFLAGS/s: (-O[123s]|-g)\>::g' \
configure || die
epatch "${FILESDIR}"/${PN}-1.0.7-readline-6.3.patch #504472
epatch "${FILESDIR}"/reiser4progs_1.0.7-6.diff
}
src_configure() {
econf \
$(use_enable static full-static) \
$(use_enable static-libs static) \
$(use_enable debug) \
$(use_with readline) \
--disable-Werror \
--enable-libminimal \
--sbindir=/sbin
}
src_install() {
default
gen_usr_ldscript -a reiser4{,-minimal} repair
}