diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-12-21 07:53:35 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-12-21 07:53:35 +0000 |
commit | e393c0503a79342594a61547dc43f80f8bcc086e (patch) | |
tree | 3254e8166c98b932add34913169c98f7b7f9fa5f /sys-fs/xfsdump/xfsdump-3.1.12.ebuild | |
parent | b46782805d0eed36ce9685f7e9abf25671f24d7d (diff) |
gentoo auto-resync : 21:12:2022 - 07:53:34
Diffstat (limited to 'sys-fs/xfsdump/xfsdump-3.1.12.ebuild')
-rw-r--r-- | sys-fs/xfsdump/xfsdump-3.1.12.ebuild | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/sys-fs/xfsdump/xfsdump-3.1.12.ebuild b/sys-fs/xfsdump/xfsdump-3.1.12.ebuild new file mode 100644 index 000000000000..c12ca856d9c4 --- /dev/null +++ b/sys-fs/xfsdump/xfsdump-3.1.12.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="XFS dump/restore utilities" +HOMEPAGE="https://xfs.wiki.kernel.org/ https://git.kernel.org/pub/scm/fs/xfs/xfsdump-dev.git/" +SRC_URI="https://www.kernel.org/pub/linux/utils/fs/xfs/${PN}/${P}.tar.xz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 -sparc ~x86" +IUSE="ncurses nls" + +RDEPEND=" + >=sys-apps/attr-2.4.19 + sys-apps/util-linux + sys-fs/e2fsprogs + >=sys-fs/xfsprogs-3.2.0 + ncurses? ( sys-libs/ncurses:= ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + ncurses? ( virtual/pkgconfig ) + nls? ( sys-devel/gettext ) +" + +PATCHES=( + # bug #335115 + "${FILESDIR}"/${PN}-3.1.9-prompt-overflow.patch + # bug #311881 + "${FILESDIR}"/${PN}-3.1.9-no-symlink.patch + # bug #561664 + "${FILESDIR}"/${PN}-3.1.6-linguas.patch + + "${FILESDIR}"/${PN}-3.1.9-fix-docs.patch + "${FILESDIR}"/${PN}-3.1.9-skip-inventory-debian-subfolder.patch +) + +src_prepare() { + sed -i \ + -e "/^PKG_DOC_DIR/s:@pkg_name@:${PF}:" \ + include/builddefs.in \ + || die + + # bug #605852 + sed -i \ + -e "s:enable_curses=[a-z]*:enable_curses=$(usex ncurses):" \ + -e "s:libcurses=\"[^\"]*\":libcurses='$(use ncurses && $(tc-getPKG_CONFIG) --libs ncurses)':" \ + configure || die + + default +} + +src_configure() { + # bug #184564 + unset PLATFORM + + export OPTIMIZER="${CFLAGS}" + export DEBUG=-DNDEBUG + + local myeconfargs=( + $(use_enable nls gettext) + --libdir="${EPREFIX}/$(get_libdir)" + --libexecdir="${EPREFIX}/usr/$(get_libdir)" + --sbindir="${EPREFIX}/sbin" + ) + + econf "${myeconfargs[@]}" +} + +src_compile() { + # Enable verbose build + emake V=1 +} |