forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev-php/Savant3: new revision with a new (github) SRC_URI.
The previous revision was based on our PEAR eclass which is getting long in the tooth. And upstream's PEAR channel has died, also bad; fortunately the sources for v3.0.1 are still available on github. The new revision uses a github commit tarball as SRC_URI, and installs the package manually (i.e. without PEAR). This allows us to use EAPI=6, and get the test suite working. Gentoo-Bug: 551002 Package-Manager: portage-2.2.28
- Loading branch information
Showing
4 changed files
with
46 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
DIST Savant3-3.0.1.tgz 21574 SHA256 38d764fb86148c9edf3316ac17b1e9226103f09a2477691565bdf0cba38a9f0a SHA512 97eb888da01b2b77da274c3e4a3c764cfc656fce6c7507006fb6cf294acf05e84ec63a7866b53c334a65d3fb82d25a0b52e20fb7d07c2f3cb872f0801e4936b0 WHIRLPOOL a5ea3955684383d02862a3fa48eeb2832dab029384851181a3cf3494299e1fd8ce6d032efc1bb8adde9655501cbc5d902d0a58e8d3843b2eeedf94f65c959721 | ||
DIST f3b4b70422bc743168d8e01443abc385d8acbef9.tar.gz 21921 SHA256 514359c8e831523b39b90c546cb09f8724ba2c925ab55b85a42666f403da5cd1 SHA512 77966146aed2a909005f0d103b27bc3b389e5edc63cc4090d8267dec4b42c96f65939752860f3833bb7f2255a9d1e9fc280d593916c9456b2590ccff0324ff89 WHIRLPOOL 260cc264407b0b9bbac7a70f129d13f5211b6181ccddff873a20559e8644624021ee24ef3301151e2cb46cf84f80459e19c93e1546de352b78fb341f9f6b7819 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Copyright 1999-2016 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | ||
# $Id$ | ||
|
||
EAPI=6 | ||
|
||
KEYWORDS="~amd64 ~x86" | ||
|
||
DESCRIPTION="The simple PHP template alternative to Smarty" | ||
HOMEPAGE="https://github.com/saltybeagle/Savant3" | ||
|
||
# This is the last commit before the Composer integration broke | ||
# everything. | ||
COMMIT=f3b4b70422bc743168d8e01443abc385d8acbef9 | ||
SRC_URI="https://github.com/saltybeagle/Savant3/archive/${COMMIT}.tar.gz" | ||
LICENSE="LGPL-2.1" | ||
SLOT="0" | ||
IUSE="minimal test" | ||
|
||
DEPEND="test? ( dev-php/phpunit )" | ||
RDEPEND="dev-lang/php:* | ||
!minimal? ( >=dev-php/Savant3-Plugin-Form-0.2.1 )" | ||
|
||
S="${WORKDIR}/${PN}-${COMMIT}" | ||
|
||
src_install() { | ||
dodoc README.md | ||
insinto /usr/share/php/ | ||
doins "${PN}.php" | ||
doins -r "${PN}" | ||
} | ||
|
||
src_test() { | ||
cd tests && phpunit . || die "test suite failed" | ||
} | ||
|
||
pkg_postinst() { | ||
elog "${PN} has been installed in /usr/share/php/." | ||
elog | ||
elog "To use it in your scripts, include the ${PN}.php file." | ||
elog "For example," | ||
elog | ||
elog " require('${PN}.php');" | ||
elog | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.