[arch-commits] Commit in libgit2/repos (3 files)

2020-10-15 Thread David Runge via arch-commits
Date: Thursday, October 15, 2020 @ 14:45:42
  Author: dvzrv
Revision: 398393

archrelease: copy trunk to staging-x86_64

Added:
  libgit2/repos/staging-x86_64/
  libgit2/repos/staging-x86_64/PKGBUILD
(from rev 398392, libgit2/trunk/PKGBUILD)
  
libgit2/repos/staging-x86_64/libgit2-0.99.0-remove_http-parse_incompatible_tests.patch
(from rev 398392, 
libgit2/trunk/libgit2-0.99.0-remove_http-parse_incompatible_tests.patch)

---+
 PKGBUILD  |   55 
 libgit2-0.99.0-remove_http-parse_incompatible_tests.patch |   41 
 2 files changed, 96 insertions(+)

Copied: libgit2/repos/staging-x86_64/PKGBUILD (from rev 398392, 
libgit2/trunk/PKGBUILD)
===
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2020-10-15 14:45:42 UTC (rev 398393)
@@ -0,0 +1,55 @@
+# Maintainer: Lukas Fleischer 
+# Contributor: David Runge 
+# Contributor: Hilton Medeiros 
+# Contributor: Dave Reisner 
+
+pkgname=libgit2
+pkgver=1.1.0
+pkgrel=1
+epoch=1
+pkgdesc='A linkable library for Git'
+arch=('x86_64')
+url="https://libgit2.github.com/;
+depends=('glibc' 'http-parser' 'openssl' 'pcre' 'zlib')
+makedepends=('cmake' 'libssh2' 'python')
+provides=('libgit2.so')
+license=('GPL2')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/libgit2/libgit2/archive/v${pkgver}.tar.gz;
+"${pkgname}-0.99.0-remove_http-parse_incompatible_tests.patch")
+sha512sums=('347bb68900181b44fa58a0417506c91383adb965607fce049a5b4c57ac9cc286e0a140d164c339b50fb6cd6951f47757c2917a2df44ba004bfaa4fb643946bb8'
+
'e73072424c9c1870eaaf93b3451295ef7333b59f6cb8a6897dd690b69a20aaeb70f00d15a692c1d9e0745d5ef16912fbd570d8bc83ca0b7d57f32025bf94')
+b2sums=('2a1c1f71d2a2e06448c78eb46028fdcfd59682dccf2365851c4bd059cdd78842320f9a5ba7345e761611a5b4eba634faf2e26cc669097da0ba2e1c832c23059f'
+
'cdca2012f772afea99436faa02f80697dc9042a6eb5ae14f8ee8ba9e100a65b936cdfaf84ec0361543c70859375c823a25cfee52b0face40b8dea2ec2cf1de59')
+
+prepare() {
+  cd "$pkgname-$pkgver"
+  # removing tests that are only compatible with the (modified) vendored
+  # version of http-parser, but not with upstream http-parser
+  patch -Np1 -i 
"../${pkgname}-0.99.0-remove_http-parse_incompatible_tests.patch"
+}
+
+
+build() {
+  cd "$pkgname-$pkgver"
+  cmake -DCMAKE_INSTALL_PREFIX=/usr \
+-DCMAKE_BUILD_TYPE='None' \
+-DUSE_HTTP_PARSER=system \
+-DTHREADSAFE=ON \
+-Wno-dev \
+-B build \
+-S .
+  make -C build VERBOSE=1
+}
+
+check() {
+  cd "$pkgname-$pkgver"
+  make -C build test VERBOSE=1
+}
+
+package() {
+  depends+=('libssh2.so')
+  cd "$pkgname-$pkgver"
+  make -C build DESTDIR="$pkgdir" install
+  install -vDm 644 {AUTHORS,README.md} \
+-t "${pkgdir}/usr/share/doc/${pkgname}"
+}

Copied: 
libgit2/repos/staging-x86_64/libgit2-0.99.0-remove_http-parse_incompatible_tests.patch
 (from rev 398392, 
libgit2/trunk/libgit2-0.99.0-remove_http-parse_incompatible_tests.patch)
===
--- staging-x86_64/libgit2-0.99.0-remove_http-parse_incompatible_tests.patch
(rev 0)
+++ staging-x86_64/libgit2-0.99.0-remove_http-parse_incompatible_tests.patch
2020-10-15 14:45:42 UTC (rev 398393)
@@ -0,0 +1,41 @@
+diff -ruN a/tests/network/urlparse.c b/tests/network/urlparse.c
+--- a/tests/network/urlparse.c 2020-02-19 11:27:00.0 +0100
 b/tests/network/urlparse.c 2020-02-20 17:29:46.667262285 +0100
