# Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=5 MY_P="Smarty-${PV}" DOC_PV="3.1.14" DESCRIPTION="A template engine for PHP" HOMEPAGE="http://www.smarty.net/" SRC_URI="http://www.smarty.net/files/${MY_P}.tar.gz doc? ( http://www.smarty.net/files/docs/manual-en.${DOC_PV}.zip )" LICENSE="LGPL-3" SLOT="0" KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" IUSE="doc" DEPEND="doc? ( app-arch/unzip )" RDEPEND="dev-lang/php[unicode]" S="${WORKDIR}/${MY_P}" src_install() { insinto "/usr/share/php/${PN}" doins -r libs/* dodoc *.txt README use doc && dohtml -r "${WORKDIR}/manual-en/"* } 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.' }