summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-php/metadata-minifier')
-rw-r--r--dev-php/metadata-minifier/Manifest1
-rw-r--r--dev-php/metadata-minifier/metadata-minifier-1.0.0.ebuild35
-rw-r--r--dev-php/metadata-minifier/metadata.xml10
3 files changed, 46 insertions, 0 deletions
diff --git a/dev-php/metadata-minifier/Manifest b/dev-php/metadata-minifier/Manifest
new file mode 100644
index 000000000000..4c7d8c9a7705
--- /dev/null
+++ b/dev-php/metadata-minifier/Manifest
@@ -0,0 +1 @@
+DIST metadata-minifier-1.0.0.tar.gz 2505 BLAKE2B 0312338b7d0c4b2c679c8bb054d11a785495faa8bc20c078ece89cbbfe8cfb7a8944eb248e7adc772c8309f416fcff5c81d920f35b4712f45bd4a7c7eb1291e7 SHA512 19915f67e8a00595e5582f7be8edbc22b322ce3d4c9e687105ea83c4789b9590c5cef967ee8a5614e938e13e262585e7377fc1e45f3a3e05340bf8ddcfe8fc72
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 000000000000..cf40155d322c
--- /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
+}
diff --git a/dev-php/metadata-minifier/metadata.xml b/dev-php/metadata-minifier/metadata.xml
new file mode 100644
index 000000000000..ce3c65e2b568
--- /dev/null
+++ b/dev-php/metadata-minifier/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>php-bugs@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">composer/metadata-minifier</remote-id>
+ </upstream>
+</pkgmetadata>