Skip to content

Commit

Permalink
dev-php/PEAR-HTML_Template_Flexy: Version bump including PHP7 fixes
Browse files Browse the repository at this point in the history
Package-Manager: Portage-2.3.5, Repoman-2.3.2
  • Loading branch information
Brian Evans committed Apr 24, 2017
1 parent 798fcf4 commit 48e2f44
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 0 deletions.
1 change: 1 addition & 0 deletions dev-php/PEAR-HTML_Template_Flexy/Manifest
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
DIST HTML_Template_Flexy-1.3.12.tgz 201627 SHA256 72bc9f976fc161ede90fefd0d83ecc4551d7c339bcd0f95ebfdc663fe1c0bc75 SHA512 ef3c957502f2874560affbc95fdbd8474f714ce1d5d0672189c7ec74b2daeca79621504f57dffd25a924a09e4e295a5975b7c3ce2b182a648081b3b1454f9b26 WHIRLPOOL ca1fedc835518c9d8078fbf901e443fdeece2c7fc3d53a2a357722b60acc4d569339864537d92dc39566b9f8fb71fc544d3698971bc0a1bccf80275059d1be0d
DIST HTML_Template_Flexy-1.3.13.tgz 213779 SHA256 99cd9c5d02d3b51f239095c617a16daa96561f4ff1780879d4f7037aaeb52ba6 SHA512 c99257c6f5451dbd2176251295f425950e359b2c0e76c1627718b4306ac12417eee697882250b4b5571397d8e47d6b3110770d66ebc91d021cb66064b86b5ad2 WHIRLPOOL a1eb4d1af88c92ba449474c9d1cb61b59ae6c9d10875feeea564ff8acc15e3af9573223903e38ad3ec02971a06de91066718d6f1c1b244c96d691cde1f682270
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6

inherit php-pear-r2

DESCRIPTION="An extremely powerful Tokenizer driven Template engine"
LICENSE="PHP-2.02"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
IUSE="minimal"
RDEPEND="!minimal? ( >=dev-php/PEAR-HTML_Javascript-1.1.0-r1
dev-php/PEAR-File_Gettext )"

src_prepare() {
local PATCHES=( "${FILESDIR}/${PV}-postrelease-fixes.patch" )
default
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
--- a/HTML/Template/Flexy.php 2016/05/26 03:59:27 339237
+++ a/HTML/Template/Flexy.php 2016/05/26 04:01:15 339238
@@ -241,7 +241,7 @@
* @param array $options (Optional)
*/

- function HTML_Template_Flexy( $options=array() )
+ function __construct( $options=array() )
{

$baseoptions = array();
@@ -288,6 +288,7 @@
$ret = false;
foreach ($dirs as $tmplDir) {
if (@!file_exists($tmplDir . DIRECTORY_SEPARATOR .$file)) {
+ $this->debug("skip no file: $tmplDir/$file");
continue;
}

@@ -296,10 +297,12 @@
"<BR>{$this->currentTemplate }<BR>{$tmplDir}" . DIRECTORY_SEPARATOR . $file,
HTML_TEMPLATE_FLEXY_ERROR_INVALIDARGS , HTML_TEMPLATE_FLEXY_ERROR_DIE);
}
-
+ $this->debug("found file: $tmplDir/$file");
$ret = $tmplDir;

}
+ $this->debug("using file: $ret/$file");
+
return $ret;

}
--- a/HTML/Template/Flexy/Compiler.php 2015/03/02 22:50:57 336027
+++ a/HTML/Template/Flexy/Compiler.php 2016/05/26 04:01:15 339238
@@ -90,7 +90,7 @@
* @return string to compile (if not using a file as the source)
* @access public
*/
- function compile(&$flexy,$string = false)
+ function compile($flexy,$string = false)
{
echo "No compiler implemented!";
}
--- a/HTML/Template/Flexy/Element.php 2016/05/26 03:59:27 339237
+++ a/HTML/Template/Flexy/Element.php 2016/05/26 04:01:15 339238
@@ -127,7 +127,7 @@
* or HTML attributes name="value" pairs
* @access public
*/
- function HTML_Template_Flexy_Element($tag='', $attributes=null)
+ function __construct($tag='', $attributes=null)
{

$this->tag = strtolower($tag);

0 comments on commit 48e2f44

Please sign in to comment.