dev-util/checkbashisms: Sync with Gentoo

It's from Gentoo commit 86239d2ed163cd74a2ceff9ca60a192c762e5a5c.
This commit is contained in:
Flatcar Buildbot 2023-08-07 07:11:16 +00:00 committed by Krzesimir Nowak
parent be60d93d52
commit 2fc1c9dd06
2 changed files with 36 additions and 0 deletions

View File

@ -1 +1,2 @@
DIST devscripts_2.22.2.tar.xz 995524 BLAKE2B a7649ea5b790a64b5470a66425e487959b058e9af34be173210277765c8610f7d6da1b9105f97e1da2f84a578ca7514b1dabaa7c38a88c9b1eef29c2f34f97a1 SHA512 d6c47f604a252f58e1cf8ea9fe7387a390683757144bb76cce6915fca1ff7ccb71ce6c87d829f874097d869172774a806b506dc7fb4187876d14e50eaaf92593
DIST devscripts_2.23.5.tar.xz 991592 BLAKE2B e5932d3d98f555b9585c4b9b3e0932c8ea56a572c474db1c27caa175de2af1c2d5ed9f1cd37bdc6eb4e886000c31d7389b2c1943a53091d2dcc75081959a277f SHA512 c1ca4d664ff03d4952f89612dfad9aa6ffd2a51ea90945d28a3b85ba8bc6d2be3e35d84339369e1fd4eb25e99a1d6773051e34cc93df83e3927ab6d53d61d393

View File

@ -0,0 +1,35 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
MY_PN="devscripts"
MY_P="${MY_PN}-${PV}"
DESCRIPTION="Perl script to check for commonly used bash features not defined by POSIX"
HOMEPAGE="https://packages.debian.org/devscripts https://salsa.debian.org/debian/devscripts"
SRC_URI="mirror://debian/pool/main/d/${MY_PN}/${MY_P/-/_}.tar.xz"
S="${WORKDIR}/${MY_PN}/scripts"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
# Requires python packages to check tools we don't need anyway
RESTRICT="test"
RDEPEND="dev-lang/perl
virtual/perl-Getopt-Long"
src_prepare() {
default
sed "s@###VERSION###@${PV}@" -i checkbashisms.pl || die
}
src_compile() { :; }
src_install() {
newbin ${PN}.pl ${PN}
doman ${PN}.1
}