diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-04-04 05:21:45 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-04-04 05:21:45 +0100 |
commit | 41e5b5c1f11820df590e0a245bbddf224bc07823 (patch) | |
tree | fa24fa74d0d74130c20b3e25b975b21773018e0a /dev-php/smarty/smarty-4.3.1.ebuild | |
parent | 979898cb45139dd0e6727a01df15b602f74a8dd3 (diff) |
gentoo auto-resync : 04:04:2023 - 05:21:44
Diffstat (limited to 'dev-php/smarty/smarty-4.3.1.ebuild')
-rw-r--r-- | dev-php/smarty/smarty-4.3.1.ebuild | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/dev-php/smarty/smarty-4.3.1.ebuild b/dev-php/smarty/smarty-4.3.1.ebuild new file mode 100644 index 000000000000..0c5a425bf052 --- /dev/null +++ b/dev-php/smarty/smarty-4.3.1.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="A template engine for PHP" +HOMEPAGE="https://www.smarty.net/ https://github.com/smarty-php/smarty/" +SRC_URI="https://github.com/smarty-php/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="LGPL-3" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="doc examples" + +# PHP unicode support is detected at runtime, and the cached templates +# that smarty generates depend on it. If, later on, PHP is reinstalled +# without unicode support, all of the previously-generated cached +# templates will begin to throw 500 errrors for missing mb_foo +# functions. See bug #532618. +RDEPEND="dev-lang/php:*[unicode]" + +src_prepare() { + default + + # Prepare the docs and examples for easy dodocing. + rm docs/_config.yml || die + mv -v demo examples || die +} + +src_install() { + insinto "/usr/share/php/${PN}" + doins -r libs/* + + local DOCS=( CHANGELOG.md README.md SECURITY.md ) + + use doc && dodoc -r docs/* + use examples && dodoc -r examples + einstalldocs +} + +pkg_postinst() { + elog "${PN} has been installed in /usr/share/php/${PN}/." + elog + elog 'To use it in your scripts, include the Smarty.class.php file' + elog "from the \"${PN}\" directory; for example," + elog + elog " require('${PN}/Smarty.class.php');" + elog + elog 'After that, the Smarty class will be available to you.' +} |