2022-03-01 11:46:08 +01:00
|
|
|
# Copyright 1999-2021 Gentoo Authors
|
2012-11-26 09:04:11 +01:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2022-03-01 11:46:08 +01:00
|
|
|
EAPI=7
|
2012-11-26 09:04:11 +01:00
|
|
|
|
2022-03-01 11:46:08 +01:00
|
|
|
inherit flag-o-matic libtool
|
2012-11-26 09:04:11 +01:00
|
|
|
|
|
|
|
MY_P=${PN}-${PV/_/-}
|
|
|
|
|
|
|
|
DESCRIPTION="Library for accessing and manipulating reiserfs partitions"
|
|
|
|
HOMEPAGE="http://reiserfs.linux.kiev.ua/"
|
2022-03-01 11:46:08 +01:00
|
|
|
SRC_URI="http://reiserfs.linux.kiev.ua/snapshots/${MY_P}.tar.gz
|
|
|
|
https://ftp.mizar.org/pub/Linux/reiserfs/libreiserfs/${MY_P}.tar.gz"
|
|
|
|
S="${WORKDIR}"/${MY_P}
|
2012-11-26 09:04:11 +01:00
|
|
|
|
|
|
|
LICENSE="GPL-2"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~mips ppc ~ppc64 ~sparc x86"
|
|
|
|
IUSE="debug examples nls static-libs"
|
|
|
|
|
2022-03-01 11:46:08 +01:00
|
|
|
DEPEND="
|
2012-11-26 09:04:11 +01:00
|
|
|
sys-apps/util-linux
|
2022-03-01 11:46:08 +01:00
|
|
|
nls? (
|
|
|
|
sys-devel/gettext
|
|
|
|
virtual/libintl
|
|
|
|
)
|
|
|
|
"
|
2012-11-26 09:04:11 +01:00
|
|
|
|
2022-03-01 11:46:08 +01:00
|
|
|
PATCHES=(
|
|
|
|
"${FILESDIR}"/${P}-lib.patch
|
|
|
|
"${FILESDIR}"/${P}-autotools.patch
|
|
|
|
)
|
2012-11-26 09:04:11 +01:00
|
|
|
|
|
|
|
src_prepare() {
|
2022-03-01 11:46:08 +01:00
|
|
|
default
|
2012-11-26 09:04:11 +01:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2022-03-01 11:46:08 +01:00
|
|
|
find "${ED}" -name '*.la' -delete || die
|
|
|
|
|
2012-11-26 09:04:11 +01:00
|
|
|
rm -r "${ED}"/usr/{sbin,share/man} || die
|
|
|
|
}
|
|
|
|
|
|
|
|
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."
|
|
|
|
}
|