summaryrefslogtreecommitdiff
path: root/dev-php/pecl-svn
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/pecl-svn
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-php/pecl-svn')
-rw-r--r--dev-php/pecl-svn/Manifest6
-rw-r--r--dev-php/pecl-svn/files/1.0.3-c99-fixes.patch68
-rw-r--r--dev-php/pecl-svn/metadata.xml8
-rw-r--r--dev-php/pecl-svn/pecl-svn-1.0.3-r1.ebuild22
4 files changed, 104 insertions, 0 deletions
diff --git a/dev-php/pecl-svn/Manifest b/dev-php/pecl-svn/Manifest
new file mode 100644
index 000000000000..678fa4f9f0e7
--- /dev/null
+++ b/dev-php/pecl-svn/Manifest
@@ -0,0 +1,6 @@
+AUX 1.0.3-c99-fixes.patch 2241 SHA256 ddd96eea0de1c51095e2c40286cf62914c9b09638285a1ced53b96a7fec08a58 SHA512 817048816e43f62246a172164691f95d9b84cc18fde096ed7ff9ce115e36b41942b22915dc149a9cbc972923d8f5f828e6197cc00503d7bca21bbb9bbba3c740 WHIRLPOOL 76682f21793b9c3a0167f8077259fd30064b92a3881facee69c794150ae7bd0571ad4a067f1e37abcfde3ed9fb144c73cc47a758d8f7c8c60f64936257155fbb
+DIST svn-1.0.3.tgz 27216 SHA256 8ccf1dd78b92649486d1875102ecb899c1e4e5ddf674f2d87adf611c16295089 SHA512 41f111c3a47f66317c47318162bfd17c22ffef6462ababdafd9ed38220b1135464e52a365fbc206fd510dafad739437174faf1d0dd144707fad62da43c6c1a79 WHIRLPOOL c293d8b2bc5ad5bd7f392957f87468375e9d3780a451944f4497398ae8938a23023dbc3927c1aace5126fd2cfb2a22326d4c0d52f6124987574c130bea24923c
+EBUILD pecl-svn-1.0.3-r1.ebuild 407 SHA256 6067486b3bc9a07d567241edc585811ce64dc183538ee41725f54f36b078ef01 SHA512 e6ad7b64b58704364e1efbd6af381bc46551239912a66cba0a4da98a064f8170d283c3c6fa7c23f8967c1e149a4340ebf041c4d66f48bb95f420ca7ed957fafe WHIRLPOOL 9c690544b08f0569565156341cec9a0e0addd8ccba6755157af83ef03a174588e471b178451d8d8add0b03fc683f7df7b9ecbb9ab6680bf5d2b46d2d77d3557c
+MISC ChangeLog 3305 SHA256 e1e0e6fe61baca35b297d1be2b88ac9b1e0e367e1e7761db64add9612992b1c9 SHA512 eb69d8951ec4fec9c18d52f6de9b098d9314adb18526fbfd20888db50d398c8ba90f693ecb98c568a99a6b24360918f34c9324f79b49d174fffff90c9c2fb8c9 WHIRLPOOL 18b8beeb64a325d544c7d31c5aa45f3fbd0f48b6d88a08e383a1f9f635eb14e59ef22d0519377d9d09d773edfe7061fb73d412160a16f01c79fae35b41a0bca7
+MISC ChangeLog-2015 1284 SHA256 53ad3cabb1f4cf5cac7c6430f4ec8bb0325e5c73c7a5cccd7f7ee5d7a4306d62 SHA512 d7a454298e2afa5d98a843dcd9416c199db17bfd7fcaf8bf31b0e669e0364c93c66f30cec3ce29c6b43d445de405d4116e03702c95470bae76b3993daf0aec38 WHIRLPOOL 387e153fa3429db35c7b1c3257ceacdfa0add0e08400d010a77f2bf561a3d996371a1ff38219c0245572667ae99ae64e49ad951ad7adaaa8e179d6608cf9ad82
+MISC metadata.xml 235 SHA256 b248157b2feece4fbe51f91e87ab0c0249a13655e50e070080763a2a6556606f SHA512 0b3e95bbf68eddf74289dad50f8828cffce2d904ff6f9bd5468177de979677cac11da84d1e0302c52b72085915b9d1b3496107172e5726520d51dad1981daf64 WHIRLPOOL d9032f2fa2b465d0658cb19728a50849c3ca8e021574651e7aa69a9f949f186bb43812034fffda1273cfa8fbbec663ee5f08fd30db366b96ab6945b7ed4291e0
diff --git a/dev-php/pecl-svn/files/1.0.3-c99-fixes.patch b/dev-php/pecl-svn/files/1.0.3-c99-fixes.patch
new file mode 100644
index 000000000000..a1214ffd0cbe
--- /dev/null
+++ b/dev-php/pecl-svn/files/1.0.3-c99-fixes.patch
@@ -0,0 +1,68 @@
+--- a/svn.c 2016/05/04 04:14:33 339123
++++ b/svn.c 2016/05/04 07:32:45 339129
+@@ -977,6 +977,7 @@
+ apr_pool_t *subpool;
+ svn_opt_revision_t peg_revision;
+ const char *true_path;
++ apr_hash_index_t *hi;
+
+ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|lbb",
+ &repos_url, &repos_url_len, &revision.value.number, &recurse, &peg) == FAILURE) {
+@@ -1021,7 +1022,7 @@
+
+ array_init(return_value);
+
+- for (apr_hash_index_t *hi = apr_hash_first(subpool, dirents); hi; hi = apr_hash_next(hi)) {
++ for (hi = apr_hash_first(subpool, dirents); hi; hi = apr_hash_next(hi)) {
+ const char *utf8_entryname;
+ svn_dirent_t *dirent;
+ apr_time_t now = apr_time_now();
+@@ -1031,9 +1032,10 @@
+ char timestr[20];
+ const char *utf8_timestr;
+ zval *row;
++ const char *key;
+
+- svn_utf_cstring_to_utf8 (&utf8_entryname, apr_hash_this_key(hi), subpool);
+- dirent = apr_hash_this_val(hi);
++ apr_hash_this(hi, &key, NULL, &dirent);
++ svn_utf_cstring_to_utf8 (&utf8_entryname, key, subpool);
+
+ /* svn_time_to_human_cstring gives us something *way* too long
+ to use for this, so we have to roll our own. We include
+@@ -1101,6 +1103,7 @@
+ {
+ struct php_svn_log_receiver_baton *baton = (struct php_svn_log_receiver_baton*) ibaton;
+ zval *row, *paths;
++ apr_hash_index_t *hi;
+ TSRMLS_FETCH();
+
+ if (rev == 0) {
+@@ -1127,7 +1130,7 @@
+ MAKE_STD_ZVAL(paths);
+ array_init(paths);
+
+- for (apr_hash_index_t *hi = apr_hash_first(pool, changed_paths); hi; hi = apr_hash_next(hi)) {
++ for (hi = apr_hash_first(pool, changed_paths); hi; hi = apr_hash_next(hi)) {
+ svn_log_changed_path_t *log_item;
+ zval *zpaths;
+ const char *path;
+@@ -1135,8 +1138,7 @@
+ MAKE_STD_ZVAL(zpaths);
+ array_init(zpaths);
+
+- path = apr_hash_this_key(hi);
+- log_item = apr_hash_this_val(hi);
++ apr_hash_this(hi, &path, NULL, &log_item);
+
+ add_assoc_stringl(zpaths, "action", &(log_item->action), 1,1);
+ add_assoc_string(zpaths, "path", path, 1);
+@@ -1152,7 +1154,7 @@
+ add_assoc_zval(paths, path, zpaths);
+ }
+
+- zend_hash_sort(Z_ARRVAL_P(paths), zend_qsort, compare_keys_as_paths, 1);
++ zend_hash_sort(Z_ARRVAL_P(paths), zend_qsort, compare_keys_as_paths, 1 TSRMLS_CC);
+ add_assoc_zval(row,"paths",paths);
+ }
+
diff --git a/dev-php/pecl-svn/metadata.xml b/dev-php/pecl-svn/metadata.xml
new file mode 100644
index 000000000000..aca42932b833
--- /dev/null
+++ b/dev-php/pecl-svn/metadata.xml
@@ -0,0 +1,8 @@
+<?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>
+</pkgmetadata>
diff --git a/dev-php/pecl-svn/pecl-svn-1.0.3-r1.ebuild b/dev-php/pecl-svn/pecl-svn-1.0.3-r1.ebuild
new file mode 100644
index 000000000000..52eb35c8875d
--- /dev/null
+++ b/dev-php/pecl-svn/pecl-svn-1.0.3-r1.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PHP_EXT_NAME="svn"
+
+USE_PHP="php5-6"
+
+inherit php-ext-pecl-r3
+
+KEYWORDS="~amd64 ~x86"
+
+DESCRIPTION="PHP Bindings for the Subversion Revision control system"
+LICENSE="PHP-3.01"
+SLOT="0"
+IUSE=""
+
+DEPEND="dev-vcs/subversion"
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}/1.0.3-c99-fixes.patch" )