summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Evans <grknight@gentoo.org>2017-03-09 10:33:53 -0500
committerBrian Evans <grknight@gentoo.org>2017-03-09 11:21:59 -0500
commit7ef93269fd27ce89c5f46e21d3132362add4cf5f (patch)
tree41c06ec2b5c25e26d4778c11df1c8f60eff6c65a
parentdev-php/sebastian-code-unit-reverse-lookup: New package for an unbundled phpunit (diff)
downloadgentoo-7ef93269fd27ce89c5f46e21d3132362add4cf5f.tar.gz
gentoo-7ef93269fd27ce89c5f46e21d3132362add4cf5f.tar.bz2
gentoo-7ef93269fd27ce89c5f46e21d3132362add4cf5f.zip
dev-php/doctrine-instantiator: New package for an unbundled phpunit
Package-Manager: Portage-2.3.4, Repoman-2.3.2
-rw-r--r--dev-php/doctrine-instantiator/Manifest1
-rw-r--r--dev-php/doctrine-instantiator/doctrine-instantiator-1.0.5.ebuild27
-rw-r--r--dev-php/doctrine-instantiator/files/autoload.php8
-rw-r--r--dev-php/doctrine-instantiator/metadata.xml8
4 files changed, 44 insertions, 0 deletions
diff --git a/dev-php/doctrine-instantiator/Manifest b/dev-php/doctrine-instantiator/Manifest
new file mode 100644
index 000000000000..f3473dc1f2a2
--- /dev/null
+++ b/dev-php/doctrine-instantiator/Manifest
@@ -0,0 +1 @@
+DIST doctrine-instantiator-1.0.5.tar.gz 10202 SHA256 5b19b8d4704afbcba130a7bbf2807f20da7e41e93a2e0d2ee1e18704cd9fd730 SHA512 78b00b2550b47772b5825fbde59729e0613a90c1d9dacf1b7b7d13ccb5bbd8534af7e732dcc1b5b6f9bbafa2f9c3e7418e184851ab0f3a37c0c945b5eed1e229 WHIRLPOOL 04b7faf1fba6a5cd1af8da6961326c3148d901fca75135b0006f913ca40d8a0b43bb5755ce83d6382e1e3f7233500400706a37b1edb39efcf49d663c43097e4b
diff --git a/dev-php/doctrine-instantiator/doctrine-instantiator-1.0.5.ebuild b/dev-php/doctrine-instantiator/doctrine-instantiator-1.0.5.ebuild
new file mode 100644
index 000000000000..6df2380501b2
--- /dev/null
+++ b/dev-php/doctrine-instantiator/doctrine-instantiator-1.0.5.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="${PN/doctrine-//}"
+
+DESCRIPTION="Utility to instantiate objects in PHP without invoking their constructors"
+HOMEPAGE="https://github.com/doctrine/${MY_PN}"
+SRC_URI="https://github.com/doctrine/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+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/
+ doins -r src/*
+ insinto /usr/share/php/Doctrine/Instantiator
+ doins "${FILESDIR}/autoload.php"
+}
diff --git a/dev-php/doctrine-instantiator/files/autoload.php b/dev-php/doctrine-instantiator/files/autoload.php
new file mode 100644
index 000000000000..978f45e6a24a
--- /dev/null
+++ b/dev-php/doctrine-instantiator/files/autoload.php
@@ -0,0 +1,8 @@
+<?php
+/* Autoloader for dev-php/doctrine-instantiator */
+
+if (!class_exists('Fedora\\Autoloader\\Autoload', false)) {
+ require_once '/usr/share/php/Fedora/Autoloader/autoload.php';
+}
+
+Fedora\Autoloader\Autoload::addPsr4('Doctrine\\Instantiator\\', __DIR__);
diff --git a/dev-php/doctrine-instantiator/metadata.xml b/dev-php/doctrine-instantiator/metadata.xml
new file mode 100644
index 000000000000..b86acf66c756
--- /dev/null
+++ b/dev-php/doctrine-instantiator/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>