summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2021-04-27 16:22:08 +0200
committerThomas Deutschmann <whissi@gentoo.org>2021-04-27 16:28:19 +0200
commitdb4a6aba6d7681c2e4bbfbb9bf9bacd3d657d91d (patch)
tree437e2af627e111f9ac0d2a689a7b3a600f93da1f /dev-php/metadata-minifier/metadata-minifier-1.0.0.ebuild
parentdev-php/composer: bump to v1.10.22 (diff)
downloadgentoo-db4a6aba6d7681c2e4bbfbb9bf9bacd3d657d91d.tar.gz
gentoo-db4a6aba6d7681c2e4bbfbb9bf9bacd3d657d91d.tar.bz2
gentoo-db4a6aba6d7681c2e4bbfbb9bf9bacd3d657d91d.zip
dev-php/metadata-minifier: new package
Needed for dev-php/composer. Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'dev-php/metadata-minifier/metadata-minifier-1.0.0.ebuild')
-rw-r--r--dev-php/metadata-minifier/metadata-minifier-1.0.0.ebuild35
1 files changed, 35 insertions, 0 deletions
diff --git a/dev-php/metadata-minifier/metadata-minifier-1.0.0.ebuild b/dev-php/metadata-minifier/metadata-minifier-1.0.0.ebuild
new file mode 100644
index 00000000000..cf40155d322
--- /dev/null
+++ b/dev-php/metadata-minifier/metadata-minifier-1.0.0.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="Small utility library that handles metadata minification and expansion"
+HOMEPAGE="https://github.com/composer/metadata-minifier"
+SRC_URI="https://github.com/composer/metadata-minifier/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+BDEPEND="dev-php/theseer-Autoload"
+
+RDEPEND="dev-php/fedora-autoloader
+ >=dev-lang/php-7.2:*"
+
+src_prepare() {
+ default
+
+ phpab \
+ --output src/autoload.php \
+ --template fedora2 \
+ --basedir src \
+ src \
+ || die
+}
+
+src_install() {
+ insinto '/usr/share/php/Composer/MetadataMinifier'
+ doins -r src/*
+
+ einstalldocs
+}