diff options
author | Brian Evans <grknight@gentoo.org> | 2017-03-09 10:15:16 -0500 |
---|---|---|
committer | Brian Evans <grknight@gentoo.org> | 2017-03-09 11:21:06 -0500 |
commit | 5a3b26f0fd67da0b3a2814c47d0471b551bc794b (patch) | |
tree | 42cbab3a7c3e7748900f9ee1534ca1abcfb20324 /dev-php/sebastian-version | |
parent | dev-php/webmozart-assert: New package for an unbundled phpunit (diff) | |
download | gentoo-5a3b26f0fd67da0b3a2814c47d0471b551bc794b.tar.gz gentoo-5a3b26f0fd67da0b3a2814c47d0471b551bc794b.tar.bz2 gentoo-5a3b26f0fd67da0b3a2814c47d0471b551bc794b.zip |
dev-php/sebastian-version: New package for an unbundled phpunit
Package-Manager: Portage-2.3.4, Repoman-2.3.2
Diffstat (limited to 'dev-php/sebastian-version')
-rw-r--r-- | dev-php/sebastian-version/Manifest | 1 | ||||
-rw-r--r-- | dev-php/sebastian-version/files/autoload.php | 13 | ||||
-rw-r--r-- | dev-php/sebastian-version/metadata.xml | 8 | ||||
-rw-r--r-- | dev-php/sebastian-version/sebastian-version-2.0.1.ebuild | 27 |
4 files changed, 49 insertions, 0 deletions
diff --git a/dev-php/sebastian-version/Manifest b/dev-php/sebastian-version/Manifest new file mode 100644 index 000000000000..034fe46e938c --- /dev/null +++ b/dev-php/sebastian-version/Manifest @@ -0,0 +1 @@ +DIST sebastian-version-2.0.1.tar.gz 3581 SHA256 95528613681183eb8eca91b5e786da28cdd62effa35652792578b1ca6b730212 SHA512 12a813ff08996f8a6e53069ea297fb00f5fc9b58ce463b4008791cadc19575539bdb17acbf1f2fa67b18ce5a9207c9acd47183d520b60d6a188569f513d8a661 WHIRLPOOL e1b4759df3ac041cc46edb53439b8b1caa612142f92082aecbd3f8573be4a66c0ab0a0c9e637cf64a094bd4a1666ab6a503b17d07b66b72e3a1243c8bf4be0fe diff --git a/dev-php/sebastian-version/files/autoload.php b/dev-php/sebastian-version/files/autoload.php new file mode 100644 index 000000000000..3839169bafb5 --- /dev/null +++ b/dev-php/sebastian-version/files/autoload.php @@ -0,0 +1,13 @@ +<?php +/* Autoloader for dev-php/sebastian-version */ + +if (!class_exists('Fedora\\Autoloader\\Autoload', false)) { + require_once '/usr/share/php/Fedora/Autoloader/autoload.php'; +} + +\Fedora\Autoloader\Autoload::addClassMap( + array( + 'sebastianbergmann\version' => '/../Version.php', + ), + __DIR__ +); diff --git a/dev-php/sebastian-version/metadata.xml b/dev-php/sebastian-version/metadata.xml new file mode 100644 index 000000000000..b86acf66c756 --- /dev/null +++ b/dev-php/sebastian-version/metadata.xml @@ -0,0 +1,8 @@ +<?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> +</pkgmetadata> diff --git a/dev-php/sebastian-version/sebastian-version-2.0.1.ebuild b/dev-php/sebastian-version/sebastian-version-2.0.1.ebuild new file mode 100644 index 000000000000..87a7bded342e --- /dev/null +++ b/dev-php/sebastian-version/sebastian-version-2.0.1.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +MY_PN="version" + +DESCRIPTION="Helps with managing the version number of Git-hosted PHP projects" +HOMEPAGE="http://phpunit.de" +SRC_URI="https://github.com/sebastianbergmann/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +S="${WORKDIR}/${MY_PN}-${PV}" + +RDEPEND="dev-php/fedora-autoloader + >=dev-lang/php-5.6:*" + +src_install() { + insinto /usr/share/php/SebastianBergmann + doins src/Version.php + insinto /usr/share/php/SebastianBergmann/Version + doins "${FILESDIR}/autoload.php" +} |