Sync with overlay.
authorLuca Longinotti <chtekk@gentoo.org>
Thu, 24 Nov 2005 12:26:46 +0000 (12:26 +0000)
committerLuca Longinotti <chtekk@gentoo.org>
Thu, 24 Nov 2005 12:26:46 +0000 (12:26 +0000)
Package-Manager: portage-2.0.53_rc7

dev-php/smarty/ChangeLog
dev-php/smarty/files/digest-smarty-2.6.10-r1 [new file with mode: 0644]
dev-php/smarty/metadata.xml
dev-php/smarty/smarty-2.6.10-r1.ebuild [new file with mode: 0644]

index cfce4c469c8b244f1731378d51350c6dc565014a..c94bff728e90531e16f687d24bd4a4ca41b8f02a 100644 (file)
@@ -1,6 +1,11 @@
 # ChangeLog for dev-php/smarty
 # Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-php/smarty/ChangeLog,v 1.41 2005/11/22 19:23:04 blubb Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-php/smarty/ChangeLog,v 1.42 2005/11/24 12:26:46 chtekk Exp $
+
+*smarty-2.6.10-r1 (24 Nov 2005)
+
+  24 Nov 2005; Luca Longinotti <chtekk@gentoo.org> +smarty-2.6.10-r1.ebuild:
+  Add smarty for new-style PHP from the PHP overlay.
 
   22 Nov 2005; Simon Stelling <blubb@gentoo.org> smarty-2.6.10.ebuild:
   stable on amd64
diff --git a/dev-php/smarty/files/digest-smarty-2.6.10-r1 b/dev-php/smarty/files/digest-smarty-2.6.10-r1
new file mode 100644 (file)
index 0000000..426908c
--- /dev/null
@@ -0,0 +1 @@
+MD5 0c31105a157547bafcff8c13bb64c6a3 Smarty-2.6.10.tar.gz 142846
index a0578bae9b811a62dd796786d57dd45db39ee944..463b3d5a03ed3b3b63e721b89a8bd82d0bc6b201 100644 (file)
@@ -1,9 +1,9 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
-<herd>php</herd>
-<maintainer>
-  <email>tomk@gentoo.org</email>
-  <name>Tom Knight</name>
-</maintainer>
+       <herd>php</herd>
+       <maintainer>
+               <email>tomk@gentoo.org</email>
+               <name>Tom Knight</name>
+       </maintainer>
 </pkgmetadata>
diff --git a/dev-php/smarty/smarty-2.6.10-r1.ebuild b/dev-php/smarty/smarty-2.6.10-r1.ebuild
new file mode 100644 (file)
index 0000000..aa7b40e
--- /dev/null
@@ -0,0 +1,39 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-php/smarty/smarty-2.6.10-r1.ebuild,v 1.1 2005/11/24 12:26:46 chtekk Exp $
+
+PHP_LIB_NAME="Smarty"
+
+inherit php-lib-r1
+
+DESCRIPTION="A template engine for PHP."
+HOMEPAGE="http://smarty.php.net/"
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
+IUSE="doc"
+
+DEPEND="doc? ( dev-php/smarty-docs )"
+
+MY_P="${PHP_LIB_NAME}-${PV}"
+SRC_URI="http://smarty.php.net/distributions/${MY_P}.tar.gz"
+S="${WORKDIR}/${MY_P}"
+
+need_php_by_category
+
+src_install() {
+       dodoc-php [A-Z]*
+       php-lib-r1_src_install ./libs `find ./libs -type f -print | sed -e "s|./libs||g"`
+}
+
+pkg_postinst() {
+       einfo "${PHP_LIB_NAME} has been installed in /usr/share/php/Smarty/."
+       einfo "To use it in your scripts, either"
+       einfo "1. define('SMARTY_DIR', \"/usr/share/php/Smarty/\") in your scripts, or"
+       einfo "2. add '/usr/share/php/Smarty/' to the 'include_path' variable in your"
+       einfo "php.ini file under /etc/php/SAPI (where SAPI is one of apache-php[45],"
+       einfo "cgi-php[45] or cli-php[45])."
+       echo
+       einfo "If you're upgrading from a version < 2.6.6 make sure to clear out your"
+       einfo "templates_c and cache directories as some include paths have changed!"
+}