1 |
commit: 4883851d63b638ef2131e846ed757561f12307f1 |
2 |
Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jul 12 14:41:34 2016 +0000 |
4 |
Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jul 12 14:54:06 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4883851d |
7 |
|
8 |
dev-php/Savant3: new revision with a new (github) SRC_URI. |
9 |
|
10 |
The previous revision was based on our PEAR eclass which is getting |
11 |
long in the tooth. And upstream's PEAR channel has died, also bad; |
12 |
fortunately the sources for v3.0.1 are still available on github. |
13 |
|
14 |
The new revision uses a github commit tarball as SRC_URI, and installs |
15 |
the package manually (i.e. without PEAR). This allows us to use |
16 |
EAPI=6, and get the test suite working. |
17 |
|
18 |
Gentoo-Bug: 551002 |
19 |
|
20 |
Package-Manager: portage-2.2.28 |
21 |
|
22 |
dev-php/Savant3/Manifest | 2 +- |
23 |
dev-php/Savant3/Savant3-3.0.1-r1.ebuild | 45 +++++++++++++++++++++++++++++++++ |
24 |
dev-php/Savant3/Savant3-3.0.1.ebuild | 19 -------------- |
25 |
dev-php/Savant3/files/channel.xml | 15 ----------- |
26 |
4 files changed, 46 insertions(+), 35 deletions(-) |
27 |
|
28 |
diff --git a/dev-php/Savant3/Manifest b/dev-php/Savant3/Manifest |
29 |
index f98c88a..339b8f7 100644 |
30 |
--- a/dev-php/Savant3/Manifest |
31 |
+++ b/dev-php/Savant3/Manifest |
32 |
@@ -1 +1 @@ |
33 |
-DIST Savant3-3.0.1.tgz 21574 SHA256 38d764fb86148c9edf3316ac17b1e9226103f09a2477691565bdf0cba38a9f0a SHA512 97eb888da01b2b77da274c3e4a3c764cfc656fce6c7507006fb6cf294acf05e84ec63a7866b53c334a65d3fb82d25a0b52e20fb7d07c2f3cb872f0801e4936b0 WHIRLPOOL a5ea3955684383d02862a3fa48eeb2832dab029384851181a3cf3494299e1fd8ce6d032efc1bb8adde9655501cbc5d902d0a58e8d3843b2eeedf94f65c959721 |
34 |
+DIST f3b4b70422bc743168d8e01443abc385d8acbef9.tar.gz 21921 SHA256 514359c8e831523b39b90c546cb09f8724ba2c925ab55b85a42666f403da5cd1 SHA512 77966146aed2a909005f0d103b27bc3b389e5edc63cc4090d8267dec4b42c96f65939752860f3833bb7f2255a9d1e9fc280d593916c9456b2590ccff0324ff89 WHIRLPOOL 260cc264407b0b9bbac7a70f129d13f5211b6181ccddff873a20559e8644624021ee24ef3301151e2cb46cf84f80459e19c93e1546de352b78fb341f9f6b7819 |
35 |
|
36 |
diff --git a/dev-php/Savant3/Savant3-3.0.1-r1.ebuild b/dev-php/Savant3/Savant3-3.0.1-r1.ebuild |
37 |
new file mode 100644 |
38 |
index 0000000..946bd7e |
39 |
--- /dev/null |
40 |
+++ b/dev-php/Savant3/Savant3-3.0.1-r1.ebuild |
41 |
@@ -0,0 +1,45 @@ |
42 |
+# Copyright 1999-2016 Gentoo Foundation |
43 |
+# Distributed under the terms of the GNU General Public License v2 |
44 |
+# $Id$ |
45 |
+ |
46 |
+EAPI=6 |
47 |
+ |
48 |
+KEYWORDS="~amd64 ~x86" |
49 |
+ |
50 |
+DESCRIPTION="The simple PHP template alternative to Smarty" |
51 |
+HOMEPAGE="https://github.com/saltybeagle/Savant3" |
52 |
+ |
53 |
+# This is the last commit before the Composer integration broke |
54 |
+# everything. |
55 |
+COMMIT=f3b4b70422bc743168d8e01443abc385d8acbef9 |
56 |
+SRC_URI="https://github.com/saltybeagle/Savant3/archive/${COMMIT}.tar.gz" |
57 |
+LICENSE="LGPL-2.1" |
58 |
+SLOT="0" |
59 |
+IUSE="minimal test" |
60 |
+ |
61 |
+DEPEND="test? ( dev-php/phpunit )" |
62 |
+RDEPEND="dev-lang/php:* |
63 |
+ !minimal? ( >=dev-php/Savant3-Plugin-Form-0.2.1 )" |
64 |
+ |
65 |
+S="${WORKDIR}/${PN}-${COMMIT}" |
66 |
+ |
67 |
+src_install() { |
68 |
+ dodoc README.md |
69 |
+ insinto /usr/share/php/ |
70 |
+ doins "${PN}.php" |
71 |
+ doins -r "${PN}" |
72 |
+} |
73 |
+ |
74 |
+src_test() { |
75 |
+ cd tests && phpunit . || die "test suite failed" |
76 |
+} |
77 |
+ |
78 |
+pkg_postinst() { |
79 |
+ elog "${PN} has been installed in /usr/share/php/." |
80 |
+ elog |
81 |
+ elog "To use it in your scripts, include the ${PN}.php file." |
82 |
+ elog "For example," |
83 |
+ elog |
84 |
+ elog " require('${PN}.php');" |
85 |
+ elog |
86 |
+} |
87 |
|
88 |
diff --git a/dev-php/Savant3/Savant3-3.0.1.ebuild b/dev-php/Savant3/Savant3-3.0.1.ebuild |
89 |
deleted file mode 100644 |
90 |
index 422e10d..0000000 |
91 |
--- a/dev-php/Savant3/Savant3-3.0.1.ebuild |
92 |
+++ /dev/null |
93 |
@@ -1,19 +0,0 @@ |
94 |
-# Copyright 1999-2015 Gentoo Foundation |
95 |
-# Distributed under the terms of the GNU General Public License v2 |
96 |
-# $Id$ |
97 |
- |
98 |
-EAPI=5 |
99 |
- |
100 |
-inherit php-pear-lib-r1 |
101 |
- |
102 |
-KEYWORDS="~amd64 ~x86" |
103 |
- |
104 |
-DESCRIPTION="The simple PHP template alternative to Smarty" |
105 |
-HOMEPAGE="http://phpsavant.com/yawiki/index.php?area=Savant3" |
106 |
-SRC_URI="http://phpsavant.com/get/${P}.tgz" |
107 |
-LICENSE="LGPL-2.1" |
108 |
-SLOT="0" |
109 |
-IUSE="minimal" |
110 |
- |
111 |
-DEPEND="" |
112 |
-RDEPEND="!minimal? ( >=dev-php/Savant3-Plugin-Form-0.2.1 )" |
113 |
|
114 |
diff --git a/dev-php/Savant3/files/channel.xml b/dev-php/Savant3/files/channel.xml |
115 |
deleted file mode 100644 |
116 |
index 13906d8..0000000 |
117 |
--- a/dev-php/Savant3/files/channel.xml |
118 |
+++ /dev/null |
119 |
@@ -1,15 +0,0 @@ |
120 |
-<?xml version="1.0" encoding="UTF-8" ?> |
121 |
-<channel version="1.0" xmlns="http://pear.php.net/channel-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pear.php.net/channel-1.0 http://pear.php.net/dtd/channel-1.0.xsd"> |
122 |
- <name>phpsavant.com</name> |
123 |
- <summary>Savant</summary> |
124 |
- <suggestedalias>savant</suggestedalias> |
125 |
- <servers> |
126 |
- <primary> |
127 |
- <rest> |
128 |
- <baseurl type="REST1.0">http://phpsavant.com/rest/</baseurl> |
129 |
- <baseurl type="REST1.1">http://phpsavant.com/rest/</baseurl> |
130 |
- <baseurl type="REST1.3">http://phpsavant.com/rest/</baseurl> |
131 |
- </rest> |
132 |
- </primary> |
133 |
- </servers> |
134 |
-</channel> |