mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
misc/protobuf3: Updated for version 3.10.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
e87c3b1acc
commit
6b96212dea
3 changed files with 15 additions and 13 deletions
|
@ -23,7 +23,7 @@
|
|||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
PRGNAM=protobuf3
|
||||
VERSION=${VERSION:-3.9.1}
|
||||
VERSION=${VERSION:-3.10.0}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
|
@ -66,7 +66,6 @@ mkdir -p $TMP $PKG $OUTPUT
|
|||
cd $TMP
|
||||
rm -rf $SRCNAM-$VERSION
|
||||
tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
|
||||
tar xvf $CWD/$GTEST-$GTESTVERSION.tar.gz
|
||||
cd $SRCNAM-$VERSION
|
||||
chown -R root:root .
|
||||
find -L . \
|
||||
|
@ -75,12 +74,7 @@ find -L . \
|
|||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||
|
||||
# Avoid downloading gtest automatically
|
||||
# It doesn't detect system-wide gtest installation
|
||||
rm -rf gmock googletest
|
||||
cp -rf ../$GTEST-$GTESTVERSION/googlemock gmock
|
||||
cp -rf ../$GTEST-$GTESTVERSION/googletest googletest
|
||||
ln -sf ../googletest gmock/gtest
|
||||
patch -p1 < $CWD/protobuf3.patch
|
||||
|
||||
./autogen.sh
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
|
|
|
@ -1,10 +1,8 @@
|
|||
PRGNAM="protobuf3"
|
||||
VERSION="3.9.1"
|
||||
VERSION="3.10.0"
|
||||
HOMEPAGE="https://github.com/google/protobuf"
|
||||
DOWNLOAD="https://github.com/google/protobuf/archive/v3.9.1/protobuf-3.9.1.tar.gz \
|
||||
https://github.com/google/googletest/archive/release-1.8.1/googletest-release-1.8.1.tar.gz"
|
||||
MD5SUM="ea53e87a5ece35f77aa006b91aceee56 \
|
||||
2e6fbeb6a91310a16efe181886c59596"
|
||||
DOWNLOAD="https://github.com/google/protobuf/archive/v3.10.0/protobuf-3.10.0.tar.gz"
|
||||
MD5SUM="ea53e87a5ece35f77aa006b91aceee56"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES=""
|
||||
|
|
10
misc/protobuf3/protobuf3.patch
Normal file
10
misc/protobuf3/protobuf3.patch
Normal file
|
@ -0,0 +1,10 @@
|
|||
--- protobuf-3.10.0/src/google/protobuf/text_format.h.orig 2019-10-13 10:42:21.345593616 +0700
|
||||
+++ protobuf-3.10.0/src/google/protobuf/text_format.h 2019-10-13 10:42:34.151188015 +0700
|
||||
@@ -42,6 +42,7 @@
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
+#include <cmath>
|
||||
|
||||
#include <google/protobuf/stubs/common.h>
|
||||
#include <google/protobuf/descriptor.h>
|
Loading…
Reference in a new issue