New package: libgit2-1.9-1.9.0
This commit is contained in:
parent
81b2447e03
commit
9595ae014d
@ -1347,6 +1347,7 @@ libmicrohttpd.so.12 libmicrohttpd-0.9.73_1
|
||||
libmicrodns.so.1 libmicrodns-0.2.0_1
|
||||
libgit2.so.1.7 libgit2-1.7.2_1
|
||||
libgit2.so.1.8 libgit2-1.8-1.8.1_1
|
||||
libgit2.so.1.9 libgit2-1.9-1.9.0_1
|
||||
libgit2-glib-1.0.so.0 libgit2-glib-1.2.0_1
|
||||
libagg.so.2 agg-2.5_1
|
||||
libzzip-0.so.13 zziplib-0.13.62_1
|
||||
|
1
srcpkgs/libgit2-1.9-devel
Symbolic link
1
srcpkgs/libgit2-1.9-devel
Symbolic link
@ -0,0 +1 @@
|
||||
libgit2-1.9
|
@ -0,0 +1,13 @@
|
||||
diff --git a/tests/util/path/core.c b/tests/util/path/core.c
|
||||
index d1935a8..3d98f35 100644
|
||||
--- a/tests/util/path/core.c
|
||||
+++ b/tests/util/path/core.c
|
||||
@@ -761,7 +761,7 @@ void test_path_core__validate_current_user_ownership(void)
|
||||
cl_git_fail(git_fs_path_owner_is_current_user(&is_cur, "c:\\path\\does\\not\\exist"));
|
||||
#else
|
||||
cl_git_pass(git_fs_path_owner_is_current_user(&is_cur, "/"));
|
||||
- cl_assert_equal_i(is_cur, (geteuid() == 0));
|
||||
+ /* cl_assert_equal_i(is_cur, (geteuid() == 0)); xbps-src chroot belongs to $USER, not root */
|
||||
|
||||
cl_git_fail(git_fs_path_owner_is_current_user(&is_cur, "/path/does/not/exist"));
|
||||
#endif
|
45
srcpkgs/libgit2-1.9/template
Normal file
45
srcpkgs/libgit2-1.9/template
Normal file
@ -0,0 +1,45 @@
|
||||
# Template file for 'libgit2-1.9'
|
||||
pkgname=libgit2-1.9
|
||||
version=1.9.0
|
||||
revision=1
|
||||
build_style=cmake
|
||||
configure_args="-DENABLE_REPRODUCIBLE_BUILDS=ON -DBUILD_CLI=OFF -DUSE_SSH=exec -DUSE_HTTP_PARSER=llhttp"
|
||||
hostmakedepends="python3 pkg-config"
|
||||
makedepends="zlib-devel openssl-devel llhttp-devel"
|
||||
depends="openssh"
|
||||
short_desc="Git linkable library ${pkgname#libgit2-}"
|
||||
maintainer="tranzystorekk <tranzystorek.io@protonmail.com>"
|
||||
license="GPL-2.0-only WITH GCC-exception-2.0"
|
||||
homepage="https://libgit2.org"
|
||||
distfiles="https://github.com/libgit2/libgit2/archive/refs/tags/v${version}.tar.gz"
|
||||
checksum=75b27d4d6df44bd34e2f70663cfd998f5ec41e680e1e593238bbe517a84c7ed2
|
||||
|
||||
if [ -z "$XBPS_CHECK_PKGS" ]; then
|
||||
configure_args+=" -DBUILD_TESTS=OFF"
|
||||
fi
|
||||
|
||||
CFLAGS="-D_LARGE_FILE_SOURCE=1 -D_FILE_OFFSET_BITS=64"
|
||||
|
||||
post_patch() {
|
||||
# no online tests
|
||||
vsed \
|
||||
-i tests/libgit2/CMakeLists.txt \
|
||||
-e '/-sonline/s/^/#/'
|
||||
}
|
||||
|
||||
post_install() {
|
||||
vlicense COPYING
|
||||
}
|
||||
|
||||
libgit2-1.9-devel_package() {
|
||||
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
||||
provides="virtual-libgit2-devel-${version}_${revision}"
|
||||
conflicts="virtual-libgit2-devel"
|
||||
short_desc+=" - development files"
|
||||
pkg_install() {
|
||||
vmove usr/include
|
||||
vmove usr/lib/cmake
|
||||
vmove usr/lib/pkgconfig
|
||||
vmove "usr/lib/*.so"
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user