You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-php/smarty/smarty-3.0.7.ebuild

47 lines
1.5 KiB

# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-php/smarty/smarty-3.0.7.ebuild,v 1.1 2011/02/12 01:51:45 tomk Exp $
inherit php-lib-r1 eutils versionator
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
MY_P="Smarty-${PV}"
MAJOR_PV=$(get_version_component_range 1-2)
DESCRIPTION="A template engine for PHP."
HOMEPAGE="http://www.smarty.net/"
SRC_URI="http://www.smarty.net/files/${MY_P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
IUSE="doc"
DEPEND=">=dev-lang/php-5.2"
RDEPEND="${DEPEND}"
PDEPEND="doc? ( =dev-php/smarty-docs-${MAJOR_PV} )"
S="${WORKDIR}/${MY_P}"
need_php_by_category
src_install() {
dodoc-php README SMARTY2_BC_NOTES
php-lib-r1_src_install ./libs `find ./libs -type f -print | sed -e "s|./libs||g"`
}
pkg_postinst() {
elog "${PHP_LIB_NAME} has been installed in /usr/share/php/${PHP_LIB_NAME}/."
elog "To use it in your scripts, either"
elog "1. define('SMARTY_DIR', \"/usr/share/php/${PHP_LIB_NAME}/\") in your scripts, or"
elog "2. add '/usr/share/php/${PHP_LIB_NAME}/' to the 'include_path' variable in your"
elog "php.ini file under /etc/php/SAPI (where SAPI is e.g apache2-php5.3,"
elog "cgi-php5.3, etc)."
elog
elog "If you're upgrading from a previous version make sure to clear out your"
elog "templates_c and cache directories as some include paths have changed!"
elog
elog "If you are upgrading from smarty 2 you should read the SMARTY2_BC_NOTES file"
elog "in /usr/share/doc/${CATEGORY}/${PF}"
}