app-portage/src_prepare-scripts: new package; add version 9999 (live)

Package-Manager: Portage-3.0.5, Repoman-3.0.1
Signed-off-by: Maciej Barć <xgqt@protonmail.com>
This commit is contained in:
Maciej Barć 2020-09-12 05:32:59 +02:00
parent d1e9193ca8
commit 5a52a93bfd
No known key found for this signature in database
GPG Key ID: 031C9FE65BED714A
2 changed files with 54 additions and 0 deletions

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<upstream>
<remote-id type="github">src_prepare/scripts</remote-id>
</upstream>
</pkgmetadata>

View File

@ -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
}