summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2018-03-21 17:55:07 +0100
committerMichał Górny <mgorny@gentoo.org>2018-03-21 19:12:23 +0100
commit47dd77befdc4ff55dde5caab1128c57075ed5757 (patch)
tree47a2e7754d24014075ac4305e6324b7e995b728c /app-admin/gentoo-perl-helpers/gentoo-perl-helpers-0.3.1-r1.ebuild
parentvirtual/package-manager: Support sys-apps/portage-mgorny (diff)
downloadgentoo-47dd77befdc4ff55dde5caab1128c57075ed5757.tar.gz
gentoo-47dd77befdc4ff55dde5caab1128c57075ed5757.tar.bz2
gentoo-47dd77befdc4ff55dde5caab1128c57075ed5757.zip
app-admin/gentoo-perl-helpers: Support sys-apps/portage-mgorny
Diffstat (limited to 'app-admin/gentoo-perl-helpers/gentoo-perl-helpers-0.3.1-r1.ebuild')
-rw-r--r--app-admin/gentoo-perl-helpers/gentoo-perl-helpers-0.3.1-r1.ebuild57
1 files changed, 57 insertions, 0 deletions
diff --git a/app-admin/gentoo-perl-helpers/gentoo-perl-helpers-0.3.1-r1.ebuild b/app-admin/gentoo-perl-helpers/gentoo-perl-helpers-0.3.1-r1.ebuild
new file mode 100644
index 000000000000..345b7fdce83a
--- /dev/null
+++ b/app-admin/gentoo-perl-helpers/gentoo-perl-helpers-0.3.1-r1.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Introspection and Upgrade Assistance tools for Gentoo Perl"
+HOMEPAGE="https://github.com/gentoo-perl/gentoo-perl-helpers"
+SRC_URI="
+ https://github.com/gentoo-perl/${PN}/releases/download/${PV}/${P}.tar.xz
+ mirror://gentoo/${P}.tar.xz
+ https://dev.gentoo.org/~kentnl/distfiles/${P}.tar.xz
+"
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~x86"
+IUSE=""
+
+# Assumed System:
+# sys-apps/coreutils
+# sys-apps/grep
+# sys-apps/findutils
+# sys-apps/sed
+# app-shells/bash
+# sys-apps/gawk
+# app-arch/tar
+
+RDEPEND="
+ $(: --format support)
+ >=app-portage/portage-utils-0.60
+ || (
+ sys-apps/portage
+ sys-apps/portage-mgorny
+ )
+"
+DEPEND=""
+
+src_prepare() {
+ sed -i -e "s^@@LIBDIR@@^${EPREFIX}/usr/lib/gentoo-perl-helpers^g" \
+ -e "s^@@LIBEXECDIR@@^${EPREFIX}/usr/libexec/gentoo-perl-helpers^g" \
+ "${S}/bin/gentoo-perl" \
+ "${S}/lib/core-functions.sh" \
+ || die "Can't patch bin/gentoo-perl"
+ default
+}
+src_compile() { :; }
+src_install() {
+ exeinto /usr/bin
+ doexe "${S}/bin/"*
+
+ exeinto /usr/libexec/gentoo-perl-helpers
+ doexe "${S}/libexec/"*
+
+ insinto /usr/lib/gentoo-perl-helpers
+ doins -r "${S}/lib/"*
+
+ dodoc "${S}/README.mkdn" "${S}/Changes"
+}