app-portage/src_prepare-scripts: treeclean

Signed-off-by: Alfred Wingate <parona@protonmail.com>
This commit is contained in:
Alfred Wingate 2023-05-02 09:44:36 +03:00
parent 29f333d20c
commit 9bec82c939
No known key found for this signature in database
GPG Key ID: A12750536B5E7010
4 changed files with 0 additions and 172 deletions

View File

@ -1 +0,0 @@
DIST scripts-1.0.0.tar.gz 22058 BLAKE2B 333b9bf3e699e78f2638ee6e339672d7544104a0257950593f4283f0dc2266fb4989665c2da4342fe6802c54c101d0369d652b47a9ecd2772e89f6872f5d8126 SHA512 d427a705675578c952390f1a351d648efb34d84030ba5f9cf592632684423041fa13e40b628c89bb8526a7b112acdbb33f9c06fc7be84c7ca934a772213bd235

View File

@ -1,11 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>xgqt@protonmail.com</email>
<name>Maciej Barć</name>
</maintainer>
<upstream>
<remote-id type="gitlab">src_prepare/scripts</remote-id>
</upstream>
</pkgmetadata>

View File

@ -1,80 +0,0 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{7..9} )
PYTHON_REQ_USE="xml"
inherit python-r1
DESCRIPTION="Small scripts from src_prepare group"
HOMEPAGE="https://gitlab.com/src_prepare/scripts"
if [[ "${PV}" == *9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://gitlab.com/src_prepare/scripts.git"
else
SRC_URI="https://gitlab.com/src_prepare/scripts/-/archive/${PV}/scripts-${PV}.tar.gz"
KEYWORDS="~amd64"
S="${WORKDIR}/scripts-${PV}"
fi
RESTRICT="
mirror
!test? ( test )
"
LICENSE="GPL-3"
SLOT="0"
IUSE="test"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RDEPEND="
${PYTHON_DEPS}
app-admin/eselect
app-portage/eix
app-portage/euscan-ng
app-portage/repoman
app-shells/bash:*
dev-lang/perl
dev-util/pkgcheck
sys-apps/portage
"
DEPEND="
test? (
dev-python/pylint
|| (
dev-util/shellcheck
dev-util/shellcheck-bin
)
)
"
src_test() {
bash ./test.sh || die "Tests failed"
}
src_install() {
# Install the docs
local doc
for doc in *.md
do
dodoc "${doc}"
done
# Install the scripts
local P_HOME="opt/${PN}"
if pushd src
then
local script
for script in *
do
exeinto "${P_HOME}"
doexe "${script}"
dosym "../../${P_HOME}/${script}" "/usr/bin/src_prepare-${script}"
done
popd
else
die "There is no ${S}/src directory"
fi
}

View File

@ -1,80 +0,0 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{7..9} )
PYTHON_REQ_USE="xml"
inherit python-r1
DESCRIPTION="Small scripts from src_prepare group"
HOMEPAGE="https://gitlab.com/src_prepare/scripts"
if [[ "${PV}" == *9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://gitlab.com/src_prepare/scripts.git"
else
SRC_URI="https://gitlab.com/src_prepare/scripts/-/archive/${PV}/scripts-${PV}.tar.gz"
KEYWORDS="~amd64"
S="${WORKDIR}/scripts-${PV}"
fi
RESTRICT="
mirror
!test? ( test )
"
LICENSE="GPL-3"
SLOT="0"
IUSE="test"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RDEPEND="
${PYTHON_DEPS}
app-admin/eselect
app-portage/eix
app-portage/euscan-ng
app-portage/repoman
app-shells/bash:*
dev-lang/perl
dev-util/pkgcheck
sys-apps/portage
"
DEPEND="
test? (
dev-python/pylint
|| (
dev-util/shellcheck
dev-util/shellcheck-bin
)
)
"
src_test() {
bash ./test.sh || die "Tests failed"
}
src_install() {
# Install the docs
local doc
for doc in *.md
do
dodoc "${doc}"
done
# Install the scripts
local P_HOME="opt/${PN}"
if pushd src
then
local script
for script in *
do
exeinto "${P_HOME}"
doexe "${script}"
dosym "../../${P_HOME}/${script}" "/usr/bin/src_prepare-${script}"
done
popd
else
die "There is no ${S}/src directory"
fi
}