mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-06 02:17:34 -08:00
dev-php/theseer-Autoload: drop 1.26.0-r2
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
parent
8aa482a298
commit
7a72547dd1
@ -1,2 +1 @@
|
||||
DIST theseer-Autoload-1.26.0.tar.gz 43119 BLAKE2B 7b2413bc2fb281472cee03010c175aae1c8304ab0629c31f09e11497bd6f46d58bae8625da610f5a513b19fc8aafc45c35be7271ba13188466f576e7b4a7392f SHA512 c8fcb3ad39c140517d695c44e6dea3797ea0135ff64246478e55cbf167e4b9fbb3e5027732c201f66b404039a313952c7125f13fdeb1cd96633dbccfdda6f143
|
||||
DIST theseer-Autoload-1.26.3.tar.gz 43810 BLAKE2B b2d7fe33b9663a3c324656abe63e4ae89533b773007362b546cb9401de0a8fd8f0c00f8f385c4a45c39be675d062cf5dd5a739972fc12611331065f244515d63 SHA512 00a6fbf86cc0f5958c5d0d049af0370ef510fe21a05d7dcbeb1b0771f979ea6638f5db74d913c56b10d9212a68b5d918cdfefec241b1383faf0e97b4305895bd
|
||||
|
||||
@ -1,82 +0,0 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
MY_PN="Autoload"
|
||||
|
||||
DESCRIPTION="PHP Autoload Builder"
|
||||
HOMEPAGE="https://github.com/theseer/Autoload"
|
||||
SRC_URI="https://github.com/theseer/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm ~hppa ppc64 ~s390 sparc x86"
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
CDEPEND="dev-lang/php:*[cli,fileinfo(-),tokenizer(-)]
|
||||
>=dev-php/theseer-DirectoryScanner-1.3
|
||||
<dev-php/theseer-DirectoryScanner-2
|
||||
>=dev-php/zetacomponents-Base-1.8
|
||||
<dev-php/zetacomponents-Base-2
|
||||
>=dev-php/zetacomponents-ConsoleTools-1.7.1
|
||||
<dev-php/zetacomponents-ConsoleTools-2"
|
||||
|
||||
BDEPEND="${CDEPEND}
|
||||
test? (
|
||||
>=dev-php/phpunit-8
|
||||
<dev-php/phpunit-9
|
||||
)"
|
||||
|
||||
RDEPEND="${CDEPEND}"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${PN}-1.26.0-autoload.php.patch )
|
||||
|
||||
S="${WORKDIR}/${MY_PN}-${PV}"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# Set version
|
||||
sed -i \
|
||||
-e "s/%development%/${PV}/" \
|
||||
phpab.php \
|
||||
composer/bin/phpab \
|
||||
|| die
|
||||
|
||||
cp --target-directory src/templates/ci \
|
||||
"${FILESDIR}"/fedora.php.tpl \
|
||||
"${FILESDIR}"/fedora2.php.tpl \
|
||||
|| die
|
||||
|
||||
# Mimick layout to bootstrap phpab
|
||||
mkdir --parents \
|
||||
vendor/theseer/directoryscanner \
|
||||
vendor/zetacomponents/base \
|
||||
vendor/zetacomponents/console-tools \
|
||||
|| die
|
||||
|
||||
ln -s /usr/share/php/TheSeer/DirectoryScanner vendor/theseer/directoryscanner/src || die
|
||||
ln -s /usr/share/php/ezc/Base vendor/zetacomponents/base/src || die
|
||||
ln -s /usr/share/php/ezc/ConsoleTools vendor/zetacomponents/console-tools/src || die
|
||||
|
||||
./phpab.php \
|
||||
--output src/autoload.php \
|
||||
--template "${FILESDIR}"/autoload.php.tpl \
|
||||
--basedir src \
|
||||
src || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
phpunit --no-coverage --verbose || die "Unit testing failed!"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto /usr/share/php/TheSeer/${MY_PN}
|
||||
doins -r src/*
|
||||
|
||||
dobin "${S}"/composer/bin/phpab
|
||||
|
||||
einstalldocs
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user