commit:     781f02a1d863ba97f18214a7127177714cad96db
Author:     Louis Sautier <sautier.louis <AT> gmail <DOT> com>
AuthorDate: Fri Mar 18 17:45:42 2016 +0000
Commit:     Ian Delaney <idella4 <AT> gentoo <DOT> org>
CommitDate: Fri Mar 18 23:32:15 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=781f02a1

www-apps/icingaweb2-module-pnp4nagios: cosmetic fixes, unify live and release

Package-Manager: portage-2.2.28
Closes: https://github.com/gentoo/gentoo/pull/1081

on behalf of Matthew Thode <prometheanfire <AT> gentoo.org>

 .../icingaweb2-module-pnp4nagios-1.0.1.ebuild      | 21 ++++++++++++---------
 .../icingaweb2-module-pnp4nagios-9999.ebuild       | 22 ++++++++++++----------
 2 files changed, 24 insertions(+), 19 deletions(-)

diff --git 
a/www-apps/icingaweb2-module-pnp4nagios/icingaweb2-module-pnp4nagios-1.0.1.ebuild
 
b/www-apps/icingaweb2-module-pnp4nagios/icingaweb2-module-pnp4nagios-1.0.1.ebuild
index 9506223..a683de3 100644
--- 
a/www-apps/icingaweb2-module-pnp4nagios/icingaweb2-module-pnp4nagios-1.0.1.ebuild
+++ 
b/www-apps/icingaweb2-module-pnp4nagios/icingaweb2-module-pnp4nagios-1.0.1.ebuild
@@ -1,25 +1,28 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
-EAPI="5"
+EAPI=6
 
 DESCRIPTION="Icinga Web 2 plugin for pnp4nagios"
 HOMEPAGE="http://www.icinga.org/";
-MY_PN="icingaweb2-module-pnp"
-SRC_URI="https://codeload.github.com/Icinga/${MY_PN}/tar.gz/v${PV} -> 
${P}.tar.gz"
-S="${WORKDIR}/${MY_PN}-${PV}"
+if [[ "${PV}" == 9999 ]]; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/Icinga/icingaweb2-module-pnp.git";
+else
+       MY_PN="icingaweb2-module-pnp"
+       SRC_URI="https://codeload.github.com/Icinga/${MY_PN}/tar.gz/v${PV} -> 
${P}.tar.gz"
+       S="${WORKDIR}/${MY_PN}-${PV}"
+fi
 
 LICENSE="GPL-2"
 SLOT="0"
-IUSE=""
-KEYWORDS=""
 
 DEPEND=">=net-analyzer/icinga2-2.1.1
        >=www-apps/icingaweb2-2.0.0"
 RDEPEND="${DEPEND}"
 
 src_install() {
-       mkdir -p "${D}/usr/share/icingaweb2/modules/pnp"
-       cp -R "${S}"/* "${D}/usr/share/icingaweb2/modules/pnp"
+       insinto "/usr/share/icingaweb2/modules/pnp"
+       doins -r "${S}"/*
 }

diff --git 
a/www-apps/icingaweb2-module-pnp4nagios/icingaweb2-module-pnp4nagios-9999.ebuild
 
b/www-apps/icingaweb2-module-pnp4nagios/icingaweb2-module-pnp4nagios-9999.ebuild
index 1f094bb..a683de3 100644
--- 
a/www-apps/icingaweb2-module-pnp4nagios/icingaweb2-module-pnp4nagios-9999.ebuild
+++ 
b/www-apps/icingaweb2-module-pnp4nagios/icingaweb2-module-pnp4nagios-9999.ebuild
@@ -1,26 +1,28 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
-EAPI="5"
-
-inherit git-2
+EAPI=6
 
 DESCRIPTION="Icinga Web 2 plugin for pnp4nagios"
 HOMEPAGE="http://www.icinga.org/";
-EGIT_REPO_URI="https://github.com/Icinga/icingaweb2-module-pnp.git";
-EGIT_BRANCH="master"
+if [[ "${PV}" == 9999 ]]; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/Icinga/icingaweb2-module-pnp.git";
+else
+       MY_PN="icingaweb2-module-pnp"
+       SRC_URI="https://codeload.github.com/Icinga/${MY_PN}/tar.gz/v${PV} -> 
${P}.tar.gz"
+       S="${WORKDIR}/${MY_PN}-${PV}"
+fi
 
 LICENSE="GPL-2"
 SLOT="0"
-IUSE=""
-KEYWORDS=""
 
 DEPEND=">=net-analyzer/icinga2-2.1.1
        >=www-apps/icingaweb2-2.0.0"
 RDEPEND="${DEPEND}"
 
 src_install() {
-       mkdir -p "${D}/usr/share/icingaweb2/modules/pnp"
-       cp -R "${S}"/* "${D}/usr/share/icingaweb2/modules/pnp"
+       insinto "/usr/share/icingaweb2/modules/pnp"
+       doins -r "${S}"/*
 }

Reply via email to