diff options
Diffstat (limited to 'dev-php/myclabs-deepcopy')
-rw-r--r-- | dev-php/myclabs-deepcopy/Manifest | 1 | ||||
-rw-r--r-- | dev-php/myclabs-deepcopy/files/autoload.php | 8 | ||||
-rw-r--r-- | dev-php/myclabs-deepcopy/metadata.xml | 8 | ||||
-rw-r--r-- | dev-php/myclabs-deepcopy/myclabs-deepcopy-1.6.0.ebuild | 27 |
4 files changed, 44 insertions, 0 deletions
diff --git a/dev-php/myclabs-deepcopy/Manifest b/dev-php/myclabs-deepcopy/Manifest new file mode 100644 index 000000000000..9a40b473afc9 --- /dev/null +++ b/dev-php/myclabs-deepcopy/Manifest @@ -0,0 +1 @@ +DIST myclabs-deepcopy-1.6.0.tar.gz 43612 SHA256 45b1734bc5522e3ce82f8c1c77975f585e8858398e3bb0e3233542e2d1fd6874 SHA512 a1d0ce8386172b963bca1e34e0e6d69268177f6aaf5309498780e4f9e43b9126916937e0b422644199b96f46212d0267af9b56993b9ffe295adb5f872c24584c WHIRLPOOL 950d41378a34f4e556064c3de1f971419294c63a8ca5722889d3608e736dd3a88ea302892e280ed40315d93ebe81b18804d0599e7b969ee591d9178a79bcd083 diff --git a/dev-php/myclabs-deepcopy/files/autoload.php b/dev-php/myclabs-deepcopy/files/autoload.php new file mode 100644 index 000000000000..0d5d92673b36 --- /dev/null +++ b/dev-php/myclabs-deepcopy/files/autoload.php @@ -0,0 +1,8 @@ +<?php +/* Autoloader for dev-php/myclabs-deepcopy */ + +if (!class_exists('Fedora\\Autoloader\\Autoload', false)) { + require_once '/usr/share/php/Fedora/Autoloader/autoload.php'; +} + +Fedora\Autoloader\Autoload::addPsr4('DeepCopy\\', __DIR__); diff --git a/dev-php/myclabs-deepcopy/metadata.xml b/dev-php/myclabs-deepcopy/metadata.xml new file mode 100644 index 000000000000..b86acf66c756 --- /dev/null +++ b/dev-php/myclabs-deepcopy/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/myclabs-deepcopy/myclabs-deepcopy-1.6.0.ebuild b/dev-php/myclabs-deepcopy/myclabs-deepcopy-1.6.0.ebuild new file mode 100644 index 000000000000..ce92ad16528e --- /dev/null +++ b/dev-php/myclabs-deepcopy/myclabs-deepcopy-1.6.0.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="DeepCopy" + +DESCRIPTION="Create deep copies (clones) of your objects" +HOMEPAGE="https://github.com/myclabs/${MY_PN}" +SRC_URI="https://github.com/myclabs/${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/myclabs + doins -r src/* + insinto /usr/share/php/myclabs/DeepCopy + doins "${FILESDIR}/autoload.php" +} |