2014-02-23 02:38:13 +04:00
|
|
|
# Copyright 1999-2014 Gentoo Foundation
|
2012-02-11 14:13:18 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2015-08-11 00:17:55 +03:00
|
|
|
# $Id$
|
2012-02-11 14:13:18 +04:00
|
|
|
|
2014-02-23 02:38:13 +04:00
|
|
|
EAPI=5
|
2012-02-11 14:13:18 +04:00
|
|
|
|
|
|
|
inherit perl-app
|
|
|
|
|
2014-02-23 02:38:13 +04:00
|
|
|
COMMIT="e9ef93debd12d85e70676dd79b4bd78ac2b05271"
|
|
|
|
|
2012-02-11 14:13:18 +04:00
|
|
|
DESCRIPTION="make deployments so easy that you'll let new hires do them on their
|
|
|
|
first day"
|
|
|
|
HOMEPAGE="https://github.com/git-deploy/git-deploy"
|
2014-02-23 02:38:13 +04:00
|
|
|
SRC_URI="https://github.com/${PN}/${PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
|
2012-02-11 14:13:18 +04:00
|
|
|
|
|
|
|
LICENSE="|| ( Artistic GPL-1 GPL-2 GPL-3 )"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64 ~x86"
|
|
|
|
IUSE="test"
|
|
|
|
|
2014-02-23 02:38:13 +04:00
|
|
|
COMMON_DEPEND="dev-vcs/git
|
|
|
|
virtual/perl-File-Spec
|
|
|
|
virtual/perl-Getopt-Long
|
|
|
|
virtual/perl-Term-ANSIColor
|
|
|
|
virtual/perl-Time-HiRes
|
|
|
|
virtual/perl-Memoize
|
|
|
|
virtual/perl-Data-Dumper"
|
2012-02-11 14:13:18 +04:00
|
|
|
DEPEND="dev-lang/perl
|
|
|
|
test? (
|
2014-02-23 02:38:13 +04:00
|
|
|
${COMMON_DEPEND}
|
2012-02-11 14:13:18 +04:00
|
|
|
virtual/perl-File-Temp
|
|
|
|
)"
|
|
|
|
RDEPEND="dev-lang/perl
|
2014-02-23 02:38:13 +04:00
|
|
|
${COMMON_DEPEND}"
|
|
|
|
|
|
|
|
S="${WORKDIR}/${PN}-${COMMIT}"
|
2012-02-11 14:13:18 +04:00
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
pod2man -n git-deploy README.pod > git-deploy.1 || die
|
|
|
|
}
|
|
|
|
|
|
|
|
src_test() {
|
|
|
|
local testdir=${TMPDIR}/git-deploy-test
|
|
|
|
|
|
|
|
# Prepare for tests
|
|
|
|
cp -a "${S}/" $testdir || die
|
|
|
|
cd $testdir || die
|
|
|
|
|
|
|
|
git config --global user.name "git-deploy" || die
|
|
|
|
git config --global user.email "git-deploy@localhost" || die
|
|
|
|
|
|
|
|
git init . || die
|
|
|
|
git add . || die
|
|
|
|
git commit -a -m 'git-deploy testing' || die
|
|
|
|
|
|
|
|
USER="git-deploy" perl t/run.t || die
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
dobin git-deploy
|
|
|
|
|
|
|
|
insinto $VENDOR_LIB
|
|
|
|
doins -r lib/Git
|
|
|
|
|
|
|
|
doman git-deploy.1
|
2014-02-23 02:38:13 +04:00
|
|
|
|
|
|
|
newdoc Changes ChangeLog
|
2012-02-11 14:13:18 +04:00
|
|
|
}
|