gentoo-upgrade added

This commit is contained in:
Kolan Sh 2012-05-19 14:17:49 +04:00
parent 76bb16dde0
commit 2c9fcfe3bc
2 changed files with 46 additions and 0 deletions

View File

@ -0,0 +1 @@
EBUILD gentoo-upgrade-9999.ebuild 825 RMD160 92209f5d2eecb5450a002f26b83b0ba288f8c221 SHA1 76408e285b45414a4dd2c43e3d7ff3f5755ddd9e SHA256 0f13eb577c6af3955eaf7054762ecbcd27e8f8281f874ff7604adf32b4d3f57c

View File

@ -0,0 +1,45 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=4
inherit eutils
if [[ ${PV} == "9999" ]] ; then
EGIT_REPO_URI=${EGIT_REPO_URI:-"git://github.com/backbone/gentoo-upgrade.git"}
inherit git-2
KEYWORDS=""
else
SRC_URI="ftp://backbone.ws/projects/gentoo-upgrade/${P}.tar.bz2"
KEYWORDS="-* ~x86 ~amd64"
fi
DESCRIPTION="Automated Gentoo upgrading"
HOMEPAGE="https://chili.backbone.ws/projects/gentoo-upgrade"
SLOT="0"
LICENSE="GPL-3"
IUSE=""
DEPEND=""
RDEPEND="${DEPEND}"
src_prepare() {
if [[ ${PV} == "9999" ]] ; then
# Allow user patches to be applied without modifying the ebuild
epatch_user
fi
}
src_install() {
if [[ ${PV} == "9999" ]] ; then
emake install DESTDIR="${D}"
else
emake install DESTDIR="${D}" || die
fi
}