summaryrefslogtreecommitdiff
path: root/dev-php/phing
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-php/phing
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-php/phing')
-rw-r--r--dev-php/phing/Manifest6
-rw-r--r--dev-php/phing/files/autoload.php14
-rw-r--r--dev-php/phing/metadata.xml17
-rw-r--r--dev-php/phing/phing-2.16.0.ebuild57
4 files changed, 94 insertions, 0 deletions
diff --git a/dev-php/phing/Manifest b/dev-php/phing/Manifest
new file mode 100644
index 000000000000..2d809b9e126a
--- /dev/null
+++ b/dev-php/phing/Manifest
@@ -0,0 +1,6 @@
+AUX autoload.php 418 SHA256 56bc7f42f7bd49843e3070c574ba7636afa9c6c07440026ac5800cb927d2d221 SHA512 81a22775a38d08e681e0f0a97fd6f125065be86fb491894f397cb25cc8240a7038b6cf061c77cc0c4837cc5a68aef909fe3a94ae84165a5f358050fac0164cd1 WHIRLPOOL c36d5b481bee387c03b1d66facfd82a8953aaff62bc303d72d6a0c12ab1546365b29822df6acef7b422686ebbf610a3396e076f6872de5bd7fa1efc0d5541695
+DIST phing-2.16.0.tgz 4142331 SHA256 86276306cbb5e692951199fc658a545eec38279fe1e4b1823b71b2bd08715bab SHA512 f738d08a195d69c32a035dd3739e0cbc56946173dc31e8fdc8fc07664139b2b97832a6bbb527785e5dfe025530c364a1ed1075a0b77baecfc2395ec78549ba72 WHIRLPOOL 263510867e1cc4896f075b4d0b75da7f0dbbaa9acba202adacfd0524ecf8a57500a934c35a3b21384ccb892376cf2cfe87d1d4416d097c0896b51ccb02f0dbca
+EBUILD phing-2.16.0.ebuild 1552 SHA256 6e270e9abf669c5d4f759e36733f706a75e0ed66fc9ac518f508c6a3d82784e6 SHA512 af8842f86a4e5665e7bc5d18e5da2240909be275c840271fa0d529cdd4662594cca310f74d02742673611f254a83e2011509b992de1403dad8b3ab61a56302c6 WHIRLPOOL fb8ab479e208a6e713febd1aea24fe5f5059818abcc59398a9ac56d23bcc7bbe2662cf0c1aad2bf4918ac874c75c9abb09aed280098050fbe5dd0b57b9bc7961
+MISC ChangeLog 2470 SHA256 db32471ff7f44f7d6f51184909a300f5adba166bf9b8f61b7cdcc10e6e30e3d6 SHA512 ed60ff0c4a7eac88dfc41d69c9acc3c80d321a9f578b96794d3e060d2999a935a396bff86006cf38c03bcb124e437c709cd41856207d98bb531bcda6320cad77 WHIRLPOOL e1f271268a13c1d83f839cf020dfc7d94a17d8ad706f4032c330cf76426827738c7ffc345039b17080ab1a94eb79474cebb12751c52b44a9c72330c01312866a
+MISC ChangeLog-2015 3548 SHA256 9dd0bd7a949e87755105afc638ff59b67abc9c89469ace96740b8a4f1bf6f326 SHA512 de857e9d999494a727603f4ce02966b1a577d8d9f21f2e7bcdd4e5e799677b26b229e50780121d4af05f5167faf11f71a5c439e99f247018e3b946a63b02e852 WHIRLPOOL ae001aba2b94d73fe29fbc635cb68a7d68410535f11fe7d9d9fcfa5495d78583ad693727418bd7d1619a21ee13a41726b28dd9803fe7b329340d3240c20a53b9
+MISC metadata.xml 471 SHA256 447df32c33da336df318b24bfa0216b44303f538f7c9a6acc116b3f342f10384 SHA512 a0b77b3717c96c2aa8807f967c5c5a61dbcaa543ac7467a6f36bfdb9a74897b975d543ea2515180718cd016d7ec72989e985ce45c87cec04923f9226a2c97254 WHIRLPOOL 8f02b1f80a22942bf21d4347aa5ace6e5dd7ecf7c7ca7f88e0af4c26649473f58fcfff058085aab49b90ca12578a42850c0bacff6fc5f934576e228d764dc850
diff --git a/dev-php/phing/files/autoload.php b/dev-php/phing/files/autoload.php
new file mode 100644
index 000000000000..437a7dc7ee1e
--- /dev/null
+++ b/dev-php/phing/files/autoload.php
@@ -0,0 +1,14 @@
+<?php
+$vendor_dir = '/usr/share/php';
+if (!class_exists('Fedora\\Autoloader\\Autoload', false)) {
+ require_once("${vendor_dir}/Fedora/Autoloader/autoload.php");
+}
+
+/*
+ At least for the moment, we don't need to autoload the Phing classes
+ themselves, because the "require" statements are all still there.
+*/
+
+\Fedora\Autoloader\Dependencies::required(
+ array("${vendor_dir}/Symfony/Component/Yaml/autoload.php")
+);
diff --git a/dev-php/phing/metadata.xml b/dev-php/phing/metadata.xml
new file mode 100644
index 000000000000..104818de2b2f
--- /dev/null
+++ b/dev-php/phing/metadata.xml
@@ -0,0 +1,17 @@
+<?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">phingofficial/phing</remote-id>
+ </upstream>
+ <use>
+ <flag name="zip">
+ Support zip archives by requiring said support in
+ <pkg>dev-lang/php</pkg>.
+ </flag>
+ </use>
+</pkgmetadata>
diff --git a/dev-php/phing/phing-2.16.0.ebuild b/dev-php/phing/phing-2.16.0.ebuild
new file mode 100644
index 000000000000..65352777f2fa
--- /dev/null
+++ b/dev-php/phing/phing-2.16.0.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="PHP project build system based on Apache Ant"
+HOMEPAGE="http://www.phing.info/"
+SRC_URI="http://www.phing.info/get/${P}.tgz"
+
+LICENSE="FDL-1.3 LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc examples minimal zip"
+
+RDEPEND="dev-lang/php:*[cli,xml,xslt,zip?]
+ dev-php/symfony-yaml
+ !minimal? (
+ dev-php/PEAR-HTTP_Request2
+ dev-php/PEAR-PEAR_PackageFileManager
+ dev-php/PEAR-VersionControl_SVN
+ dev-php/PHP_CodeCoverage
+ dev-php/phpDocumentor
+ dev-php/phpmd
+ dev-php/phpunit
+ dev-php/simpletest
+ dev-php/xdebug
+ )"
+
+S="${WORKDIR}"
+
+src_install() {
+ dodoc CHANGELOG.md CREDITS.md README.md
+ dodoc -r docs/docbook5/en/output/hlhtml
+ use doc && dodoc -r docs/api
+ use examples && dodoc -r docs/example
+
+ # Install the executable (and the PHP file it wraps) outside of the
+ # PHP include directory, since nobody should be including it.
+ exeinto "/usr/share/${PN}/bin"
+ doexe "bin/${PN}"
+ insinto "/usr/share/${PN}/bin"
+ doins "bin/${PN}.php"
+ dosym "/usr/share/${PN}/bin/${PN}" "/usr/bin/${PN}"
+
+ # Phing tries to get the version number from this file.
+ insinto "/usr/share/${PN}/etc"
+ doins etc/VERSION.TXT
+
+ # The executable will only look for autoload.php in one place, so we
+ # create an (otherwise pointless) vendor directory to house it.
+ insinto "/usr/share/${PN}/vendor"
+ doins "${FILESDIR}/autoload.php"
+
+ # But install the library under /usr/share/php.
+ insinto "/usr/share/php"
+ doins -r "classes/${PN}"
+}