Gentoo Archives: gentoo-commits

From: Gilles Dartiguelongue <eva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] dev/eva:master commit in: dev-php/PEAR-HTTP_WebDAV_Client/files/, dev-php/PEAR-HTTP_WebDAV_Client/
Date: Fri, 01 Jan 2016 23:20:30
Message-Id: 1451682226.f9b48d487586da76212c88e23506bc0a2d66f760.eva@gentoo
1 commit: f9b48d487586da76212c88e23506bc0a2d66f760
2 Author: Gilles Dartiguelongue <g.dartiguelongue <AT> lexfo <DOT> fr>
3 AuthorDate: Fri Jan 1 21:03:46 2016 +0000
4 Commit: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 1 21:03:46 2016 +0000
6 URL: https://gitweb.gentoo.org/dev/eva.git/commit/?id=f9b48d48
7
8 dev-php/PEAR-HTTP_WebDAV_Client: initial ebuild
9
10 dev-php/PEAR-HTTP_WebDAV_Client/Manifest | 1 +
11 .../PEAR-HTTP_WebDAV_Client-1.0.2.ebuild | 24 ++++++++++++++++++++++
12 .../files/fix-propfind-response-parser.patch | 13 ++++++++++++
13 dev-php/PEAR-HTTP_WebDAV_Client/metadata.xml | 11 ++++++++++
14 4 files changed, 49 insertions(+)
15
16 diff --git a/dev-php/PEAR-HTTP_WebDAV_Client/Manifest b/dev-php/PEAR-HTTP_WebDAV_Client/Manifest
17 new file mode 100644
18 index 0000000..e59d74b
19 --- /dev/null
20 +++ b/dev-php/PEAR-HTTP_WebDAV_Client/Manifest
21 @@ -0,0 +1 @@
22 +DIST HTTP_WebDAV_Client-1.0.2.tgz 9000 SHA256 4c2058ab69589bbe20fa97004ac84259e0392975ce31dcdd0cb95ed24d33fde5 SHA512 b124d417cc93a01f1571044aceb1aaa6962f777411cbf9fa0c9c8d303980ff5b6272499c4be6a501f878cf2d7a5ff521f6a83f0a2a9491095971156264abdb53 WHIRLPOOL aabf80b47f6f3cd857303ea1f4ba08ddd0975de6ae941346b1a4acdbd87a382283946520fc00510c1b7ac33ceb629ce9bfc92512a741dca5754036804cc2d868
23
24 diff --git a/dev-php/PEAR-HTTP_WebDAV_Client/PEAR-HTTP_WebDAV_Client-1.0.2.ebuild b/dev-php/PEAR-HTTP_WebDAV_Client/PEAR-HTTP_WebDAV_Client-1.0.2.ebuild
25 new file mode 100644
26 index 0000000..e86f669
27 --- /dev/null
28 +++ b/dev-php/PEAR-HTTP_WebDAV_Client/PEAR-HTTP_WebDAV_Client-1.0.2.ebuild
29 @@ -0,0 +1,24 @@
30 +# Copyright 1999-2016 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +# $Id$
33 +
34 +EAPI=5
35 +
36 +inherit php-pear-r1 eutils
37 +
38 +DESCRIPTION="WebDAV stream wrapper class"
39 +
40 +LICENSE="PHP"
41 +SLOT="0"
42 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
43 +IUSE=""
44 +
45 +RDEPEND="
46 + dev-lang/php:*
47 + dev-php/PEAR-HTTP_Request
48 +"
49 +DEPEND="${RDEPEND}"
50 +
51 +src_prepare() {
52 + epatch "${FILESDIR}"/fix-propfind-response-parser.patch
53 +}
54
55 diff --git a/dev-php/PEAR-HTTP_WebDAV_Client/files/fix-propfind-response-parser.patch b/dev-php/PEAR-HTTP_WebDAV_Client/files/fix-propfind-response-parser.patch
56 new file mode 100644
57 index 0000000..c83ee91
58 --- /dev/null
59 +++ b/dev-php/PEAR-HTTP_WebDAV_Client/files/fix-propfind-response-parser.patch
60 @@ -0,0 +1,13 @@
61 +--- HTTP/WebDAV/Tools/_parse_propfind_response.php.orig 2015-06-15 22:46:16.736000000 +0200
62 ++++ HTTP/WebDAV/Tools/_parse_propfind_response.php 2015-06-15 22:46:23.841000000 +0200
63 +@@ -98,9 +98,7 @@
64 + $this->_tmpprop['mtime'] = strtotime($this->_tmpdata);
65 + break;
66 + case 'creationdate':
67 +- $t = preg_split("/[^[:digit:]]/", $this->_tmpdata);
68 +- $this->_tmpprop['ctime'] = mktime($t[3], $t[4], $t[5], $t[1], $t[2], $t[0]);
69 +- unset($t);
70 ++ $this->_tmpprop['ctime'] = strtotime($this->_tmpdata);
71 + break;
72 + case 'getcontentlength':
73 + $this->_tmpprop['size'] = $this->_tmpdata;
74
75 diff --git a/dev-php/PEAR-HTTP_WebDAV_Client/metadata.xml b/dev-php/PEAR-HTTP_WebDAV_Client/metadata.xml
76 new file mode 100644
77 index 0000000..6b61b72
78 --- /dev/null
79 +++ b/dev-php/PEAR-HTTP_WebDAV_Client/metadata.xml
80 @@ -0,0 +1,11 @@
81 +<?xml version="1.0" encoding="UTF-8"?>
82 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
83 +<pkgmetadata>
84 +<maintainer>
85 + <email>eva@g.o</email>
86 + <name>Gilles Dartiguelongue</name>
87 +</maintainer>
88 +<upstream>
89 + <remote-id type="github">pear/HTTP_WebDAV_Client</remote-id>
90 +</upstream>
91 +</pkgmetadata>