diff options
Diffstat (limited to 'dev-php/PEAR-File_Gettext')
-rw-r--r-- | dev-php/PEAR-File_Gettext/Manifest | 3 | ||||
-rw-r--r-- | dev-php/PEAR-File_Gettext/PEAR-File_Gettext-0.4.2-r1.ebuild (renamed from dev-php/PEAR-File_Gettext/PEAR-File_Gettext-0.4.2.ebuild) | 7 | ||||
-rw-r--r-- | dev-php/PEAR-File_Gettext/files/File_Gettext-0.4.2-construct.patch | 67 |
3 files changed, 73 insertions, 4 deletions
diff --git a/dev-php/PEAR-File_Gettext/Manifest b/dev-php/PEAR-File_Gettext/Manifest index 3483329defd9..76d7d72d0710 100644 --- a/dev-php/PEAR-File_Gettext/Manifest +++ b/dev-php/PEAR-File_Gettext/Manifest @@ -1,3 +1,4 @@ +AUX File_Gettext-0.4.2-construct.patch 1999 BLAKE2B 5feac1b3c48fef5401158a06db1410878b50d28841807ea5d2f99c7c59cc51472927f9ee85f9b29deadfbe0c964f761d2fbdcfd912ceeda6a722f463370373ff SHA512 a1ca97160f3c521ba340a89c19933daba20b0c11716349b34b330fe10f5a9e924cc28fa7248efb64648ef1ffac832a16c6051723d6f76c63a03454a523a9fe6e DIST File_Gettext-0.4.2.tgz 7307 BLAKE2B f1eae4724c62a44515107a0e4cb89aa7abff8f856c5f11a90f6b78dc4e5601cc024e64e8ae0344c3433ffc5355e2dbb9d7e3cc745001ad2098a073bbca0a97da SHA512 cc56430076485d90afca548c78650a2ada4eb8df7e0a58458eded2dca222466aba91d982fb0103e6b63fc4c8140c3ac4c2a4a7c3c77fbc7740922a8b4e33c6a9 -EBUILD PEAR-File_Gettext-0.4.2.ebuild 279 BLAKE2B 9a5bab308af3bfc0e4f19af4d7d4d7a373ed7961bd436f1b757024b8b5ac25e04f6b327f265bd1bb3e3773f71acca39b8423e73b5768938c895c71f5bffd77c1 SHA512 d929610b846dd4ebae53fd37d2a2db3fc89676ea7e2982c201f48e2c049eff596fe06f4f7f352246f5495af583fc630e997ac88d2e16de44f8a00d157126ec7c +EBUILD PEAR-File_Gettext-0.4.2-r1.ebuild 338 BLAKE2B 2c1019e66b1d882a149c27c7ca77d2e3850ff2da4cde9544162310e68e7cff3f24733c03fea3a35651edf1441593dc76b3d8c71792d4fe8e36fc463e38e0f9c4 SHA512 638688b767d165d864a512f846a1823f55c6cb18b8dd6153135d391232c453b8f32d94551dfcfb6a6edc10220cfdf0d67ce9d50f9621ab88257eb1e94af9299a MISC metadata.xml 239 BLAKE2B 9b7c5dcb74289073481cf07031b7a92f32496cc1097becb074d74a8fbb8133de429ce1baf284e446e44132943c8b32e6b824570f15828588e42ea49ef5661f00 SHA512 2181b874bfe8cd31e7730d8207e26cfd2f272eaf2d1b57ae0faff126347a5298fa1c506d9107e1da9736c8a0ed9c8c339e4d9509a8726b79dbe86e073c12dee0 diff --git a/dev-php/PEAR-File_Gettext/PEAR-File_Gettext-0.4.2.ebuild b/dev-php/PEAR-File_Gettext/PEAR-File_Gettext-0.4.2-r1.ebuild index 7c2ab3e6487d..633c8c657fc4 100644 --- a/dev-php/PEAR-File_Gettext/PEAR-File_Gettext-0.4.2.ebuild +++ b/dev-php/PEAR-File_Gettext/PEAR-File_Gettext-0.4.2-r1.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2014 Gentoo Foundation +# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -EAPI="4" +EAPI=6 -inherit php-pear-r1 +inherit php-pear-r2 DESCRIPTION="GNU Gettext file parser" @@ -11,3 +11,4 @@ LICENSE="PHP-3" SLOT="0" KEYWORDS="alpha amd64 ~arm hppa ia64 ppc ppc64 ~s390 ~sh sparc x86" IUSE="" +PATCHES=( "${FILESDIR/File_Gettext-0.4.2-construct.patch}" ) diff --git a/dev-php/PEAR-File_Gettext/files/File_Gettext-0.4.2-construct.patch b/dev-php/PEAR-File_Gettext/files/File_Gettext-0.4.2-construct.patch new file mode 100644 index 000000000000..3527814485ab --- /dev/null +++ b/dev-php/PEAR-File_Gettext/files/File_Gettext-0.4.2-construct.patch @@ -0,0 +1,67 @@ +diff -aurN a/File/Gettext/MO.php b/File/Gettext/MO.php +--- a/File/Gettext/MO.php 2012-03-03 22:00:49.000000000 -0500 ++++ b/File/Gettext/MO.php 2018-02-16 15:15:17.725027132 -0500 +@@ -60,6 +60,10 @@ + * @access public + * @return object File_Gettext_MO + */ ++ function __construct($file = '') ++ { ++ $this->file = $file; ++ } + function File_Gettext_MO($file = '') + { + $this->file = $file; +diff -aurN a/File/Gettext/PO.php b/File/Gettext/PO.php +--- a/File/Gettext/PO.php 2012-03-03 22:00:49.000000000 -0500 ++++ b/File/Gettext/PO.php 2018-02-16 15:14:57.997419162 -0500 +@@ -42,6 +42,10 @@ + * @access public + * @return object File_Gettext_PO + */ ++ function __construct($file = '') ++ { ++ $this->file = $file; ++ } + function File_Gettext_PO($file = '') + { + $this->file = $file; +diff -aurN a/File/Gettext.php b/File/Gettext.php +--- a/File/Gettext.php 2012-03-03 22:00:49.000000000 -0500 ++++ b/File/Gettext.php 2018-02-16 15:14:27.629022634 -0500 +@@ -85,7 +85,7 @@ + return File_Gettext::raiseError($php_errormsg); + } + $class = 'File_Gettext_' . $format; +- $obref = &new $class($file); ++ $obref = new $class($file); + return $obref; + } + +@@ -110,7 +110,7 @@ + + include_once 'File/Gettext/PO.php'; + +- $PO = &new File_Gettext_PO($pofile); ++ $PO = new File_Gettext_PO($pofile); + if (true !== ($e = $PO->load())) { + return $e; + } +@@ -247,7 +247,7 @@ + function &toMO() + { + include_once 'File/Gettext/MO.php'; +- $MO = &new File_Gettext_MO; ++ $MO = new File_Gettext_MO; + $MO->fromArray($this->toArray()); + return $MO; + } +@@ -261,7 +261,7 @@ + function &toPO() + { + include_once 'File/Gettext/PO.php'; +- $PO = &new File_Gettext_PO; ++ $PO = new File_Gettext_PO; + $PO->fromArray($this->toArray()); + return $PO; + } |