summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2016-05-02 16:12:58 +0200
committerLars Wendler <polynomial-c@gentoo.org>2016-05-02 16:12:58 +0200
commit060647cd95b37f5545ed8082c94352f91352fcf9 (patch)
treebd3740c59d1662f46a908883466e5e8aafca7a76
parentdev-util/bdelta: drop live ebuild (diff)
downloadgentoo-060647cd.tar.gz
gentoo-060647cd.tar.bz2
gentoo-060647cd.zip
sys-apps/file: USE="python" requires dev-python/setuptools (bug #581610)
Package-Manager: portage-2.2.28 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
-rw-r--r--sys-apps/file/file-5.26-r1.ebuild25
1 files changed, 15 insertions, 10 deletions
diff --git a/sys-apps/file/file-5.26-r1.ebuild b/sys-apps/file/file-5.26-r1.ebuild
index ff3216a00194..fb300b33091e 100644
--- a/sys-apps/file/file-5.26-r1.ebuild
+++ b/sys-apps/file/file-5.26-r1.ebuild
@@ -24,21 +24,26 @@ LICENSE="BSD-2"
SLOT="0"
IUSE="python static-libs zlib"
-DEPEND="python? ( ${PYTHON_DEPS} )
+DEPEND="python? ( ${PYTHON_DEPS}
+ dev-python/setuptools )
zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )"
RDEPEND="${DEPEND}
python? ( !dev-python/python-magic )"
+PATCHES=(
+ "${FILESDIR}"/${P}-header-define.patch
+ "${FILESDIR}"/${P}-nes-magic.patch
+ "${FILESDIR}"/${P}-php-magic.patch
+ "${FILESDIR}"/${P}-msoffice-magic.patch
+ "${FILESDIR}"/${P}-stdin-rpm.patch
+ "${FILESDIR}"/${P}-tests-fatal.patch
+ "${FILESDIR}"/${P}-stdin-test.patch
+ "${FILESDIR}"/${P}-compress-1.patch
+ "${FILESDIR}"/${P}-compress-2.patch
+)
+
src_prepare() {
- epatch "${FILESDIR}"/${P}-header-define.patch
- epatch "${FILESDIR}"/${P}-nes-magic.patch
- epatch "${FILESDIR}"/${P}-php-magic.patch
- epatch "${FILESDIR}"/${P}-msoffice-magic.patch
- epatch "${FILESDIR}"/${P}-stdin-rpm.patch
- epatch "${FILESDIR}"/${P}-tests-fatal.patch
- epatch "${FILESDIR}"/${P}-stdin-test.patch
- epatch "${FILESDIR}"/${P}-compress-1.patch
- epatch "${FILESDIR}"/${P}-compress-2.patch
+ epatch "${PATCHES[@]}"
[[ ${PV} == "9999" ]] && eautoreconf
elibtoolize