app-portage/src_prepare-scripts: fix deps; minor tweaks
Package-Manager: Portage-3.0.8, Repoman-3.0.2 Signed-off-by: Maciej Barć <xgqt@protonmail.com>
This commit is contained in:
parent
afd46bf338
commit
06b4e4a893
@ -3,18 +3,16 @@
|
|||||||
|
|
||||||
EAPI=7
|
EAPI=7
|
||||||
|
|
||||||
MY_PN="scripts"
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python3_{6..8} )
|
PYTHON_COMPAT=( python3_{6..8} )
|
||||||
|
|
||||||
inherit git-r3 python-r1
|
inherit git-r3 python-r1
|
||||||
|
|
||||||
DESCRIPTION="Small scripts from src_prepare group"
|
DESCRIPTION="Small scripts from src_prepare group"
|
||||||
HOMEPAGE="https://gitlab.com/src_prepare/scripts"
|
HOMEPAGE="https://gitlab.com/src_prepare/scripts"
|
||||||
EGIT_REPO_URI="https://gitlab.com/src_prepare/${MY_PN}.git"
|
EGIT_REPO_URI="https://gitlab.com/src_prepare/scripts.git"
|
||||||
|
|
||||||
RESTRICT="
|
RESTRICT="
|
||||||
mirror
|
binchecks mirror strip
|
||||||
!test? ( test )
|
!test? ( test )
|
||||||
"
|
"
|
||||||
LICENSE="ISC"
|
LICENSE="ISC"
|
||||||
@ -37,9 +35,8 @@ RDEPEND="
|
|||||||
)
|
)
|
||||||
"
|
"
|
||||||
DEPEND="
|
DEPEND="
|
||||||
${RDEPEND}
|
|
||||||
test? (
|
test? (
|
||||||
dev-python/pylint[${PYTHON_USEDEP}]
|
dev-python/pylint
|
||||||
|| (
|
|| (
|
||||||
dev-util/shellcheck
|
dev-util/shellcheck
|
||||||
dev-util/shellcheck-bin
|
dev-util/shellcheck-bin
|
||||||
@ -60,14 +57,15 @@ src_install() {
|
|||||||
done
|
done
|
||||||
|
|
||||||
# Install the scripts
|
# Install the scripts
|
||||||
|
local P_HOME="opt/${PN}"
|
||||||
if pushd src
|
if pushd src
|
||||||
then
|
then
|
||||||
local script
|
local script
|
||||||
for script in *
|
for script in *
|
||||||
do
|
do
|
||||||
exeinto "/opt/${PN}"
|
exeinto "${P_HOME}"
|
||||||
doexe "${script}"
|
doexe "${script}"
|
||||||
dosym "../../opt/${PN}/${script}" "/usr/bin/src_prepare-${script}"
|
dosym "../../${P_HOME}/${script}" "/usr/bin/src_prepare-${script}"
|
||||||
done
|
done
|
||||||
popd
|
popd
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user