summaryrefslogtreecommitdiff
path: root/dev-php/phptal
diff options
context:
space:
mode:
Diffstat (limited to 'dev-php/phptal')
-rw-r--r--dev-php/phptal/Manifest3
-rw-r--r--dev-php/phptal/metadata.xml8
-rw-r--r--dev-php/phptal/phptal-1.3.1.ebuild35
3 files changed, 46 insertions, 0 deletions
diff --git a/dev-php/phptal/Manifest b/dev-php/phptal/Manifest
new file mode 100644
index 000000000000..fa28599243ac
--- /dev/null
+++ b/dev-php/phptal/Manifest
@@ -0,0 +1,3 @@
+DIST phptal-1.3.1.tar.gz 272883 BLAKE2B 4914b8bb40464f22417fd7ed7dbf88709b95b69a69a905a5152ff640dd5af6af2be7c7d67a622d78029e4075b6b19d8d1bf537a4a6ccc0c97260e5183a961ecd SHA512 74856cbeab3f8d9d552bcb7275a0180fd25e7703230c90e4343fbe9be4001118b091fabbace89efa98a8bf0344f46edf36c4ba709ed0e9b040b82204ea3b7290
+EBUILD phptal-1.3.1.ebuild 808 BLAKE2B 28f94a4cfbef459c5a6b4cd2362529e358f692c346c46481f37757fd5d9d6112a6528ce77bde166e87d02242c19e73ed997bcdeb80c6b082e07f0ed84e4658e3 SHA512 cbc0477ffd9e5288df3bfcd374fcc9f4187730cf284fbc4d930be38134d34a201302abec8fc1d9f2428ef6d0af36c21d96df2811b1d150c88a8c171513dc52ba
+MISC metadata.xml 245 BLAKE2B 7d88a41bb224d6e6c8bc6ed766d24c4141ff7079307fc4e2dadd0d2300b565f5d8332f5a61ad49896af208f136f102bbfedb7b1f61241a82f21cbb6b0d9cc7e9 SHA512 81a613ac5d1bbcb88aad55e16c2b878dcc3a985a8c0d3b802a302067d94c3f878fa8b10aa4804a799a4180464b523eac2ee1bd6547d8baca8647e1e5cce38897
diff --git a/dev-php/phptal/metadata.xml b/dev-php/phptal/metadata.xml
new file mode 100644
index 000000000000..04d9b1663bd1
--- /dev/null
+++ b/dev-php/phptal/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/phptal/phptal-1.3.1.ebuild b/dev-php/phptal/phptal-1.3.1.ebuild
new file mode 100644
index 000000000000..f5ab86bdfd82
--- /dev/null
+++ b/dev-php/phptal/phptal-1.3.1.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PHP_LIB_NAME="PHPTAL"
+
+DESCRIPTION="A templating engine for PHP5 that implements Zope Page Templates syntax"
+HOMEPAGE="https://phptal.org/"
+SRC_URI="https://github.com/${PN}/${PHP_LIB_NAME}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+RDEPEND="dev-lang/php:*"
+DEPEND="test? ( ${RDEPEND} dev-php/phpunit )"
+
+S="${WORKDIR}/${PHP_LIB_NAME}-${PV}"
+
+src_compile() { :; }
+
+src_install() {
+ insinto /usr/share/php/${PN}
+ doins -r "classes/${PHP_LIB_NAME}"
+ doins classes/PHPTAL.php tools/phptal_lint.php
+
+ dodoc README.md
+}
+
+src_test() {
+ [[ -z $(locale -a |grep en_GB) ]] && ewarn "Tests require en_GB locale to complete"
+ phpunit || die
+}