From 5a52a93bfd3003adbd7535b43b51c1c15e550b98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Bar=C4=87?= Date: Sat, 12 Sep 2020 05:32:59 +0200 Subject: [PATCH] app-portage/src_prepare-scripts: new package; add version 9999 (live) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Package-Manager: Portage-3.0.5, Repoman-3.0.1 Signed-off-by: Maciej Barć --- app-portage/src_prepare-scripts/metadata.xml | 7 +++ .../src_prepare-scripts-9999.ebuild | 47 +++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 app-portage/src_prepare-scripts/metadata.xml create mode 100644 app-portage/src_prepare-scripts/src_prepare-scripts-9999.ebuild diff --git a/app-portage/src_prepare-scripts/metadata.xml b/app-portage/src_prepare-scripts/metadata.xml new file mode 100644 index 0000000..aa74136 --- /dev/null +++ b/app-portage/src_prepare-scripts/metadata.xml @@ -0,0 +1,7 @@ + + + + + src_prepare/scripts + + diff --git a/app-portage/src_prepare-scripts/src_prepare-scripts-9999.ebuild b/app-portage/src_prepare-scripts/src_prepare-scripts-9999.ebuild new file mode 100644 index 0000000..0241331 --- /dev/null +++ b/app-portage/src_prepare-scripts/src_prepare-scripts-9999.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +MY_PN="scripts" + +inherit eutils git-r3 + +DESCRIPTION="Small scripts from src_prepare group" +HOMEPAGE="https://gitlab.com/src_prepare/scripts" +EGIT_REPO_URI="https://gitlab.com/src_prepare/${MY_PN}.git" + +LICENSE="ISC" +SLOT="0" +KEYWORDS="" +IUSE="" + +DEPEND=" + app-shells/bash:* +" +RDEPEND=" + ${DEPEND} +" + +src_install() { + # Install the docs + for doc in *.md + do + dodoc "${doc}" + done + + # Install the scripts + if pushd src + then + local script + for script in * + do + exeinto "/opt/${PN}" + doexe "${script}" + dosym "../../opt/${PN}/${script}" "/usr/bin/src_prepare-${script}" + done + popd + else + die "There is no 'src' directory" + fi +}