protobuf: update to 21.7, enable tests
This commit is contained in:
parent
328b2ea7ab
commit
aa6d8ae102
|
@ -1,8 +1,9 @@
|
||||||
# Template file for 'protobuf'
|
# Template file for 'protobuf'
|
||||||
pkgname=protobuf
|
pkgname=protobuf
|
||||||
version=21.6
|
version=21.7
|
||||||
revision=1
|
revision=1
|
||||||
wrksrc="protobuf-${version}"
|
create_wrksrc="yes"
|
||||||
|
build_wrksrc="${pkgname}-${version}"
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
hostmakedepends="pkg-config automake libtool"
|
hostmakedepends="pkg-config automake libtool"
|
||||||
makedepends="zlib-devel"
|
makedepends="zlib-devel"
|
||||||
|
@ -11,10 +12,11 @@ maintainer="Andrew J. Hesford <ajh@sideband.org>"
|
||||||
license="BSD-3-Clause"
|
license="BSD-3-Clause"
|
||||||
homepage="https://developers.google.com/protocol-buffers/"
|
homepage="https://developers.google.com/protocol-buffers/"
|
||||||
changelog="https://raw.githubusercontent.com/google/protobuf/master/CHANGES.txt"
|
changelog="https://raw.githubusercontent.com/google/protobuf/master/CHANGES.txt"
|
||||||
distfiles="https://github.com/protocolbuffers/protobuf/archive/v${version}.tar.gz"
|
_googletest_commit="5ec7f0c4a113e2f18ac2c6cc7df51ad6afc24081"
|
||||||
checksum=dbb16fdbca8f277c9a194d9a837395cde408ca136738d94743130dd0de015efd
|
distfiles="https://github.com/protocolbuffers/protobuf/archive/v${version}.tar.gz
|
||||||
# Checks rely on googletest
|
https://github.com/google/googletest/archive/${_googletest_commit}.tar.gz"
|
||||||
make_check=no
|
checksum="75be42bd736f4df6d702a0e4e4d30de9ee40eac024c4b845d17ae4cc831fe4ae
|
||||||
|
0e2f36e8e403c125fd0ab02171bdb786d3b6b3875b6ccf3b2eb7969be8faecd0"
|
||||||
|
|
||||||
# Switch to versioned package
|
# Switch to versioned package
|
||||||
conflicts="protobuf18>=0 protobuf23>=0 protobuf24>=0
|
conflicts="protobuf18>=0 protobuf23>=0 protobuf24>=0
|
||||||
|
@ -32,6 +34,11 @@ if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
|
||||||
LDFLAGS+=" -latomic"
|
LDFLAGS+=" -latomic"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
post_extract() {
|
||||||
|
rmdir "${build_wrksrc}/third_party/googletest"
|
||||||
|
mv "googletest-${_googletest_commit}" "${build_wrksrc}/third_party/googletest"
|
||||||
|
}
|
||||||
|
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
autoreconf -fi
|
autoreconf -fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue