commit:     9b82e5bcec8015fb7c43f6fa80fa533b9ce524e7
Author:     Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Sun Apr  3 07:48:42 2016 +0000
Commit:     Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Sun Apr  3 07:48:42 2016 +0000
URL:        https://gitweb.gentoo.org/proj/recruiters.git/commit/?id=9b82e5bc

External tool usage in test ebuild

Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>

 foo.ebuild | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/foo.ebuild b/foo.ebuild
index 7af7f48..94126d8 100644
--- a/foo.ebuild
+++ b/foo.ebuild
@@ -5,7 +5,7 @@ EAPI=4
 DESCRIPTION="foobar is a nice application for managing your passwords using 
your
 gpg key. It supports offline and online modes."
 HOMEPAGE="http://tinyurl.zh/thisisthefoobarapp";
-SRC_URI="ftp://www.foobar.com/foobar-1.0.tar.gz";
+SRC_URI="ftp://www.foobar.com/foobar-1.0.zip";
 
 LICENSE="GPL1"
 SLOT="2"
@@ -13,6 +13,8 @@ KEYWORDS="~x86 ~amd64 mips ~hppa"
 IUSE="amd64? ( !x86? ( app-emulation/emul-linux-x86-gtklib ) )"
 
 DEPEND="sys-devel/patch"
+type -p unzip > /dev/null || \
+DEPEND+=" app-arch/unzip"
 
 src_unpack() {
        patch -p1 < "${FILESDIR}"/foobar-1.0-Makefile.patch

Reply via email to