46 lines
870 B
Bash
46 lines
870 B
Bash
# 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:-"https://git.backbone.ws/kolan/Gentoo-Upgrade.git"}
|
|
inherit git-r3
|
|
KEYWORDS=""
|
|
else
|
|
SRC_URI="https://git.backbone.ws/kolan/gentoo-upgrade/archive/v${PVR}.tar.gz -> gentoo-upgrade-${PVR}.tar.gz"
|
|
KEYWORDS="-* ~x86 ~amd64"
|
|
fi
|
|
|
|
DESCRIPTION="Automated Gentoo upgrading"
|
|
|
|
HOMEPAGE="https://git.backbone.ws/kolan/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
|
|
}
|