linamh/sys-fs/progsreiserfs/progsreiserfs-0.3.0.5.ebuild
Mario Fetka 00fbf96e3a ad drbl patch
Package-Manager: portage-2.2.0_alpha142
RepoMan-Options: --force
2012-11-28 21:23:58 +01:00

62 lines
1.5 KiB
Bash

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-fs/progsreiserfs/progsreiserfs-0.3.1_rc8.ebuild,v 1.10 2012/11/19 10:02:54 ssuominen Exp $
EAPI=5
inherit eutils flag-o-matic libtool
MY_P=${PN}-${PV/_/-}
DESCRIPTION="Library for accessing and manipulating reiserfs partitions"
HOMEPAGE="http://reiserfs.linux.kiev.ua/"
SRC_URI="ftp://ftp.archlinux.org/other/progsreiserfs/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~mips ppc ~ppc64 ~sparc x86"
IUSE="debug examples nls static-libs"
RDEPEND=""
DEPEND="${RDEPEND}
sys-apps/util-linux
nls? ( sys-devel/gettext )"
S=${WORKDIR}/${MY_P}
src_prepare() {
epatch "${FILESDIR}"/progsreiserfs_0.3.0.5-1.diff
epatch "${FILESDIR}"/progsreiserfs-0.3.0.5-autotools.patch
elibtoolize
}
src_configure() {
filter-lfs-flags
econf \
$(use_enable static-libs static) \
--disable-Werror \
$(use_enable nls) \
$(use_enable debug)
}
src_install() {
default
if use examples; then
docinto examples
dodoc demos/*.c
fi
rm -r "${ED}"/usr/{sbin,share/man} || die
prune_libtool_files
}
pkg_postinst() {
ewarn "progsreiserfs has been proven dangerous in the past, generating bad"
ewarn "partitions and destroying data on resize/cpfs operations."
ewarn "Because of this, we do NOT provide their binaries, but only their"
ewarn "libraries instead, as these are needed for other applications."
}