summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Evans <grknight@gentoo.org>2019-08-26 09:37:27 -0400
committerBrian Evans <grknight@gentoo.org>2019-08-26 09:37:27 -0400
commit147ff3d952aeea19a822f42ba2805e980d696735 (patch)
tree7d65d3bf828d27d052690e34c9c617ede568ff18 /dev-php/twig/twig-1.40.1.ebuild
parentdev-php/twig: Version bump for 1.42.3 (diff)
downloadgentoo-147ff3d952aeea19a822f42ba2805e980d696735.tar.gz
gentoo-147ff3d952aeea19a822f42ba2805e980d696735.tar.bz2
gentoo-147ff3d952aeea19a822f42ba2805e980d696735.zip
dev-php/twig: Drop old versions which include the extension
PHP 5.6 is EOL and the extension needs to go away PHP team is planning on masking 5.6 2019-10-01 Package-Manager: Portage-2.3.72, Repoman-2.3.17 Signed-off-by: Brian Evans <grknight@gentoo.org>
Diffstat (limited to 'dev-php/twig/twig-1.40.1.ebuild')
-rw-r--r--dev-php/twig/twig-1.40.1.ebuild87
1 files changed, 0 insertions, 87 deletions
diff --git a/dev-php/twig/twig-1.40.1.ebuild b/dev-php/twig/twig-1.40.1.ebuild
deleted file mode 100644
index 0903fb3e789b..000000000000
--- a/dev-php/twig/twig-1.40.1.ebuild
+++ /dev/null
@@ -1,87 +0,0 @@
-# Copyright 1999-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-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 eutils 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_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.
- epatch "${FILESDIR}/${PV}-autoloader-path.patch"
- 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}/lib"
- doins -r lib/"${MY_PN}"/*
- insinto "/usr/share/php/${MY_PN}/src"
- doins -r src/*
- insinto "/usr/share/php/${MY_PN}"
- dosym "lib/Autoloader.php" "/usr/share/php/${MY_PN}/Autoloader.php"
-
- # 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."
-}