summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2021-08-27 14:26:24 +0200
committerThomas Deutschmann <whissi@gentoo.org>2021-08-27 15:16:04 +0200
commit0393f6a1f3c3234c505030c0f5a7b66c69612248 (patch)
tree495323e3d1c25d1c87af2d0cda9f89aaa9f0b7a0 /dev-php/theseer-Autoload
parentdev-php/theseer-DirectoryScanner: bump to v1.3.3 (diff)
downloadgentoo-0393f6a1f3c3234c505030c0f5a7b66c69612248.tar.gz
gentoo-0393f6a1f3c3234c505030c0f5a7b66c69612248.tar.bz2
gentoo-0393f6a1f3c3234c505030c0f5a7b66c69612248.zip
dev-php/theseer-Autoload: bump to v1.26.3
Package-Manager: Portage-3.0.22, Repoman-3.0.3 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'dev-php/theseer-Autoload')
-rw-r--r--dev-php/theseer-Autoload/Manifest1
-rw-r--r--dev-php/theseer-Autoload/theseer-Autoload-1.26.3.ebuild82
2 files changed, 83 insertions, 0 deletions
diff --git a/dev-php/theseer-Autoload/Manifest b/dev-php/theseer-Autoload/Manifest
index 8317998a9905..7b4b9e48b084 100644
--- a/dev-php/theseer-Autoload/Manifest
+++ b/dev-php/theseer-Autoload/Manifest
@@ -1 +1,2 @@
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
diff --git a/dev-php/theseer-Autoload/theseer-Autoload-1.26.3.ebuild b/dev-php/theseer-Autoload/theseer-Autoload-1.26.3.ebuild
new file mode 100644
index 000000000000..f8aad573f6e7
--- /dev/null
+++ b/dev-php/theseer-Autoload/theseer-Autoload-1.26.3.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+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="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+CDEPEND="dev-lang/php:*[cli]
+ >=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
+}