+@@ -61,18 +61,6 @@
+   cl_assert_equal_i(git_net_url_is_default_port(), 0);
+ }
+ 
+-void test_network_urlparse__implied_root_empty_port(void)
+-{
+-  cl_git_pass(git_net_url_parse(, "http://example.com:;));
+-  cl_assert_equal_s(conndata.scheme, "http");
+-  cl_assert_equal_s(conndata.host, "example.com");
+-  cl_assert_equal_s(conndata.port, "80");
+-  cl_assert_equal_s(conndata.path, "/");
+-  cl_assert_equal_p(conndata.username, NULL);
+-  cl_assert_equal_p(conndata.password, NULL);
+-  cl_assert_equal_i(git_net_url_is_default_port(), 1);
+-}
+-
+ void test_network_urlparse__encoded_password(void)
+ {
+   cl_git_pass(git_net_url_parse(,
+@@ -127,18 +115,6 @@
+   cl_assert_equal_i(git_net_url_is_default_port(), 0);
+ }
+ 
+-void test_network_urlparse__empty_port(void)
+-{
+-  cl_git_pass(git_net_url_parse(, 
"http://example.com:/resource;));
+-  cl_assert_equal_s(conndata.scheme, "http");
+-  cl_assert_equal_s(conndata.host, "example.com");
+-  cl_assert_equal_s(conndata.port, "80");
+-  cl_assert_equal_s(conndata.path, "/resource");
+-  cl_assert_equal_p(conndata.username, NULL);
+-  cl_assert_equal_p(conndata.password, NULL);
+-  cl_assert_equal_i(git_net_url_is_default_port(), 1);
+-}
+-
+ void test_network_urlparse__user_port(void)
+ {
+  

[arch-commits] Commit in libgit2/repos (3 files)

2020-04-01 Thread David Runge via arch-commits
Date: Wednesday, April 1, 2020 @ 20:40:39
  Author: dvzrv
Revision: 379050

archrelease: copy trunk to staging-x86_64

Added:
  libgit2/repos/staging-x86_64/
  libgit2/repos/staging-x86_64/PKGBUILD
(from rev 379049, libgit2/trunk/PKGBUILD)
  
libgit2/repos/staging-x86_64/libgit2-0.99.0-remove_http-parse_incompatible_tests.patch
(from rev 379049, 
libgit2/trunk/libgit2-0.99.0-remove_http-parse_incompatible_tests.patch)

---+
 PKGBUILD  |   52 
 libgit2-0.99.0-remove_http-parse_incompatible_tests.patch |   41 +
 2 files changed, 93 insertions(+)

Copied: libgit2/repos/staging-x86_64/PKGBUILD (from rev 379049, 
libgit2/trunk/PKGBUILD)
===
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2020-04-01 20:40:39 UTC (rev 379050)
@@ -0,0 +1,52 @@
+# Maintainer: Lukas Fleischer 
+# Contributor: David Runge 
+# Contributor: Hilton Medeiros 
+# Contributor: Dave Reisner 
+
+pkgname=libgit2
+pkgver=1.0.0
+pkgrel=1
+epoch=1
+pkgdesc='A linkable library for Git'
+arch=('x86_64')
+url="https://libgit2.github.com/;
+depends=('glibc' 'http-parser' 'openssl' 'pcre' 'zlib')
+makedepends=('cmake' 'libssh2' 'python')
+provides=('libgit2.so')
+license=('GPL2')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/libgit2/libgit2/archive/v${pkgver}.tar.gz;
+"${pkgname}-0.99.0-remove_http-parse_incompatible_tests.patch")
+sha256sums=('6a1fa16a7f6335ce8b2630fbdbb5e57c4027929ebc56fcd1ac55edb141b409b4'
+'0a597176a551dfe8dda56a46362ff1ef614928206a162d78fdf2d3074c9273ca')
+
+prepare() {
+  cd "$pkgname-$pkgver"
+  # removing tests that are only compatible with the (modified) vendored
+  # version of http-parser, but not with upstream http-parser
+  patch -Np1 -i 
"../${pkgname}-0.99.0-remove_http-parse_incompatible_tests.patch"
+}
+
+
+build() {
+  cd "$pkgname-$pkgver"
+  cmake -DCMAKE_INSTALL_PREFIX=/usr \
+-DCMAKE_BUILD_TYPE=Release \
+-DUSE_HTTP_PARSER=system \
+-DTHREADSAFE=ON \
+-B build \
+-S .
+  make -C build VERBOSE=1
+}
+
+check() {
+  cd "$pkgname-$pkgver"
+  make -C build test VERBOSE=1
+}
+
+package() {
+  depends+=('libssh2.so')
+  cd "$pkgname-$pkgver"
+  make -C build DESTDIR="$pkgdir" install
+  install -vDm 644 {AUTHORS,README.md} \
+-t "${pkgdir}/usr/share/doc/${pkgname}"
+}

Copied: 
libgit2/repos/staging-x86_64/libgit2-0.99.0-remove_http-parse_incompatible_tests.patch
 (from rev 379049, 
libgit2/trunk/libgit2-0.99.0-remove_http-parse_incompatible_tests.patch)
===
--- staging-x86_64/libgit2-0.99.0-remove_http-parse_incompatible_tests.patch
(rev 0)
+++ staging-x86_64/libgit2-0.99.0-remove_http-parse_incompatible_tests.patch
2020-04-01 20:40:39 UTC (rev 379050)
@@ -0,0 +1,41 @@
+diff -ruN a/tests/network/urlparse.c b/tests/network/urlparse.c
+--- a/tests/network/urlparse.c 2020-02-19 11:27:00.0 +0100
 b/tests/network/urlparse.c 2020-02-20 17:29:46.667262285 +0100
+@@ -61,18 +61,6 @@
+   cl_assert_equal_i(git_net_url_is_default_port(), 0);
+ }
+ 
+-void test_network_urlparse__implied_root_empty_port(void)
+-{
+-  cl_git_pass(git_net_url_parse(, "http://example.com:;));
+-  cl_assert_equal_s(conndata.scheme, "http");
+-  cl_assert_equal_s(conndata.host, "example.com");
+-  cl_assert_equal_s(conndata.port, "80");
+-  cl_assert_equal_s(conndata.path, "/");
+-  cl_assert_equal_p(conndata.username, NULL);
+-  cl_assert_equal_p(conndata.password, NULL);
+-  cl_assert_equal_i(git_net_url_is_default_port(), 1);
+-}
+-
+ void test_network_urlparse__encoded_password(void)
+ {
+   cl_git_pass(git_net_url_parse(,
+@@ -127,18 +115,6 @@
+   cl_assert_equal_i(git_net_url_is_default_port(), 0);
+ }
+ 
+-void test_network_urlparse__empty_port(void)
+-{
+-  cl_git_pass(git_net_url_parse(, 
"http://example.com:/resource;));
+-  cl_assert_equal_s(conndata.scheme, "http");
+-  cl_assert_equal_s(conndata.host, "example.com");
+-  cl_assert_equal_s(conndata.port, "80");
+-  cl_assert_equal_s(conndata.path, "/resource");
+-  cl_assert_equal_p(conndata.username, NULL);
+-  cl_assert_equal_p(conndata.password, NULL);
+-  cl_assert_equal_i(git_net_url_is_default_port(), 1);
+-}
+-
+ void test_network_urlparse__user_port(void)
+ {
+   /* u...@hostname.tld:port/resource */


[arch-commits] Commit in libgit2/repos (3 files)

2020-03-24 Thread Felix Yan via arch-commits
Date: Tuesday, March 24, 2020 @ 23:31:35
  Author: felixonmars
Revision: 378453

archrelease: copy trunk to testing-x86_64

Added:
  libgit2/repos/testing-x86_64/
  libgit2/repos/testing-x86_64/PKGBUILD
(from rev 378452, libgit2/trunk/PKGBUILD)
  
libgit2/repos/testing-x86_64/libgit2-0.99.0-remove_http-parse_incompatible_tests.patch
(from rev 378452, 
libgit2/trunk/libgit2-0.99.0-remove_http-parse_incompatible_tests.patch)

---+
 PKGBUILD  |   51 
 libgit2-0.99.0-remove_http-parse_incompatible_tests.patch |   41 +
 2 files changed, 92 insertions(+)

Copied: libgit2/repos/testing-x86_64/PKGBUILD (from rev 378452, 
libgit2/trunk/PKGBUILD)
===
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2020-03-24 23:31:35 UTC (rev 378453)
@@ -0,0 +1,51 @@
+# Maintainer: Lukas Fleischer 
+# Contributor: David Runge 
+# Contributor: Hilton Medeiros 
+# Contributor: Dave Reisner 
+
+pkgname=libgit2
+pkgver=0.99.0
+pkgrel=3
+epoch=1
+pkgdesc='A linkable library for Git'
+arch=('x86_64')
+url="https://libgit2.github.com/;
+depends=('glibc' 'http-parser' 'libssh2' 'openssl' 'zlib')
+makedepends=('cmake' 'python')
+provides=('libgit2.so')
+license=('GPL2')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/libgit2/libgit2/archive/v${pkgver}.tar.gz;
+"${pkgname}-0.99.0-remove_http-parse_incompatible_tests.patch")
+sha256sums=('174024310c1563097a6613a0d3f7539d11a9a86517cd67ce533849065de08a11'
+'0a597176a551dfe8dda56a46362ff1ef614928206a162d78fdf2d3074c9273ca')
+
+prepare() {
+  cd "$pkgname-$pkgver"
+  # removing tests that are only compatible with the (modified) vendored
+  # version of http-parser, but not with upstream http-parser
+  patch -Np1 -i 
"../${pkgname}-0.99.0-remove_http-parse_incompatible_tests.patch"
+}
+
+
+build() {
+  cd "$pkgname-$pkgver"
+  cmake -DCMAKE_INSTALL_PREFIX=/usr \
+-DCMAKE_BUILD_TYPE=Release \
+-DUSE_HTTP_PARSER=system \
+-DTHREADSAFE=ON \
+-B build \
+-S .
+  make -C build VERBOSE=1
+}
+
+check() {
+  cd "$pkgname-$pkgver"
+  make -C build test VERBOSE=1
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+  make -C build DESTDIR="$pkgdir" install
+  install -vDm 644 {AUTHORS,README.md} \
+-t "${pkgdir}/usr/share/doc/${pkgname}"
+}

Copied: 
libgit2/repos/testing-x86_64/libgit2-0.99.0-remove_http-parse_incompatible_tests.patch
 (from rev 378452, 
libgit2/trunk/libgit2-0.99.0-remove_http-parse_incompatible_tests.patch)
===
--- testing-x86_64/libgit2-0.99.0-remove_http-parse_incompatible_tests.patch
(rev 0)
+++ testing-x86_64/libgit2-0.99.0-remove_http-parse_incompatible_tests.patch
2020-03-24 23:31:35 UTC (rev 378453)
@@ -0,0 +1,41 @@
+diff -ruN a/tests/network/urlparse.c b/tests/network/urlparse.c
+--- a/tests/network/urlparse.c 2020-02-19 11:27:00.0 +0100
 b/tests/network/urlparse.c 2020-02-20 17:29:46.667262285 +0100
+@@ -61,18 +61,6 @@
+   cl_assert_equal_i(git_net_url_is_default_port(), 0);
+ }
+ 
+-void test_network_urlparse__implied_root_empty_port(void)
+-{
+-  cl_git_pass(git_net_url_parse(, "http://example.com:;));
+-  cl_assert_equal_s(conndata.scheme, "http");
+-  cl_assert_equal_s(conndata.host, "example.com");
+-  cl_assert_equal_s(conndata.port, "80");
+-  cl_assert_equal_s(conndata.path, "/");
+-  cl_assert_equal_p(conndata.username, NULL);
+-  cl_assert_equal_p(conndata.password, NULL);
+-  cl_assert_equal_i(git_net_url_is_default_port(), 1);
+-}
+-
+ void test_network_urlparse__encoded_password(void)
+ {
+   cl_git_pass(git_net_url_parse(,
+@@ -127,18 +115,6 @@
+   cl_assert_equal_i(git_net_url_is_default_port(), 0);
+ }
+ 
+-void test_network_urlparse__empty_port(void)
+-{
+-  cl_git_pass(git_net_url_parse(, 
"http://example.com:/resource;));
+-  cl_assert_equal_s(conndata.scheme, "http");
+-  cl_assert_equal_s(conndata.host, "example.com");
+-  cl_assert_equal_s(conndata.port, "80");
+-  cl_assert_equal_s(conndata.path, "/resource");
+-  cl_assert_equal_p(conndata.username, NULL);
+-  cl_assert_equal_p(conndata.password, NULL);
+-  cl_assert_equal_i(git_net_url_is_default_port(), 1);
+-}
+-
+ void test_network_urlparse__user_port(void)
+ {
+   /* u...@hostname.tld:port/resource */