summaryrefslogtreecommitdiff
path: root/dev-php/webmozart-assert
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/webmozart-assert
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-php/webmozart-assert')
-rw-r--r--dev-php/webmozart-assert/Manifest4
-rw-r--r--dev-php/webmozart-assert/files/autoload.php8
-rw-r--r--dev-php/webmozart-assert/metadata.xml11
-rw-r--r--dev-php/webmozart-assert/webmozart-assert-1.2.0.ebuild26
4 files changed, 49 insertions, 0 deletions
diff --git a/dev-php/webmozart-assert/Manifest b/dev-php/webmozart-assert/Manifest
new file mode 100644
index 000000000000..86a452e5e040
--- /dev/null
+++ b/dev-php/webmozart-assert/Manifest
@@ -0,0 +1,4 @@
+AUX autoload.php 248 SHA256 c3218dfd59e8cf9f5045691cae9dc3c9d63a3a144cb4d9e51a699bca4b88b621 SHA512 3fcb244b4801ae29b4972d3e1008570f2bd392339539d0d6cff465b0724f9df581935a0d2e2ad4369bf7350678e24d624ec63a2ce966ded0cb4f60d5c02becbd WHIRLPOOL 50f7800767412deb7f5dab264f124aa4eb089d8c73f696206d2ec5c9c8725e33435b1b07138cf0cfd022a9967b56cc42bc3c4df0bb7aea842ec21413aafcd521
+DIST webmozart-assert-1.2.0.tar.gz 11866 SHA256 95bd88f5db9e083093e72afcad69bfafca080c55c60b534d55ea883d2e03517d SHA512 36bae648cfe5bbd258d738574a820ea3de2e95b59700d556dd5eadbb1657bc09a7e73000e3436d020e060ecd2a99944199795f315a278acbeeea90570b0a4a22 WHIRLPOOL 0e8e220c1bf579206df3a2f75bdbc4ad3c5938e816127db013e464d0a0b596e7357014c5516c9cc64fa7a201ac4a320087724395cf326590b227173cda808ed9
+EBUILD webmozart-assert-1.2.0.ebuild 665 SHA256 ce565803d6ed60ffc5ff54bb5427b0a288f3e4a1c1e3817d0ff082b067f6a772 SHA512 48aeeb3c8271335b0ff5b7c2a50f7ec9870a625e25bfcdc42193fded667ec055ed39b71c0ac5b1dd36091b4862eb4a3fb47a652f53367249154c81ab5e426987 WHIRLPOOL da978be55827aa16c118d1169451ab3dc801e3b65797db8149946d55898bb707bc1617dd8a024434b2ca7d30b3ddf8820beed9e85613f66fcbc8ee5e648769b8
+MISC metadata.xml 314 SHA256 04e86c0c90a0ce8e4011e91e8f2d9937e40a576709004e7b501459a3ad2f883a SHA512 fad867b572c3a97beb2cc361fccb6cbfe6ca7c9bd421937c99783f25287cd2017df54b8d7b5f067a1f65528d3bb284140a9decc3701e2ef753cf6eaa4c2511a1 WHIRLPOOL 4a4e9294d02dc06baa395065460f7f97a7d83382d96001be2dd5b30391b0f94523548c3f738d30f167dce960606b20ed15595b565d30627e66fd0a65a0775166
diff --git a/dev-php/webmozart-assert/files/autoload.php b/dev-php/webmozart-assert/files/autoload.php
new file mode 100644
index 000000000000..45ece0641b6b
--- /dev/null
+++ b/dev-php/webmozart-assert/files/autoload.php
@@ -0,0 +1,8 @@
+<?php
+/* Autoloader for dev-php/webmozart-assert */
+
+if (!class_exists('Fedora\\Autoloader\\Autoload', false)) {
+ require_once '/usr/share/php/Fedora/Autoloader/autoload.php';
+}
+
+Fedora\Autoloader\Autoload::addPsr4('Webmozart\\Assert\\', __DIR__);
diff --git a/dev-php/webmozart-assert/metadata.xml b/dev-php/webmozart-assert/metadata.xml
new file mode 100644
index 000000000000..9e8b6de4665e
--- /dev/null
+++ b/dev-php/webmozart-assert/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">webmozart/</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-php/webmozart-assert/webmozart-assert-1.2.0.ebuild b/dev-php/webmozart-assert/webmozart-assert-1.2.0.ebuild
new file mode 100644
index 000000000000..afa1948d8ffd
--- /dev/null
+++ b/dev-php/webmozart-assert/webmozart-assert-1.2.0.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+MY_PN="${PN/webmozart-//}"
+
+DESCRIPTION="Assertions to validate method input/output with nice error messages"
+HOMEPAGE="https://github.com/webmozart/assert"
+SRC_URI="https://github.com/webmozart/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+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/Webmozart/Assert
+ doins -r src/*
+ doins "${FILESDIR}/autoload.php"
+}