summaryrefslogtreecommitdiff
path: root/dev-php/PEAR-OLE
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-php/PEAR-OLE
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-php/PEAR-OLE')
-rw-r--r--dev-php/PEAR-OLE/Manifest10
-rw-r--r--dev-php/PEAR-OLE/PEAR-OLE-1.0.0_rc2-r1.ebuild28
-rw-r--r--dev-php/PEAR-OLE/PEAR-OLE-1.0.0_rc2-r2.ebuild34
-rw-r--r--dev-php/PEAR-OLE/PEAR-OLE-1.0.0_rc3.ebuild15
-rw-r--r--dev-php/PEAR-OLE/files/1.0.0_rc2-fix-static-calls.patch96
-rw-r--r--dev-php/PEAR-OLE/files/pear-bug-19284.patch24
-rw-r--r--dev-php/PEAR-OLE/metadata.xml12
7 files changed, 219 insertions, 0 deletions
diff --git a/dev-php/PEAR-OLE/Manifest b/dev-php/PEAR-OLE/Manifest
new file mode 100644
index 000000000000..8efae4e4d667
--- /dev/null
+++ b/dev-php/PEAR-OLE/Manifest
@@ -0,0 +1,10 @@
+AUX 1.0.0_rc2-fix-static-calls.patch 3089 SHA256 31ae8ecf1927bd7b41d08163b16f2ed3b9cb5299d36edf8ff54d7064ce215487 SHA512 061674617d100f7c9d795d55b8a75a759dc9d321a784c2a29cec6a669cd7321e4bb0c3481c0641451098a2263b114f1bd248cc255060fdc44846f5d689dd971a WHIRLPOOL dfb58b02988065052f30e64176bda93130aa4c43f9f1ef802537999bc3c4e55b21574d7f174cd5b38d001d9f8a1fb06ebe848bdc7ef3635d0280527ae88a169a
+AUX pear-bug-19284.patch 1026 SHA256 2f72b0a31ff3a9e4a47e2ff00cafa500090b94d29f44e6b2adb3a8e96fca2caa SHA512 5fa13721f6ee57dafe8a6930033a2c06dd3c048f5aa1b3060d85a5cd7dedd84dceb7189f7cafd4512b8a9b05ada893351935b0dab45a0d1caec53c8ecabd45cc WHIRLPOOL 28c266905b9341a5e65b24feb4127e32bde766ab9bd3b02875ba327a34165eee224048e5cfe22c7801a74db73603b81152c880a9077ac543626f71edde221542
+DIST OLE-1.0.0RC2.tgz 13981 SHA256 a0f3ad85845801ad8f7c6cf1695e048c960a72b183946613ddbca4567fed9164 SHA512 9d0b236da4a0f82f272cf2e5642246ca35f83b9d21f1cc41ebe32d536949e9c7fce8d3bee0dce051f692a0283e1203d5ba2bacbe339f72cad4c83eb7a7b7e884 WHIRLPOOL 232cfbbe3c39cdd52455fd9f060c8983002e80f178dda25627d6a88c51af22dc5ae7f71577a4679ef9aed15ad4cae5ae4e6791cf215e286e1460bfdde8fefa58
+DIST OLE-1.0.0RC3.tgz 14233 SHA256 3f3a311718cd93731ed7065c4aa9eaa9d015169f227210368a6062b0aa0a1fcb SHA512 36a9bbe243d0f172bcd3fc5dd0926a0e42389b4e222cca90678f41bb968c70e4d04c959f3fe3bad1704543ecbcda871a248aa445a1dc6c2f0b73925198f5b07e WHIRLPOOL b88733f4258b2c32de8526625a0e2fb0c8e577c47836dfbf5d686757cb3319a78b1414d06f48c56f401c98ae252ef2e1e788b804c3d3e4faabc10382b7b290d4
+EBUILD PEAR-OLE-1.0.0_rc2-r1.ebuild 625 SHA256 3f95ef20af6c27b35452565b64441686fc3cf4818405d67091d6c52831e441a7 SHA512 efd8463b6c131f75ce0fbee812a590e77dca132c7f62fdbfdd156f5b296a0a255f97c054033596ba8da82360e75e7e1ce0e782354f9973419a4ce09450baf741 WHIRLPOOL bdfb0d5c086db7888daedc16462a6490c72fef4a90b037005306bd29ec6d5882908d3942b0aaf55bba93ef48feb436265aba780f306f4567fe882db70eb50bdf
+EBUILD PEAR-OLE-1.0.0_rc2-r2.ebuild 756 SHA256 660453b9011a5b8538ac3ba5328334860179b573d6387099e82225898c2e4132 SHA512 95e28eefaeaf15458f001c1cc5d7a9a2f799f201f8cd09ea5a98452d5e0e8af2870df8f1f13281e86297c447df3c96cb9f115aafd65d065997052c34774d15c1 WHIRLPOOL 8c1ac19c78c3cbfb62fb8c498f0f784a469bd5fe5456e2a9551b1eaf0593f366cd958000e9ca48c5c121fb9734716aec5e454683d7f45cea8be6326bf4607d0a
+EBUILD PEAR-OLE-1.0.0_rc3.ebuild 376 SHA256 91c51c06f79b930ca4cb8250d6acca79b3b985266e29b1cac88e35f3d2146c93 SHA512 c687884670cf9b3b88a99e7b7f1c2744d6cfffb0ca6d51d753bdd5331da5d62cdad243687aad9ac16ae6db38c44f7676b7330c7aef1ffcd02154074b1d7c491e WHIRLPOOL b3a56ee83f407140b86d8f85951cecfd728e81f99a64a6225ec9cd0efd0d9e55837c978200136243de4728c96a5ff56527b7f3673d962d58ba6c97da49d5a734
+MISC ChangeLog 2491 SHA256 142daaaaadd1556c29ca804f69a685068b8cd1046ccfc84846a3dde6a7cd6b65 SHA512 6a9c8a9311858a5384a2aef1aeb3ea708a7985db411d25e9599179ebc1b81329168b76bf8d480a97d19597b411c9e63e443a28a096e923ecebf0384c5913129c WHIRLPOOL e4e6ef1b89d7d984be8989d92df2baccdba60080c06a115489b087573b0597dafe3896012b61c6300a802f1d294065aa6a3fb3176c1bb1ba7e1afce931338ea2
+MISC ChangeLog-2015 4431 SHA256 58913100930d2143a2fc15f014c5b27bf44d5e74e36b0835bd7b0903d941b404 SHA512 bfbe24af5e3c53f4cac93ca0ab2d75dacf363ad8f651c0d31c3d9204c96aea5674a4b35e761a8f3b2d6b56732316d19a27c35fa94f421853db62409d28153f50 WHIRLPOOL 2a635099fe901700a6435a9a3440fef2cf633c290d9eb3c412088b849cb2f3f9de3e6e75ad234caffdabe89b50f68e0827ca542ef41eb3203fddc2eb44b8f3f5
+MISC metadata.xml 365 SHA256 be3b4cded0f97c22f7aefde3ad1968fccb0b7ce40aaf7b27a0d9929331afde12 SHA512 3871e3db946f3c1d55f06eb228b38e4b3d596b40781c0062c5aa5dad7b785312db6ddf41e16f372f3541c1eaf30264b78bd84db2a4c2843376af4111a50479ae WHIRLPOOL fbd4087d5843cd399a438498ac09f9f76f251b752e3d36d22a1cd3f51ab9f3fddf296c4f64b25850f0097b571a26e7401f8e57fb3f5101e8c8b827269bac90e8
diff --git a/dev-php/PEAR-OLE/PEAR-OLE-1.0.0_rc2-r1.ebuild b/dev-php/PEAR-OLE/PEAR-OLE-1.0.0_rc2-r1.ebuild
new file mode 100644
index 000000000000..01c977ab5b7f
--- /dev/null
+++ b/dev-php/PEAR-OLE/PEAR-OLE-1.0.0_rc2-r1.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+MY_PN="${PN/PEAR-/}"
+MY_PV="${PV/_/}"
+MY_PV="${MY_PV^^}"
+MY_P="${MY_PN}-${MY_PV}"
+
+DESCRIPTION="Package for reading and writing OLE containers"
+HOMEPAGE="http://pear.php.net/package/${MY_PN}"
+SRC_URI="http://download.pear.php.net/package/${MY_P}.tgz"
+LICENSE="PHP-3.01"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 ~s390 ~sh sparc x86"
+IUSE=""
+
+RDEPEND="dev-lang/php:*
+ dev-php/PEAR-PEAR"
+
+S="${WORKDIR}/${MY_P}"
+
+src_install() {
+ insinto /usr/share/php
+ doins "${MY_PN}.php"
+ doins -r "${MY_PN}"
+}
diff --git a/dev-php/PEAR-OLE/PEAR-OLE-1.0.0_rc2-r2.ebuild b/dev-php/PEAR-OLE/PEAR-OLE-1.0.0_rc2-r2.ebuild
new file mode 100644
index 000000000000..e48f9f9de5a6
--- /dev/null
+++ b/dev-php/PEAR-OLE/PEAR-OLE-1.0.0_rc2-r2.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+MY_PN="${PN/PEAR-/}"
+MY_PV="${PV/_/}"
+MY_PV="${MY_PV^^}"
+MY_P="${MY_PN}-${MY_PV}"
+
+DESCRIPTION="Package for reading and writing OLE containers"
+HOMEPAGE="http://pear.php.net/package/${MY_PN}"
+SRC_URI="http://download.pear.php.net/package/${MY_P}.tgz"
+LICENSE="PHP-3.01"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE=""
+
+RDEPEND="dev-lang/php:*
+ dev-php/PEAR-PEAR"
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ eapply "${FILESDIR}/pear-bug-19284.patch" \
+ "${FILESDIR}/${PV}-fix-static-calls.patch"
+ eapply_user
+}
+
+src_install() {
+ insinto /usr/share/php
+ doins "${MY_PN}.php"
+ doins -r "${MY_PN}"
+}
diff --git a/dev-php/PEAR-OLE/PEAR-OLE-1.0.0_rc3.ebuild b/dev-php/PEAR-OLE/PEAR-OLE-1.0.0_rc3.ebuild
new file mode 100644
index 000000000000..65f0246057f1
--- /dev/null
+++ b/dev-php/PEAR-OLE/PEAR-OLE-1.0.0_rc3.ebuild
@@ -0,0 +1,15 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PEAR_PV=${PV/_rc/RC}
+
+inherit php-pear-r2
+
+DESCRIPTION="Package for reading and writing OLE containers"
+HOMEPAGE="https://pear.php.net/package/OLE"
+LICENSE="PHP-3.01"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE=""
diff --git a/dev-php/PEAR-OLE/files/1.0.0_rc2-fix-static-calls.patch b/dev-php/PEAR-OLE/files/1.0.0_rc2-fix-static-calls.patch
new file mode 100644
index 000000000000..e9dea0cad4f7
--- /dev/null
+++ b/dev-php/PEAR-OLE/files/1.0.0_rc2-fix-static-calls.patch
@@ -0,0 +1,96 @@
+From 17a94ee1f244cbf0c728f37d1628eb28955465ac Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Jean-S=C3=A9bastien=20Hedde?= <jeanseb@au-fil-du.net>
+Date: Mon, 27 Jan 2014 11:32:19 +0100
+Subject: [PATCH 1/3] Non-static method System::tmpdir() should not be called
+ statically, assuming from incompatible context
+
+---
+ OLE/PPS/File.php | 3 ++-
+ OLE/PPS/Root.php | 3 ++-
+ 2 files changed, 4 insertions(+), 2 deletions(-)
+
+diff --git a/OLE/PPS/File.php b/OLE/PPS/File.php
+index 8fb1acd..553627e 100644
+--- a/OLE/PPS/File.php
++++ b/OLE/PPS/File.php
+@@ -47,7 +47,8 @@ class OLE_PPS_File extends OLE_PPS
+ */
+ function OLE_PPS_File($name)
+ {
+- $this->_tmp_dir = System::tmpdir();
++ $system = new System();
++ $this->_tmp_dir = $system->tmpdir();
+ $this->OLE_PPS(
+ null,
+ $name,
+diff --git a/OLE/PPS/Root.php b/OLE/PPS/Root.php
+index 387c3b3..9da6330 100755
+--- a/OLE/PPS/Root.php
++++ b/OLE/PPS/Root.php
+@@ -53,7 +53,8 @@ class OLE_PPS_Root extends OLE_PPS
+ */
+ function OLE_PPS_Root($time_1st, $time_2nd, $raChild)
+ {
+- $this->_tmp_dir = System::tmpdir();
++ $system = new System();
++ $this->_tmp_dir = $system->tmpdir();
+ $this->OLE_PPS(
+ null,
+ OLE::Asc2Ucs('Root Entry'),
+
+From 482239c562cc66959fc8c04e8308d812196d56f8 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Jean-S=C3=A9bastien=20Hedde?= <jeanseb@au-fil-du.net>
+Date: Mon, 27 Jan 2014 11:35:00 +0100
+Subject: [PATCH 2/3] OLE::LocalDate2OLE, OLE::OLE2LocalDate are static
+ methods.
+
+These functions are called staticly and don't use $this.
+---
+ OLE.php | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/OLE.php b/OLE.php
+index d7dced7..2a5da73 100755
+--- a/OLE.php
++++ b/OLE.php
+@@ -493,7 +493,7 @@ function Asc2Ucs($ascii)
+ * @param integer $date A timestamp
+ * @return string The string for the OLE container
+ */
+- function LocalDate2OLE($date = null)
++ static function LocalDate2OLE($date = null)
+ {
+ if (!isset($date)) {
+ return "\x00\x00\x00\x00\x00\x00\x00\x00";
+@@ -538,7 +538,7 @@ function LocalDate2OLE($date = null)
+ * @access public
+ * @static
+ */
+- function OLE2LocalDate($string)
++ static function OLE2LocalDate($string)
+ {
+ if (strlen($string) != 8) {
+ return new PEAR_Error("Expecting 8 byte string");
+
+From af1b260a8bd0a5fc337f96f5b84b2accbb75f650 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Jean-S=C3=A9bastien=20Hedde?= <jeanseb@au-fil-du.net>
+Date: Mon, 27 Jan 2014 11:38:34 +0100
+Subject: [PATCH 3/3] Asc2Ucs is a static method.
+
+---
+ OLE.php | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/OLE.php b/OLE.php
+index 2a5da73..e0cec8f 100755
+--- a/OLE.php
++++ b/OLE.php
+@@ -475,7 +475,7 @@ function getDataLength($index)
+ * @param string $ascii The ASCII string to transform
+ * @return string The string in Unicode
+ */
+- function Asc2Ucs($ascii)
++ static function Asc2Ucs($ascii)
+ {
+ $rawname = '';
+ for ($i = 0; $i < strlen($ascii); $i++) {
diff --git a/dev-php/PEAR-OLE/files/pear-bug-19284.patch b/dev-php/PEAR-OLE/files/pear-bug-19284.patch
new file mode 100644
index 000000000000..c94142c1ae46
--- /dev/null
+++ b/dev-php/PEAR-OLE/files/pear-bug-19284.patch
@@ -0,0 +1,24 @@
+From e63587ddb88057cc2e403c48d2f41728ba1044ef Mon Sep 17 00:00:00 2001
+From: flack <flack@contentcontrol-berlin.de>
+Date: Tue, 27 Nov 2012 10:26:09 +0100
+Subject: [PATCH] Fix problem where Excel files couldn't be opened in Ofccie
+ 2010
+
+I haven't traced the problem, the fix is from one of the comments of http://pear.php.net/bugs/bug.php?id=19284, but for me, this reproducably fixes the issue the Excel 2010 refuses to open the files because they are corrupt
+---
+ OLE/PPS/Root.php | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/OLE/PPS/Root.php b/OLE/PPS/Root.php
+index 2f19ba0..387c3b3 100755
+--- a/OLE/PPS/Root.php
++++ b/OLE/PPS/Root.php
+@@ -620,7 +620,7 @@ function _create_header($num_sb_blocks, $num_bb_blocks, $num_pps_blocks)
+ else
+ fwrite($FILE, pack("V", -2));
+
+- fwrite($FILE, pack("V", 1));
++ fwrite($FILE, pack("V", $num_sb_blocks));
+
+ // Extra BDList Start, Count
+ if($bbd_info["blockchain_list_entries"] < $bbd_info["header_blockchain_list_entries"])
diff --git a/dev-php/PEAR-OLE/metadata.xml b/dev-php/PEAR-OLE/metadata.xml
new file mode 100644
index 000000000000..bf98d49f17fb
--- /dev/null
+++ b/dev-php/PEAR-OLE/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>php-bugs@gentoo.org</email>
+ <name>PHP</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">pear/OLE</remote-id>
+ <remote-id type="pear">OLE</remote-id>
+ </upstream>
+</pkgmetadata>