42 lines
716 B
Bash
42 lines
716 B
Bash
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
DESCRIPTION="JSON Linter"
|
|
HOMEPAGE="https://github.com/Seldaek/jsonlint"
|
|
SRC_URI="https://github.com/Seldaek/jsonlint/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
S="${WORKDIR}/jsonlint-${PV}"
|
|
|
|
LICENSE="MIT"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
|
|
|
|
BDEPEND="
|
|
dev-php/theseer-Autoload
|
|
!dev-php/jsonlint
|
|
"
|
|
|
|
RDEPEND="
|
|
>=dev-lang/php-7.4:*
|
|
dev-php/fedora-autoloader
|
|
!dev-php/jsonlint
|
|
"
|
|
|
|
src_prepare() {
|
|
default
|
|
|
|
phpab \
|
|
--output autoload.php \
|
|
--template fedora2 \
|
|
--basedir . \
|
|
. \
|
|
|| die
|
|
}
|
|
|
|
src_install() {
|
|
insinto "/usr/share/php/Seld/JsonLint"
|
|
doins -r *.php bin src src/Seld/JsonLint
|
|
}
|