From 2c9fcfe3bcf095c368aadad502b4f471d5668e3c Mon Sep 17 00:00:00 2001 From: Kolan Sh Date: Sat, 19 May 2012 14:17:49 +0400 Subject: [PATCH] gentoo-upgrade added --- app-admin/gentoo-upgrade/Manifest | 1 + .../gentoo-upgrade/gentoo-upgrade-9999.ebuild | 45 +++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 app-admin/gentoo-upgrade/Manifest create mode 100644 app-admin/gentoo-upgrade/gentoo-upgrade-9999.ebuild diff --git a/app-admin/gentoo-upgrade/Manifest b/app-admin/gentoo-upgrade/Manifest new file mode 100644 index 00000000..5a6a6cfa --- /dev/null +++ b/app-admin/gentoo-upgrade/Manifest @@ -0,0 +1 @@ +EBUILD gentoo-upgrade-9999.ebuild 825 RMD160 92209f5d2eecb5450a002f26b83b0ba288f8c221 SHA1 76408e285b45414a4dd2c43e3d7ff3f5755ddd9e SHA256 0f13eb577c6af3955eaf7054762ecbcd27e8f8281f874ff7604adf32b4d3f57c diff --git a/app-admin/gentoo-upgrade/gentoo-upgrade-9999.ebuild b/app-admin/gentoo-upgrade/gentoo-upgrade-9999.ebuild new file mode 100644 index 00000000..dc1afdad --- /dev/null +++ b/app-admin/gentoo-upgrade/gentoo-upgrade-9999.ebuild @@ -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 +}