mirror of
https://github.com/flatcar/scripts.git
synced 2025-12-07 10:22:12 +01:00
sys-fs/btrfs-progs: Move to overlay
We will need to patch the configure script to override the udev rules directory.
This commit is contained in:
parent
58e3b78944
commit
d35d4b7534
@ -1,10 +0,0 @@
|
||||
DIST btrfs-progs-v3.16.2.tar.xz 291604 BLAKE2B 66c19a47062386888209b2bb569cc5db8629446554387af971f5ba13ee49b654b2706fd6ed391115075533e6aa5637c7ebfe87b9abc2fa941739baee9fffe1aa SHA512 7dc0f2f8f0bbddbbf1d4d99854425341c4b3997334c65d7e936bcec1ee5ca880101b8b45498721502857b478edae6237a934c7d4acb735de43c6d8ff35efe53b
|
||||
DIST btrfs-progs-v3.18.2.tar.xz 1029228 BLAKE2B be8b3e0151c939135bcac11cdd118b7cafdfefa9d06de4629a0727db781b42dfdfa447265d1b4dafce8711a65ac838b19c38a2a93c0439d92d5b8fb4b4d974f5 SHA512 7fd125eeedabd54178f5198ac09c364b6772125124adcdb2620515a51c331307205ae06ff81375a49ebc62650d537c6f9eed2b63bf1f7e97b9ff047cda8a2cc4
|
||||
DIST btrfs-progs-v4.1.2.tar.xz 1123080 BLAKE2B 4b6395080c1456321d6923609544da066bd86806588e5860bc2750162a257a94a64cd4e3fb1362065eaa38a73fdee92f053cd2a26c367fe179aa13f068e8b1d2 SHA512 dd159bcc3adb65efd4f612d75f5a6b30df8ad9fa06ef952dd03dac965256de37eab26f4cc2fb3840178403ccbb7368cae11638e27eadb9b1835b636c4b126e2e
|
||||
DIST btrfs-progs-v4.10.2.tar.xz 1508304 BLAKE2B d2540b27f4405d43ea60e0f6d31fae1794641d81db066ffab57a8f8cc9f6671c3bc01df5efc6309967e88af418e62eed61b7837863bc222bf371ce24b7d63cea SHA512 1a21ca29d03c8d0e697ce075b841e38b021771a67da20087c80ab84bb87c5f56ea80695f9b2a25a2a159fba8b01d74a364435f5462545ec00ebd6f335d3fcd6f
|
||||
DIST btrfs-progs-v4.14.1.tar.xz 1926492 BLAKE2B 35575946c1de9cb81f1aed2a5be2433149b6aae5e8602cef4c892f7e5fa1160e4b8bbed354bf36c90d3a6a4d6856b57cb10e632a9fba47b1f0b312098a6393da SHA512 e01a52a84bc0de81e7173fda46c12fbd451b5117014008033e16c7bf48165065c6362d812a95ade17c01f62f66755b4c7ab11dd22804eb3bdfc56346a161e2a6
|
||||
DIST btrfs-progs-v4.19.1.tar.xz 2007160 BLAKE2B fda89842f5117e77a00794054b1a11a7233d33c2135492b4a382cfdbcbbe58624447178cbeba7c44fabd5a5848fb4d47665dffbd838ff1b88432e1d98deb0666 SHA512 834b0a16216437301637d44561fd265db167b7084de7d43d36802907645627d955421c1f5c46f0eb72d85f8b8d70905e5f6c0d539a34693704aa188085dfeec4
|
||||
DIST btrfs-progs-v4.19.tar.xz 2001340 BLAKE2B 117087adcb57e4ebf6a2e9c66bf0ad2b098108f7363fc3c015d73bf9afcda9d579831fe0e324125893cdb2510873d052522b15843c461e640a546900e535ce76 SHA512 e5abf637a9c811973422ca05a5530f6cd18263013d141277e2a70099cf8ab7e0eb8781df56368da4321c90f21d1022ad852b661adc4877e9a9ba5c60ccbefdee
|
||||
DIST btrfs-progs-v4.20-rc1.tar.xz 2027492 BLAKE2B a964d3fe9c3d729b7dd9e927c21b96862201f0453cd79c77502d134752f05134b4883c28b50dbda475bd987eb0f13fc63487aa83b9cb8221a12a42d26eb284cf SHA512 c014500d25555bff8b856bac56360bb1096ee6b8dc66fb213d0503d233a144aa4bc002171c3a0b053e230ab0a77aa46d9b8065c26ff8d46b29d9a018c20fb257
|
||||
DIST btrfs-progs-v4.4.1.tar.xz 1173248 BLAKE2B 8bf07a3bc3d24a3f641c2dc7a6353f186ebd98f7a633bdbc2689359e6204b3f1db76accee3e648634f319e26b57e6376c13fa31d39413908d0b2308e0ae28d0e SHA512 3086e2e0385d9e14edcfa25e1aee1ed98087dd5b91a66aa450786c932d79841b5c4ee3f9a40b8fdecee0ba1e386196b89679d28e58e4924ce66cd78c5e3c0d4a
|
||||
DIST btrfs-progs-v4.9.1.tar.xz 1476524 BLAKE2B 3fdd1c040fdf8083fcf5d4106db22112aaba59dd9a6ab8ad164302ec153a83151fbf88d84181dc849c296bb96ad883d4f7329bff111c67c19fdb814db5073fb2 SHA512 143f5c8863f3b9eff2e4ca2c750bb80ffe62f66d0c15d23e6f5bf75dab0133dcd3ff4d4c722360560de24b73e3da1222f265230d18de06d7bccd85ad2cb9a6a5
|
||||
@ -1,62 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils multilib toolchain-funcs
|
||||
|
||||
libbtrfs_soname=0
|
||||
|
||||
if [[ ${PV} != 9999 ]]; then
|
||||
MY_PV=v${PV}
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
|
||||
SRC_URI="https://www.kernel.org/pub/linux/kernel/people/kdave/${PN}/${PN}-${MY_PV}.tar.xz"
|
||||
S="${WORKDIR}"/${PN}-${MY_PV}
|
||||
else
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="git://git.kernel.org/pub/scm/linux/kernel/git/kdave/btrfs-progs.git
|
||||
https://git.kernel.org/pub/scm/linux/kernel/git/kdave/btrfs-progs.git"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Btrfs filesystem utilities"
|
||||
HOMEPAGE="https://btrfs.wiki.kernel.org"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0/${libbtrfs_soname}"
|
||||
IUSE=""
|
||||
|
||||
RESTRICT=test # tries to mount repared filesystems
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/lzo:2=
|
||||
sys-libs/zlib:0=
|
||||
sys-fs/e2fsprogs:0=
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
sys-apps/acl
|
||||
app-text/asciidoc
|
||||
app-text/docbook-xml-dtd:4.5
|
||||
app-text/xmlto
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
epatch_user
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake \
|
||||
AR="$(tc-getAR)" \
|
||||
CC="$(tc-getCC)" \
|
||||
CFLAGS="${CFLAGS}" \
|
||||
LDFLAGS="${LDFLAGS}" \
|
||||
BUILD_VERBOSE=1
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake install \
|
||||
DESTDIR="${D}" \
|
||||
prefix=/usr \
|
||||
bindir=/sbin \
|
||||
libdir=/usr/$(get_libdir) \
|
||||
mandir=/usr/share/man
|
||||
}
|
||||
@ -1,62 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils multilib toolchain-funcs
|
||||
|
||||
libbtrfs_soname=0
|
||||
|
||||
if [[ ${PV} != 9999 ]]; then
|
||||
MY_PV=v${PV}
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
|
||||
SRC_URI="https://www.kernel.org/pub/linux/kernel/people/kdave/${PN}/${PN}-${MY_PV}.tar.xz"
|
||||
S="${WORKDIR}"/${PN}-${MY_PV}
|
||||
else
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="git://git.kernel.org/pub/scm/linux/kernel/git/kdave/btrfs-progs.git
|
||||
https://git.kernel.org/pub/scm/linux/kernel/git/kdave/btrfs-progs.git"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Btrfs filesystem utilities"
|
||||
HOMEPAGE="https://btrfs.wiki.kernel.org"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0/${libbtrfs_soname}"
|
||||
IUSE=""
|
||||
|
||||
RESTRICT=test # tries to mount repared filesystems
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/lzo:2=
|
||||
sys-libs/zlib:0=
|
||||
sys-fs/e2fsprogs:0=
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
sys-apps/acl
|
||||
app-text/asciidoc
|
||||
app-text/docbook-xml-dtd:4.5
|
||||
app-text/xmlto
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
epatch_user
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake \
|
||||
AR="$(tc-getAR)" \
|
||||
CC="$(tc-getCC)" \
|
||||
CFLAGS="${CFLAGS}" \
|
||||
LDFLAGS="${LDFLAGS}" \
|
||||
BUILD_VERBOSE=1
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake install \
|
||||
DESTDIR="${D}" \
|
||||
prefix=/usr \
|
||||
bindir=/sbin \
|
||||
libdir=/usr/$(get_libdir) \
|
||||
mandir=/usr/share/man
|
||||
}
|
||||
@ -1,80 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit bash-completion-r1 eutils multilib toolchain-funcs
|
||||
|
||||
libbtrfs_soname=0
|
||||
|
||||
if [[ ${PV} != 9999 ]]; then
|
||||
MY_PV=v${PV}
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
|
||||
SRC_URI="https://www.kernel.org/pub/linux/kernel/people/kdave/${PN}/${PN}-${MY_PV}.tar.xz"
|
||||
S="${WORKDIR}"/${PN}-${MY_PV}
|
||||
else
|
||||
WANT_LIBTOOL=none
|
||||
inherit autotools git-r3
|
||||
EGIT_REPO_URI="git://git.kernel.org/pub/scm/linux/kernel/git/kdave/btrfs-progs.git
|
||||
https://git.kernel.org/pub/scm/linux/kernel/git/kdave/btrfs-progs.git"
|
||||
EGIT_BRANCH="devel"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Btrfs filesystem utilities"
|
||||
HOMEPAGE="https://btrfs.wiki.kernel.org"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0/${libbtrfs_soname}"
|
||||
IUSE="+convert"
|
||||
|
||||
RESTRICT=test # tries to mount repared filesystems
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/lzo:2=
|
||||
sys-libs/zlib:0=
|
||||
convert? (
|
||||
sys-fs/e2fsprogs:0=
|
||||
sys-libs/e2fsprogs-libs:0=
|
||||
)
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
convert? ( sys-apps/acl )
|
||||
>=app-text/asciidoc-8.6.0
|
||||
app-text/docbook-xml-dtd:4.5
|
||||
app-text/xmlto
|
||||
"
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
DEPEND+=" sys-devel/gnuconfig"
|
||||
fi
|
||||
|
||||
src_prepare() {
|
||||
epatch_user
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
eautoreconf
|
||||
mkdir config || die
|
||||
local automakedir="$(autotools_run_tool --at-output automake --print-libdir)"
|
||||
[[ -e ${automakedir} ]] || die "Could not locate automake directory"
|
||||
ln -s "${automakedir}"/install-sh config/install-sh || die
|
||||
ln -s "${EPREFIX}"/usr/share/gnuconfig/config.guess config/config.guess || die
|
||||
ln -s "${EPREFIX}"/usr/share/gnuconfig/config.sub config/config.sub || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
--bindir="${EPREFIX}"/sbin
|
||||
$(use_enable convert)
|
||||
$(use_enable elibc_glibc backtrace)
|
||||
)
|
||||
econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake V=1
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
newbashcomp btrfs-completion btrfs
|
||||
}
|
||||
@ -1,93 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit bash-completion-r1
|
||||
|
||||
libbtrfs_soname=0
|
||||
|
||||
if [[ ${PV} != 9999 ]]; then
|
||||
MY_PV=v${PV}
|
||||
KEYWORDS="alpha amd64 arm ~arm64 ~ia64 ~mips ppc ppc64 ~sparc x86"
|
||||
SRC_URI="https://www.kernel.org/pub/linux/kernel/people/kdave/${PN}/${PN}-${MY_PV}.tar.xz"
|
||||
S="${WORKDIR}"/${PN}-${MY_PV}
|
||||
else
|
||||
WANT_LIBTOOL=none
|
||||
inherit autotools git-r3
|
||||
EGIT_REPO_URI="git://repo.or.cz/btrfs-progs-unstable/devel.git"
|
||||
EGIT_BRANCH="devel"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Btrfs filesystem utilities"
|
||||
HOMEPAGE="https://btrfs.wiki.kernel.org"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0/${libbtrfs_soname}"
|
||||
IUSE="+convert static static-libs"
|
||||
|
||||
RESTRICT=test # tries to mount repared filesystems
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/lzo:2=
|
||||
sys-apps/util-linux:0=[static-libs(+)?]
|
||||
sys-libs/zlib:0=
|
||||
convert? (
|
||||
sys-fs/e2fsprogs:0=
|
||||
sys-libs/e2fsprogs-libs:0=
|
||||
)
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
convert? ( sys-apps/acl )
|
||||
>=app-text/asciidoc-8.6.0
|
||||
app-text/docbook-xml-dtd:4.5
|
||||
app-text/xmlto
|
||||
static? (
|
||||
dev-libs/lzo:2[static-libs(+)]
|
||||
sys-apps/util-linux:0[static-libs(+)]
|
||||
sys-libs/zlib:0[static-libs(+)]
|
||||
convert? (
|
||||
sys-fs/e2fsprogs:0[static-libs(+)]
|
||||
sys-libs/e2fsprogs-libs:0[static-libs(+)]
|
||||
)
|
||||
)
|
||||
"
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
DEPEND+=" sys-devel/gnuconfig"
|
||||
fi
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
eautoreconf
|
||||
mkdir config || die
|
||||
local automakedir="$(autotools_run_tool --at-output automake --print-libdir)"
|
||||
[[ -e ${automakedir} ]] || die "Could not locate automake directory"
|
||||
ln -s "${automakedir}"/install-sh config/install-sh || die
|
||||
ln -s "${EPREFIX}"/usr/share/gnuconfig/config.guess config/config.guess || die
|
||||
ln -s "${EPREFIX}"/usr/share/gnuconfig/config.sub config/config.sub || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
--bindir="${EPREFIX}"/sbin
|
||||
$(use_enable convert)
|
||||
$(use_enable elibc_glibc backtrace)
|
||||
)
|
||||
econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake V=1 all $(usev static)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local makeargs=(
|
||||
$(usex static-libs '' 'libs_static=')
|
||||
$(usex static install-static '')
|
||||
)
|
||||
emake V=1 DESTDIR="${D}" install "${makeargs[@]}"
|
||||
newbashcomp btrfs-completion btrfs
|
||||
}
|
||||
@ -1,103 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit bash-completion-r1
|
||||
|
||||
libbtrfs_soname=0
|
||||
|
||||
if [[ ${PV} != 9999 ]]; then
|
||||
MY_PV=v${PV}
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
|
||||
SRC_URI="https://www.kernel.org/pub/linux/kernel/people/kdave/${PN}/${PN}-${MY_PV}.tar.xz"
|
||||
S="${WORKDIR}"/${PN}-${MY_PV}
|
||||
else
|
||||
WANT_LIBTOOL=none
|
||||
inherit autotools git-r3
|
||||
EGIT_REPO_URI="https://github.com/kdave/btrfs-progs.git"
|
||||
EGIT_BRANCH="devel"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Btrfs filesystem utilities"
|
||||
HOMEPAGE="https://btrfs.wiki.kernel.org"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0/${libbtrfs_soname}"
|
||||
IUSE="+convert reiserfs static static-libs +zstd"
|
||||
|
||||
RESTRICT=test # tries to mount repared filesystems
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/lzo:2=
|
||||
sys-apps/util-linux:0=[static-libs(+)?]
|
||||
sys-libs/zlib:0=
|
||||
convert? (
|
||||
sys-fs/e2fsprogs:0=
|
||||
sys-libs/e2fsprogs-libs:0=
|
||||
reiserfs? (
|
||||
>=sys-fs/reiserfsprogs-3.6.27
|
||||
)
|
||||
)
|
||||
zstd? ( app-arch/zstd:0= )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
convert? ( sys-apps/acl )
|
||||
>=app-text/asciidoc-8.6.0
|
||||
app-text/docbook-xml-dtd:4.5
|
||||
app-text/xmlto
|
||||
static? (
|
||||
dev-libs/lzo:2[static-libs(+)]
|
||||
sys-apps/util-linux:0[static-libs(+)]
|
||||
sys-libs/zlib:0[static-libs(+)]
|
||||
convert? (
|
||||
sys-fs/e2fsprogs:0[static-libs(+)]
|
||||
sys-libs/e2fsprogs-libs:0[static-libs(+)]
|
||||
reiserfs? (
|
||||
>=sys-fs/reiserfsprogs-3.6.27[static-libs(+)]
|
||||
)
|
||||
)
|
||||
zstd? ( app-arch/zstd:0[static-libs(+)] )
|
||||
)
|
||||
"
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
DEPEND+=" sys-devel/gnuconfig"
|
||||
fi
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
AT_M4DIR=m4 eautoreconf
|
||||
mkdir config || die
|
||||
local automakedir="$(autotools_run_tool --at-output automake --print-libdir)"
|
||||
[[ -e ${automakedir} ]] || die "Could not locate automake directory"
|
||||
ln -s "${automakedir}"/install-sh config/install-sh || die
|
||||
ln -s "${EPREFIX}"/usr/share/gnuconfig/config.guess config/config.guess || die
|
||||
ln -s "${EPREFIX}"/usr/share/gnuconfig/config.sub config/config.sub || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
--bindir="${EPREFIX}"/sbin
|
||||
$(use_enable convert)
|
||||
$(use_enable elibc_glibc backtrace)
|
||||
$(use_enable zstd)
|
||||
--with-convert=ext2$(usex reiserfs ',reiserfs' '')
|
||||
)
|
||||
econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake V=1 all $(usev static)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local makeargs=(
|
||||
$(usex static-libs '' 'libs_static=')
|
||||
$(usex static install-static '')
|
||||
)
|
||||
emake V=1 DESTDIR="${D}" install "${makeargs[@]}"
|
||||
newbashcomp btrfs-completion btrfs
|
||||
}
|
||||
@ -1,117 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python3_{4,5,6,7} )
|
||||
|
||||
inherit bash-completion-r1 python-single-r1
|
||||
|
||||
libbtrfs_soname=0
|
||||
|
||||
if [[ ${PV} != 9999 ]]; then
|
||||
MY_PV="v${PV/_/-}"
|
||||
[[ "${PV}" = *_rc* ]] || \
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
|
||||
SRC_URI="https://www.kernel.org/pub/linux/kernel/people/kdave/${PN}/${PN}-${MY_PV}.tar.xz"
|
||||
S="${WORKDIR}"/${PN}-${MY_PV}
|
||||
else
|
||||
WANT_LIBTOOL=none
|
||||
inherit autotools git-r3
|
||||
EGIT_REPO_URI="https://github.com/kdave/btrfs-progs.git"
|
||||
EGIT_BRANCH="devel"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Btrfs filesystem utilities"
|
||||
HOMEPAGE="https://btrfs.wiki.kernel.org"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0/${libbtrfs_soname}"
|
||||
IUSE="+convert python reiserfs static static-libs +zstd"
|
||||
|
||||
RESTRICT=test # tries to mount repared filesystems
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/lzo:2=
|
||||
sys-apps/util-linux:0=[static-libs(+)?]
|
||||
sys-libs/zlib:0=
|
||||
convert? (
|
||||
sys-fs/e2fsprogs:0=
|
||||
sys-libs/e2fsprogs-libs:0=
|
||||
reiserfs? (
|
||||
>=sys-fs/reiserfsprogs-3.6.27
|
||||
)
|
||||
)
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
zstd? ( app-arch/zstd:0= )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
convert? ( sys-apps/acl )
|
||||
>=app-text/asciidoc-8.6.0
|
||||
app-text/docbook-xml-dtd:4.5
|
||||
app-text/xmlto
|
||||
python? ( dev-python/setuptools[${PYTHON_USEDEP}] )
|
||||
static? (
|
||||
dev-libs/lzo:2[static-libs(+)]
|
||||
sys-apps/util-linux:0[static-libs(+)]
|
||||
sys-libs/zlib:0[static-libs(+)]
|
||||
convert? (
|
||||
sys-fs/e2fsprogs:0[static-libs(+)]
|
||||
sys-libs/e2fsprogs-libs:0[static-libs(+)]
|
||||
reiserfs? (
|
||||
>=sys-fs/reiserfsprogs-3.6.27[static-libs(+)]
|
||||
)
|
||||
)
|
||||
zstd? ( app-arch/zstd:0[static-libs(+)] )
|
||||
)
|
||||
"
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
DEPEND+=" sys-devel/gnuconfig"
|
||||
fi
|
||||
|
||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
pkg_setup() {
|
||||
use python && python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
AT_M4DIR=m4 eautoreconf
|
||||
mkdir config || die
|
||||
local automakedir="$(autotools_run_tool --at-output automake --print-libdir)"
|
||||
[[ -e ${automakedir} ]] || die "Could not locate automake directory"
|
||||
ln -s "${automakedir}"/install-sh config/install-sh || die
|
||||
ln -s "${EPREFIX}"/usr/share/gnuconfig/config.guess config/config.guess || die
|
||||
ln -s "${EPREFIX}"/usr/share/gnuconfig/config.sub config/config.sub || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
--bindir="${EPREFIX}"/sbin
|
||||
$(use_enable convert)
|
||||
$(use_enable elibc_glibc backtrace)
|
||||
$(use_enable python)
|
||||
$(use_enable static-libs static)
|
||||
$(use_enable zstd)
|
||||
--with-convert=ext2$(usex reiserfs ',reiserfs' '')
|
||||
)
|
||||
econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake V=1 all $(usev static)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local makeargs=(
|
||||
$(usex python install_python '')
|
||||
$(usex static install-static '')
|
||||
)
|
||||
emake V=1 DESTDIR="${D}" install "${makeargs[@]}"
|
||||
newbashcomp btrfs-completion btrfs
|
||||
use python && python_optimize
|
||||
}
|
||||
@ -1,121 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python3_{4,5,6,7} )
|
||||
|
||||
inherit bash-completion-r1 python-single-r1
|
||||
|
||||
libbtrfs_soname=0
|
||||
|
||||
if [[ ${PV} != 9999 ]]; then
|
||||
MY_PV="v${PV/_/-}"
|
||||
[[ "${PV}" = *_rc* ]] || \
|
||||
KEYWORDS="alpha amd64 arm ~arm64 ~ia64 ~mips ppc ppc64 ~sparc x86"
|
||||
SRC_URI="https://www.kernel.org/pub/linux/kernel/people/kdave/${PN}/${PN}-${MY_PV}.tar.xz"
|
||||
S="${WORKDIR}"/${PN}-${MY_PV}
|
||||
else
|
||||
WANT_LIBTOOL=none
|
||||
inherit autotools git-r3
|
||||
EGIT_REPO_URI="https://github.com/kdave/btrfs-progs.git"
|
||||
EGIT_BRANCH="devel"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Btrfs filesystem utilities"
|
||||
HOMEPAGE="https://btrfs.wiki.kernel.org"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0/${libbtrfs_soname}"
|
||||
IUSE="+convert python reiserfs static static-libs +zstd"
|
||||
|
||||
RESTRICT=test # tries to mount repared filesystems
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/lzo:2=
|
||||
sys-apps/util-linux:0=[static-libs(+)?]
|
||||
sys-libs/zlib:0=
|
||||
convert? (
|
||||
sys-fs/e2fsprogs:0=
|
||||
sys-libs/e2fsprogs-libs:0=
|
||||
reiserfs? (
|
||||
>=sys-fs/reiserfsprogs-3.6.27
|
||||
)
|
||||
)
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
zstd? ( app-arch/zstd:0= )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
convert? ( sys-apps/acl )
|
||||
>=app-text/asciidoc-8.6.0
|
||||
app-text/docbook-xml-dtd:4.5
|
||||
app-text/xmlto
|
||||
python? ( dev-python/setuptools[${PYTHON_USEDEP}] )
|
||||
static? (
|
||||
dev-libs/lzo:2[static-libs(+)]
|
||||
sys-apps/util-linux:0[static-libs(+)]
|
||||
sys-libs/zlib:0[static-libs(+)]
|
||||
convert? (
|
||||
sys-fs/e2fsprogs:0[static-libs(+)]
|
||||
sys-libs/e2fsprogs-libs:0[static-libs(+)]
|
||||
reiserfs? (
|
||||
>=sys-fs/reiserfsprogs-3.6.27[static-libs(+)]
|
||||
)
|
||||
)
|
||||
zstd? ( app-arch/zstd:0[static-libs(+)] )
|
||||
)
|
||||
"
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
DEPEND+=" sys-devel/gnuconfig"
|
||||
fi
|
||||
|
||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-be-bswap.patch
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
use python && python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
AT_M4DIR=m4 eautoreconf
|
||||
mkdir config || die
|
||||
local automakedir="$(autotools_run_tool --at-output automake --print-libdir)"
|
||||
[[ -e ${automakedir} ]] || die "Could not locate automake directory"
|
||||
ln -s "${automakedir}"/install-sh config/install-sh || die
|
||||
ln -s "${EPREFIX}"/usr/share/gnuconfig/config.guess config/config.guess || die
|
||||
ln -s "${EPREFIX}"/usr/share/gnuconfig/config.sub config/config.sub || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
--bindir="${EPREFIX}"/sbin
|
||||
$(use_enable convert)
|
||||
$(use_enable elibc_glibc backtrace)
|
||||
$(use_enable python)
|
||||
$(use_enable static-libs static)
|
||||
$(use_enable zstd)
|
||||
--with-convert=ext2$(usex reiserfs ',reiserfs' '')
|
||||
)
|
||||
econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake V=1 all $(usev static)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local makeargs=(
|
||||
$(usex python install_python '')
|
||||
$(usex static install-static '')
|
||||
)
|
||||
emake V=1 DESTDIR="${D}" install "${makeargs[@]}"
|
||||
newbashcomp btrfs-completion btrfs
|
||||
use python && python_optimize
|
||||
}
|
||||
@ -1,117 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python3_{4,5,6,7} )
|
||||
|
||||
inherit bash-completion-r1 python-single-r1
|
||||
|
||||
libbtrfs_soname=0
|
||||
|
||||
if [[ ${PV} != 9999 ]]; then
|
||||
MY_PV="v${PV/_/-}"
|
||||
[[ "${PV}" = *_rc* ]] || \
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
|
||||
SRC_URI="https://www.kernel.org/pub/linux/kernel/people/kdave/${PN}/${PN}-${MY_PV}.tar.xz"
|
||||
S="${WORKDIR}"/${PN}-${MY_PV}
|
||||
else
|
||||
WANT_LIBTOOL=none
|
||||
inherit autotools git-r3
|
||||
EGIT_REPO_URI="https://github.com/kdave/btrfs-progs.git"
|
||||
EGIT_BRANCH="devel"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Btrfs filesystem utilities"
|
||||
HOMEPAGE="https://btrfs.wiki.kernel.org"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0/${libbtrfs_soname}"
|
||||
IUSE="+convert python reiserfs static static-libs +zstd"
|
||||
|
||||
RESTRICT=test # tries to mount repared filesystems
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/lzo:2=
|
||||
sys-apps/util-linux:0=[static-libs(+)?]
|
||||
sys-libs/zlib:0=
|
||||
convert? (
|
||||
sys-fs/e2fsprogs:0=
|
||||
sys-libs/e2fsprogs-libs:0=
|
||||
reiserfs? (
|
||||
>=sys-fs/reiserfsprogs-3.6.27
|
||||
)
|
||||
)
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
zstd? ( app-arch/zstd:0= )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
convert? ( sys-apps/acl )
|
||||
>=app-text/asciidoc-8.6.0
|
||||
app-text/docbook-xml-dtd:4.5
|
||||
app-text/xmlto
|
||||
python? ( dev-python/setuptools[${PYTHON_USEDEP}] )
|
||||
static? (
|
||||
dev-libs/lzo:2[static-libs(+)]
|
||||
sys-apps/util-linux:0[static-libs(+)]
|
||||
sys-libs/zlib:0[static-libs(+)]
|
||||
convert? (
|
||||
sys-fs/e2fsprogs:0[static-libs(+)]
|
||||
sys-libs/e2fsprogs-libs:0[static-libs(+)]
|
||||
reiserfs? (
|
||||
>=sys-fs/reiserfsprogs-3.6.27[static-libs(+)]
|
||||
)
|
||||
)
|
||||
zstd? ( app-arch/zstd:0[static-libs(+)] )
|
||||
)
|
||||
"
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
DEPEND+=" sys-devel/gnuconfig"
|
||||
fi
|
||||
|
||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
pkg_setup() {
|
||||
use python && python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
AT_M4DIR=m4 eautoreconf
|
||||
mkdir config || die
|
||||
local automakedir="$(autotools_run_tool --at-output automake --print-libdir)"
|
||||
[[ -e ${automakedir} ]] || die "Could not locate automake directory"
|
||||
ln -s "${automakedir}"/install-sh config/install-sh || die
|
||||
ln -s "${EPREFIX}"/usr/share/gnuconfig/config.guess config/config.guess || die
|
||||
ln -s "${EPREFIX}"/usr/share/gnuconfig/config.sub config/config.sub || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
--bindir="${EPREFIX}"/sbin
|
||||
$(use_enable convert)
|
||||
$(use_enable elibc_glibc backtrace)
|
||||
$(use_enable python)
|
||||
$(use_enable static-libs static)
|
||||
$(use_enable zstd)
|
||||
--with-convert=ext2$(usex reiserfs ',reiserfs' '')
|
||||
)
|
||||
econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake V=1 all $(usev static)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local makeargs=(
|
||||
$(usex python install_python '')
|
||||
$(usex static install-static '')
|
||||
)
|
||||
emake V=1 DESTDIR="${D}" install "${makeargs[@]}"
|
||||
newbashcomp btrfs-completion btrfs
|
||||
use python && python_optimize
|
||||
}
|
||||
@ -1,93 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit bash-completion-r1 eutils multilib toolchain-funcs
|
||||
|
||||
libbtrfs_soname=0
|
||||
|
||||
if [[ ${PV} != 9999 ]]; then
|
||||
MY_PV=v${PV}
|
||||
KEYWORDS="~alpha amd64 arm ~arm64 ~ia64 ~mips ppc ~ppc64 ~sparc x86"
|
||||
SRC_URI="https://www.kernel.org/pub/linux/kernel/people/kdave/${PN}/${PN}-${MY_PV}.tar.xz"
|
||||
S="${WORKDIR}"/${PN}-${MY_PV}
|
||||
else
|
||||
WANT_LIBTOOL=none
|
||||
inherit autotools git-r3
|
||||
EGIT_REPO_URI="git://repo.or.cz/btrfs-progs-unstable/devel.git"
|
||||
EGIT_BRANCH="devel"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Btrfs filesystem utilities"
|
||||
HOMEPAGE="https://btrfs.wiki.kernel.org"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0/${libbtrfs_soname}"
|
||||
IUSE="+convert static static-libs"
|
||||
|
||||
RESTRICT=test # tries to mount repared filesystems
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/lzo:2=
|
||||
sys-apps/util-linux:0=[static-libs(+)?]
|
||||
sys-libs/zlib:0=
|
||||
convert? (
|
||||
sys-fs/e2fsprogs:0=
|
||||
sys-libs/e2fsprogs-libs:0=
|
||||
)
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
convert? ( sys-apps/acl )
|
||||
>=app-text/asciidoc-8.6.0
|
||||
app-text/docbook-xml-dtd:4.5
|
||||
app-text/xmlto
|
||||
static? (
|
||||
dev-libs/lzo:2[static-libs(+)]
|
||||
sys-apps/util-linux:0[static-libs(+)]
|
||||
sys-libs/zlib:0[static-libs(+)]
|
||||
convert? (
|
||||
sys-fs/e2fsprogs:0[static-libs(+)]
|
||||
sys-libs/e2fsprogs-libs:0[static-libs(+)]
|
||||
)
|
||||
)
|
||||
"
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
DEPEND+=" sys-devel/gnuconfig"
|
||||
fi
|
||||
|
||||
src_prepare() {
|
||||
epatch_user
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
eautoreconf
|
||||
mkdir config || die
|
||||
local automakedir="$(autotools_run_tool --at-output automake --print-libdir)"
|
||||
[[ -e ${automakedir} ]] || die "Could not locate automake directory"
|
||||
ln -s "${automakedir}"/install-sh config/install-sh || die
|
||||
ln -s "${EPREFIX}"/usr/share/gnuconfig/config.guess config/config.guess || die
|
||||
ln -s "${EPREFIX}"/usr/share/gnuconfig/config.sub config/config.sub || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
--bindir="${EPREFIX}"/sbin
|
||||
$(use_enable convert)
|
||||
$(use_enable elibc_glibc backtrace)
|
||||
)
|
||||
econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake V=1 all $(usev static)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local makeargs=(
|
||||
$(usex static-libs '' 'libs_static=')
|
||||
$(usex static install-static '')
|
||||
)
|
||||
emake V=1 DESTDIR="${D}" install "${makeargs[@]}"
|
||||
newbashcomp btrfs-completion btrfs
|
||||
}
|
||||
@ -1,93 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit bash-completion-r1
|
||||
|
||||
libbtrfs_soname=0
|
||||
|
||||
if [[ ${PV} != 9999 ]]; then
|
||||
MY_PV=v${PV}
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
|
||||
SRC_URI="https://www.kernel.org/pub/linux/kernel/people/kdave/${PN}/${PN}-${MY_PV}.tar.xz"
|
||||
S="${WORKDIR}"/${PN}-${MY_PV}
|
||||
else
|
||||
WANT_LIBTOOL=none
|
||||
inherit autotools git-r3
|
||||
EGIT_REPO_URI="git://repo.or.cz/btrfs-progs-unstable/devel.git"
|
||||
EGIT_BRANCH="devel"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Btrfs filesystem utilities"
|
||||
HOMEPAGE="https://btrfs.wiki.kernel.org"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0/${libbtrfs_soname}"
|
||||
IUSE="+convert static static-libs"
|
||||
|
||||
RESTRICT=test # tries to mount repared filesystems
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/lzo:2=
|
||||
sys-apps/util-linux:0=[static-libs(+)?]
|
||||
sys-libs/zlib:0=
|
||||
convert? (
|
||||
sys-fs/e2fsprogs:0=
|
||||
sys-libs/e2fsprogs-libs:0=
|
||||
)
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
convert? ( sys-apps/acl )
|
||||
>=app-text/asciidoc-8.6.0
|
||||
app-text/docbook-xml-dtd:4.5
|
||||
app-text/xmlto
|
||||
static? (
|
||||
dev-libs/lzo:2[static-libs(+)]
|
||||
sys-apps/util-linux:0[static-libs(+)]
|
||||
sys-libs/zlib:0[static-libs(+)]
|
||||
convert? (
|
||||
sys-fs/e2fsprogs:0[static-libs(+)]
|
||||
sys-libs/e2fsprogs-libs:0[static-libs(+)]
|
||||
)
|
||||
)
|
||||
"
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
DEPEND+=" sys-devel/gnuconfig"
|
||||
fi
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
eautoreconf
|
||||
mkdir config || die
|
||||
local automakedir="$(autotools_run_tool --at-output automake --print-libdir)"
|
||||
[[ -e ${automakedir} ]] || die "Could not locate automake directory"
|
||||
ln -s "${automakedir}"/install-sh config/install-sh || die
|
||||
ln -s "${EPREFIX}"/usr/share/gnuconfig/config.guess config/config.guess || die
|
||||
ln -s "${EPREFIX}"/usr/share/gnuconfig/config.sub config/config.sub || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
--bindir="${EPREFIX}"/sbin
|
||||
$(use_enable convert)
|
||||
$(use_enable elibc_glibc backtrace)
|
||||
)
|
||||
econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake V=1 all $(usev static)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local makeargs=(
|
||||
$(usex static-libs '' 'libs_static=')
|
||||
$(usex static install-static '')
|
||||
)
|
||||
emake V=1 DESTDIR="${D}" install "${makeargs[@]}"
|
||||
newbashcomp btrfs-completion btrfs
|
||||
}
|
||||
@ -1,117 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python3_{4,5,6,7} )
|
||||
|
||||
inherit bash-completion-r1 python-single-r1
|
||||
|
||||
libbtrfs_soname=0
|
||||
|
||||
if [[ ${PV} != 9999 ]]; then
|
||||
MY_PV="v${PV/_/-}"
|
||||
[[ "${PV}" = *_rc* ]] || \
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
|
||||
SRC_URI="https://www.kernel.org/pub/linux/kernel/people/kdave/${PN}/${PN}-${MY_PV}.tar.xz"
|
||||
S="${WORKDIR}"/${PN}-${MY_PV}
|
||||
else
|
||||
WANT_LIBTOOL=none
|
||||
inherit autotools git-r3
|
||||
EGIT_REPO_URI="https://github.com/kdave/btrfs-progs.git"
|
||||
EGIT_BRANCH="devel"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Btrfs filesystem utilities"
|
||||
HOMEPAGE="https://btrfs.wiki.kernel.org"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0/${libbtrfs_soname}"
|
||||
IUSE="+convert python reiserfs static static-libs +zstd"
|
||||
|
||||
RESTRICT=test # tries to mount repared filesystems
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/lzo:2=
|
||||
sys-apps/util-linux:0=[static-libs(+)?]
|
||||
sys-libs/zlib:0=
|
||||
convert? (
|
||||
sys-fs/e2fsprogs:0=
|
||||
sys-libs/e2fsprogs-libs:0=
|
||||
reiserfs? (
|
||||
>=sys-fs/reiserfsprogs-3.6.27
|
||||
)
|
||||
)
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
zstd? ( app-arch/zstd:0= )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
convert? ( sys-apps/acl )
|
||||
>=app-text/asciidoc-8.6.0
|
||||
app-text/docbook-xml-dtd:4.5
|
||||
app-text/xmlto
|
||||
python? ( dev-python/setuptools[${PYTHON_USEDEP}] )
|
||||
static? (
|
||||
dev-libs/lzo:2[static-libs(+)]
|
||||
sys-apps/util-linux:0[static-libs(+)]
|
||||
sys-libs/zlib:0[static-libs(+)]
|
||||
convert? (
|
||||
sys-fs/e2fsprogs:0[static-libs(+)]
|
||||
sys-libs/e2fsprogs-libs:0[static-libs(+)]
|
||||
reiserfs? (
|
||||
>=sys-fs/reiserfsprogs-3.6.27[static-libs(+)]
|
||||
)
|
||||
)
|
||||
zstd? ( app-arch/zstd:0[static-libs(+)] )
|
||||
)
|
||||
"
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
DEPEND+=" sys-devel/gnuconfig"
|
||||
fi
|
||||
|
||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
pkg_setup() {
|
||||
use python && python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
AT_M4DIR=m4 eautoreconf
|
||||
mkdir config || die
|
||||
local automakedir="$(autotools_run_tool --at-output automake --print-libdir)"
|
||||
[[ -e ${automakedir} ]] || die "Could not locate automake directory"
|
||||
ln -s "${automakedir}"/install-sh config/install-sh || die
|
||||
ln -s "${EPREFIX}"/usr/share/gnuconfig/config.guess config/config.guess || die
|
||||
ln -s "${EPREFIX}"/usr/share/gnuconfig/config.sub config/config.sub || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
--bindir="${EPREFIX}"/sbin
|
||||
$(use_enable convert)
|
||||
$(use_enable elibc_glibc backtrace)
|
||||
$(use_enable python)
|
||||
$(use_enable static-libs static)
|
||||
$(use_enable zstd)
|
||||
--with-convert=ext2$(usex reiserfs ',reiserfs' '')
|
||||
)
|
||||
econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake V=1 all $(usev static)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local makeargs=(
|
||||
$(usex python install_python '')
|
||||
$(usex static install-static '')
|
||||
)
|
||||
emake V=1 DESTDIR="${D}" install "${makeargs[@]}"
|
||||
newbashcomp btrfs-completion btrfs
|
||||
use python && python_optimize
|
||||
}
|
||||
@ -1,24 +0,0 @@
|
||||
Fix build failure on big-endian platforms.
|
||||
|
||||
Reported-by: ernsteiswuerfel
|
||||
Bug: https://bugs.gentoo.org/670741
|
||||
--- a/kernel-lib/bitops.h
|
||||
+++ b/kernel-lib/bitops.h
|
||||
@@ -180,5 +180,5 @@ static inline unsigned long ext2_swab(const unsigned long y)
|
||||
#if BITS_PER_LONG == 64
|
||||
- return (unsigned long) bswap64((u64) y);
|
||||
+ return (unsigned long) bswap_64((u64) y);
|
||||
#elif BITS_PER_LONG == 32
|
||||
- return (unsigned long) bswap32((u32) y);
|
||||
+ return (unsigned long) bswap_32((u32) y);
|
||||
#else
|
||||
@@ -220,3 +220,3 @@ static inline unsigned long _find_next_bit_le(const unsigned long *addr1,
|
||||
|
||||
-unsigned long find_next_zero_bit_le(const void *addr, unsigned long size,
|
||||
+static inline unsigned long find_next_zero_bit_le(const void *addr, unsigned long size,
|
||||
unsigned long offset)
|
||||
@@ -227,3 +227,3 @@ unsigned long find_next_zero_bit_le(const void *addr, unsigned long size,
|
||||
|
||||
-unsigned long find_next_bit_le(const void *addr, unsigned long size,
|
||||
+static inline unsigned long find_next_bit_le(const void *addr, unsigned long size,
|
||||
unsigned long offset)
|
||||
@ -1,26 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>floppym@gentoo.org</email>
|
||||
<name>Mike Gilbert</name>
|
||||
</maintainer>
|
||||
<maintainer type="person">
|
||||
<email>slyfox@gentoo.org</email>
|
||||
<name>Sergei Trofimovich</name>
|
||||
</maintainer>
|
||||
<maintainer type="person">
|
||||
<email>polynomial-c@gentoo.org</email>
|
||||
<name>Lars Wendler</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>base-system@gentoo.org</email>
|
||||
<name>Gentoo Base System</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="convert">Build ext2 conversion utility (btrfs-convert)</flag>
|
||||
<flag name="reiserfs">Enable reiserfs support in btrfs-convert tool.</flag>
|
||||
<flag name="static">Build static binaries in addition to the dynamic ones</flag>
|
||||
<flag name="zstd">Enable zstd compression support.</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
Loading…
x
Reference in New Issue
Block a user