diff options
author | Rob Levitsky <kitsunenokenja@protonmail.ch> | 2018-01-08 17:37:27 -0500 |
---|---|---|
committer | Michael Orlitzky <mjo@gentoo.org> | 2018-02-12 20:51:40 -0500 |
commit | 9db64417fb0d1c3b7b959f359896aa8e1f24f1ce (patch) | |
tree | 9c69dc85cdd6e311dab40924441cf53cef8170b2 | |
parent | app-crypt/yubikey-manager: bump to 0.6.0, enable tests, add readme.gentoo (diff) | |
download | gentoo-9db64417fb0d1c3b7b959f359896aa8e1f24f1ce.tar.gz gentoo-9db64417fb0d1c3b7b959f359896aa8e1f24f1ce.tar.bz2 gentoo-9db64417fb0d1c3b7b959f359896aa8e1f24f1ce.zip |
dev-php/phar-io-version: new package
Package-Manager: Portage-2.3.13, Repoman-2.3.3
Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
-rw-r--r-- | dev-php/phar-io-version/Manifest | 1 | ||||
-rw-r--r-- | dev-php/phar-io-version/files/autoload.php | 8 | ||||
-rw-r--r-- | dev-php/phar-io-version/metadata.xml | 11 | ||||
-rw-r--r-- | dev-php/phar-io-version/phar-io-version-1.0.1.ebuild | 27 |
4 files changed, 47 insertions, 0 deletions
diff --git a/dev-php/phar-io-version/Manifest b/dev-php/phar-io-version/Manifest new file mode 100644 index 000000000000..ada5f18db0ef --- /dev/null +++ b/dev-php/phar-io-version/Manifest @@ -0,0 +1 @@ +DIST phar-io-version-1.0.1.tar.gz 8686 BLAKE2B 2cb7208f24ebce981b1b487170d8f07fd43c6dc53782e2797c3172736255e29863aa832d8e63f59e9f941fc154a1e3ebc6452437641f92521f84ddfdf2d3e6ec SHA512 c3bd6e7426bbac99c2b7028d86429f954daafebb7aea3c969305035ce5fc98c3d718f34efbf36658442bb4f60518dbb8217c314f2a3afd429e037120cc7428d9 diff --git a/dev-php/phar-io-version/files/autoload.php b/dev-php/phar-io-version/files/autoload.php new file mode 100644 index 000000000000..6072d5990663 --- /dev/null +++ b/dev-php/phar-io-version/files/autoload.php @@ -0,0 +1,8 @@ +<?php +/* Autoloader for dev-php/phar-io-version */ + +if (!class_exists('Fedora\\Autoloader\\Autoload', false)) { + require_once '/usr/share/php/Fedora/Autoloader/autoload.php'; +} + +\Fedora\Autoloader\Autoload::addPsr4('PharIo\\Version\\', __DIR__); diff --git a/dev-php/phar-io-version/metadata.xml b/dev-php/phar-io-version/metadata.xml new file mode 100644 index 000000000000..49b1640723c4 --- /dev/null +++ b/dev-php/phar-io-version/metadata.xml @@ -0,0 +1,11 @@ +<?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> + <name>PHP</name> + </maintainer> + <upstream> + <remote-id type="github">phar-io/version</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-php/phar-io-version/phar-io-version-1.0.1.ebuild b/dev-php/phar-io-version/phar-io-version-1.0.1.ebuild new file mode 100644 index 000000000000..1ec43b1fdaf8 --- /dev/null +++ b/dev-php/phar-io-version/phar-io-version-1.0.1.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +MY_PN="version" + +DESCRIPTION="Library for handling version information and constraints" +HOMEPAGE="https://github.com/phar-io/version" +SRC_URI="https://github.com/phar-io/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" +IUSE="" + +S="${WORKDIR}/${MY_PN}-${PV}" + +RDEPEND="dev-php/fedora-autoloader + >=dev-lang/php-5.6" + +src_install() { + insinto /usr/share/php/PharIo/Version + doins -r src/* + doins "${FILESDIR}/autoload.php" + dodoc README.md +} |