diff options
author | prspkt <prspkt@protonmail.com> | 2018-08-01 10:26:09 +0300 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-09-03 05:44:58 +0000 |
commit | 3575ea6156aafcc92e29e105c3c9cb431e7d903c (patch) | |
tree | a3442d7550d31b6de8107a01615b1e67f5becd06 /main/protobuf | |
parent | 925d7ed1143733060e96c80f7ef9c6bc2a22e7ed (diff) | |
download | aports-3575ea6156aafcc92e29e105c3c9cb431e7d903c.tar.bz2 aports-3575ea6156aafcc92e29e105c3c9cb431e7d903c.tar.xz |
main/protobuf: fix test-suite
Diffstat (limited to 'main/protobuf')
-rw-r--r-- | main/protobuf/APKBUILD | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/main/protobuf/APKBUILD b/main/protobuf/APKBUILD index f60f1a80a4..3830603d13 100644 --- a/main/protobuf/APKBUILD +++ b/main/protobuf/APKBUILD @@ -3,6 +3,7 @@ pkgname=protobuf _gemname=google-protobuf pkgver=3.6.1 +_tstver=1.8.0 pkgrel=0 pkgdesc="Library for extensible, efficient structure packing" url="https://github.com/google/protobuf" @@ -12,6 +13,7 @@ depends_dev="zlib-dev" makedepends="$depends_dev autoconf automake libtool ruby ruby-dev ruby-rake" subpackages="ruby-$_gemname:_ruby $pkgname-dev $pkgname-vim::noarch" source="$pkgname-$pkgver.tar.gz::https://github.com/google/$pkgname/archive/v$pkgver.tar.gz + googletest-$_tstver.tar.gz::https://github.com/google/googletest/archive/release-$_tstver.tar.gz musl-fix.patch trim-rakefile.patch " @@ -22,6 +24,11 @@ prepare() { cd "$builddir" ./autogen.sh + + # symlink tests to the test directory + rm -rf third_party/* + ln -sf "$srcdir"/googletest-release-$_tstver \ + "$builddir"/third_party/googletest } build() { @@ -47,6 +54,14 @@ build() { --no-document \ --verbose \ $_gemname + + # build test-suite + local test; for test in googletest googlemock; do + cd "$builddir/third_party/googletest/$test" + autoreconf -vfi + ./configure + make + done } # TODO: Run tests for ruby gem. @@ -87,5 +102,6 @@ vim() { } sha512sums="1bc175d24b49de1b1e41eaf39598194e583afffb924c86c8d2e569d935af21874be76b2cbd4d9655a1d38bac3d4cd811de88bc2c72d81bad79115e69e5b0d839 protobuf-3.6.1.tar.gz +1dbece324473e53a83a60601b02c92c089f5d314761351974e097b2cf4d24af4296f9eb8653b6b03b1e363d9c5f793897acae1f0c7ac40149216035c4d395d9d googletest-1.8.0.tar.gz 875592bc5dc5efe9087ea1b340673f54c984ecd5aa3b110a2da136bdc28009af7ce1a9c57f4747ff809fc02eb6c39a0209c277177172af467a54172d9700188a musl-fix.patch d1d11fe76d2a1ae92f47f9eb1e0d94c67b7192a9dc4a382b6c0835f4fe4dbc2f98ca1b3c5095ad5b4e368581072330f943209c0decea02ebb47938588543fdb1 trim-rakefile.patch" |