Gentoo Archives: gentoo-commits

From: Brian Evans <grknight@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-php/phptal/
Date: Wed, 25 Apr 2018 18:42:21
Message-Id: 1524681722.b7bd7286903ae9df7835452883598ba446e3282c.grknight@gentoo
1 commit: b7bd7286903ae9df7835452883598ba446e3282c
2 Author: Brian Evans <grknight <AT> gentoo <DOT> org>
3 AuthorDate: Wed Apr 25 18:25:33 2018 +0000
4 Commit: Brian Evans <grknight <AT> gentoo <DOT> org>
5 CommitDate: Wed Apr 25 18:42:02 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b7bd7286
7
8 dev-php/phptal: Version bump to 1.3.1
9
10 Package-Manager: Portage-2.3.31, Repoman-2.3.9
11
12 dev-php/phptal/Manifest | 1 +
13 dev-php/phptal/phptal-1.3.1.ebuild | 35 +++++++++++++++++++++++++++++++++++
14 2 files changed, 36 insertions(+)
15
16 diff --git a/dev-php/phptal/Manifest b/dev-php/phptal/Manifest
17 index e986e5a817a..065e2d09aaa 100644
18 --- a/dev-php/phptal/Manifest
19 +++ b/dev-php/phptal/Manifest
20 @@ -1 +1,2 @@
21 DIST PHPTAL-1.2.2.tar.gz 163248 BLAKE2B d0b48a5131a4567eb058e6c3395bdfff7d0e9535dae036616dbfcb11564ce9db07bec8a77ee3201dcaff7a0bcdbb451b4d7443307d6092ba81d35b849f05603f SHA512 7af41180bccbc81481a48f474b1d2c811ba678706f85045611ff1e69c3ee820e27e6cf17ea58ec562120dcdaae1cf3d91f606a13b5c262906ceba7570b092d9b
22 +DIST phptal-1.3.1.tar.gz 272883 BLAKE2B 4914b8bb40464f22417fd7ed7dbf88709b95b69a69a905a5152ff640dd5af6af2be7c7d67a622d78029e4075b6b19d8d1bf537a4a6ccc0c97260e5183a961ecd SHA512 74856cbeab3f8d9d552bcb7275a0180fd25e7703230c90e4343fbe9be4001118b091fabbace89efa98a8bf0344f46edf36c4ba709ed0e9b040b82204ea3b7290
23
24 diff --git a/dev-php/phptal/phptal-1.3.1.ebuild b/dev-php/phptal/phptal-1.3.1.ebuild
25 new file mode 100644
26 index 00000000000..f5ab86bdfd8
27 --- /dev/null
28 +++ b/dev-php/phptal/phptal-1.3.1.ebuild
29 @@ -0,0 +1,35 @@
30 +# Copyright 1999-2018 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=6
34 +
35 +PHP_LIB_NAME="PHPTAL"
36 +
37 +DESCRIPTION="A templating engine for PHP5 that implements Zope Page Templates syntax"
38 +HOMEPAGE="https://phptal.org/"
39 +SRC_URI="https://github.com/${PN}/${PHP_LIB_NAME}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
40 +
41 +LICENSE="LGPL-2.1"
42 +SLOT="0"
43 +KEYWORDS="~amd64 ~x86"
44 +IUSE="test"
45 +
46 +RDEPEND="dev-lang/php:*"
47 +DEPEND="test? ( ${RDEPEND} dev-php/phpunit )"
48 +
49 +S="${WORKDIR}/${PHP_LIB_NAME}-${PV}"
50 +
51 +src_compile() { :; }
52 +
53 +src_install() {
54 + insinto /usr/share/php/${PN}
55 + doins -r "classes/${PHP_LIB_NAME}"
56 + doins classes/PHPTAL.php tools/phptal_lint.php
57 +
58 + dodoc README.md
59 +}
60 +
61 +src_test() {
62 + [[ -z $(locale -a |grep en_GB) ]] && ewarn "Tests require en_GB locale to complete"
63 + phpunit || die
64 +}