From 12652e3059077d0b923c124f57f3dfacaa20aa8d Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Wed, 25 Jan 2017 09:43:44 -0500 Subject: dev-php/twig: new version 1.31.0. Package-Manager: portage-2.3.0 --- dev-php/twig/Manifest | 2 +- dev-php/twig/twig-1.29.0-r1.ebuild | 92 -------------------------------------- dev-php/twig/twig-1.31.0.ebuild | 92 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 93 insertions(+), 93 deletions(-) delete mode 100644 dev-php/twig/twig-1.29.0-r1.ebuild create mode 100644 dev-php/twig/twig-1.31.0.ebuild (limited to 'dev-php') diff --git a/dev-php/twig/Manifest b/dev-php/twig/Manifest index 382ee66556b9..8db95817800d 100644 --- a/dev-php/twig/Manifest +++ b/dev-php/twig/Manifest @@ -1 +1 @@ -DIST twig-1.29.0.tar.gz 240051 SHA256 ca9823ae05a1d4225d0197590735116984da4473173db52a7d590a572a9b054e SHA512 ba6fabb5d8be89f045763ed491ca78e2df4af34f3903271b1f974ecb444d96c1ccd6dff983e900a9b482629b50f59c62d2172089bd30f7ffe80fd83fc10c97ff WHIRLPOOL 3f212cd794e75f022e7a4f3e2730dd322baa9e91ca0dfba41da7b5a39d02285d76b377eb18ba11210a77eca00b1fbc1d6a086fdaec90925a08d752434a92b3cf +DIST twig-1.31.0.tar.gz 242247 SHA256 b4e6d00466a60aa21b165786829b39ed74a1b41810bade3b0f11bbdefa6cda23 SHA512 c8c25139b2568d40c9d1b14d8f489047abe13b1598c9d3292ddd3898a685ac69ede00a516c12c4f22805314fca4712991cd27e39dd9c4f57e5576f86e2746401 WHIRLPOOL ce2d15de20c857008aba172601aa3f46fe04b809c39247bac119b5c4c98027be7d42b37aa96c3eba930a27ef079281792a8124f479b9864a8156e1a8999aab29 diff --git a/dev-php/twig/twig-1.29.0-r1.ebuild b/dev-php/twig/twig-1.29.0-r1.ebuild deleted file mode 100644 index 55c86754ba10..000000000000 --- a/dev-php/twig/twig-1.29.0-r1.ebuild +++ /dev/null @@ -1,92 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=6 - -MY_PN="Twig" -USE_PHP="php5-6" -S="${WORKDIR}/${MY_PN}-${PV}" -PHP_EXT_S="${S}/ext/${PN}" -PHP_EXT_NAME="${PN}" -PHP_EXT_OPTIONAL_USE="extension" - -inherit php-ext-source-r3 - -DESCRIPTION="PHP templating engine with syntax similar to Django" -HOMEPAGE="http://twig.sensiolabs.org/" -SRC_URI="https://github.com/twigphp/${MY_PN}/archive/v${PV}.tar.gz - -> ${P}.tar.gz" -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="doc extension test" - -DEPEND="test? ( dev-php/phpunit )" - -# We always require *some* version of PHP; the eclass (conditionally) -# requires *specific* versions. -RDEPEND="dev-lang/php" - -src_unpack() { - # Don't make copies of the source tree if they won't be used. - if use extension; then - php-ext-source-r3_src_unpack - else - default - fi -} - -src_prepare(){ - # We need to call eapply_user ourselves, because it may be skipped - # if either the "extension" USE flag is not set, or if the user's - # PHP_TARGETS is essentially empty (does not contain "php5-6"). In - # the latter case, the eclass src_prepare does nothing. We only call - # the eclass phase conditionally because the correct version of - # e.g. "phpize" may not be there unless USE=extension is set. - eapply_user - use extension && php-ext-source-r3_src_prepare -} - -src_configure() { - # The eclass phase will try to run the ./configure script even if it - # doesn't exist (in contrast to the default src_configure), so we - # need to skip it if the eclass src_prepare (that creates said - # script) is not run. - use extension && php-ext-source-r3_src_configure -} - -src_compile() { - # Avoids the same problem as in src_configure. - use extension && php-ext-source-r3_src_compile -} - -src_install(){ - use extension && php-ext-source-r3_src_install - - cd "${S}" || die - # The autoloader requires the 'T' in "Twig" capitalized. - insinto "/usr/share/php/${MY_PN}" - doins -r lib/"${MY_PN}"/* - - # The eclass src_install calls einstalldocs, so we may install a few - # files twice. Doing so should be harmless. - dodoc README.rst CHANGELOG - - # This installs the reStructuredText source documents. There's got - # to be some way to turn them into HTML using Sphinx, but upstream - # doesn't provide for it. - use doc && dodoc -r doc -} - -src_test(){ - phpunit --bootstrap test/bootstrap.php || die "test suite failed" -} - -pkg_postinst(){ - elog "${PN} has been installed in /usr/share/php/${MY_PN}/." - elog "To use it in a script, require('${MY_PN}/Autoloader.php')," - elog "and then run \"Twig_Autoloader::register();\". Most of" - elog "the examples in the documentation should work without" - elog "further modification." -} diff --git a/dev-php/twig/twig-1.31.0.ebuild b/dev-php/twig/twig-1.31.0.ebuild new file mode 100644 index 000000000000..55c86754ba10 --- /dev/null +++ b/dev-php/twig/twig-1.31.0.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +MY_PN="Twig" +USE_PHP="php5-6" +S="${WORKDIR}/${MY_PN}-${PV}" +PHP_EXT_S="${S}/ext/${PN}" +PHP_EXT_NAME="${PN}" +PHP_EXT_OPTIONAL_USE="extension" + +inherit php-ext-source-r3 + +DESCRIPTION="PHP templating engine with syntax similar to Django" +HOMEPAGE="http://twig.sensiolabs.org/" +SRC_URI="https://github.com/twigphp/${MY_PN}/archive/v${PV}.tar.gz + -> ${P}.tar.gz" +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc extension test" + +DEPEND="test? ( dev-php/phpunit )" + +# We always require *some* version of PHP; the eclass (conditionally) +# requires *specific* versions. +RDEPEND="dev-lang/php" + +src_unpack() { + # Don't make copies of the source tree if they won't be used. + if use extension; then + php-ext-source-r3_src_unpack + else + default + fi +} + +src_prepare(){ + # We need to call eapply_user ourselves, because it may be skipped + # if either the "extension" USE flag is not set, or if the user's + # PHP_TARGETS is essentially empty (does not contain "php5-6"). In + # the latter case, the eclass src_prepare does nothing. We only call + # the eclass phase conditionally because the correct version of + # e.g. "phpize" may not be there unless USE=extension is set. + eapply_user + use extension && php-ext-source-r3_src_prepare +} + +src_configure() { + # The eclass phase will try to run the ./configure script even if it + # doesn't exist (in contrast to the default src_configure), so we + # need to skip it if the eclass src_prepare (that creates said + # script) is not run. + use extension && php-ext-source-r3_src_configure +} + +src_compile() { + # Avoids the same problem as in src_configure. + use extension && php-ext-source-r3_src_compile +} + +src_install(){ + use extension && php-ext-source-r3_src_install + + cd "${S}" || die + # The autoloader requires the 'T' in "Twig" capitalized. + insinto "/usr/share/php/${MY_PN}" + doins -r lib/"${MY_PN}"/* + + # The eclass src_install calls einstalldocs, so we may install a few + # files twice. Doing so should be harmless. + dodoc README.rst CHANGELOG + + # This installs the reStructuredText source documents. There's got + # to be some way to turn them into HTML using Sphinx, but upstream + # doesn't provide for it. + use doc && dodoc -r doc +} + +src_test(){ + phpunit --bootstrap test/bootstrap.php || die "test suite failed" +} + +pkg_postinst(){ + elog "${PN} has been installed in /usr/share/php/${MY_PN}/." + elog "To use it in a script, require('${MY_PN}/Autoloader.php')," + elog "and then run \"Twig_Autoloader::register();\". Most of" + elog "the examples in the documentation should work without" + elog "further modification." +} -- cgit v1.2.3-65-gdbad