mirror of
https://github.com/yann64/haikuports.git
synced 2026-03-19 01:46:00 +01:00
protobuf, bump version (#6870)
This commit is contained in:
@@ -6,17 +6,16 @@ then you can use special generated source code to easily write and read your \
|
||||
structured data to and from a variety of data streams and using a variety of \
|
||||
languages – Java, C++, or Python."
|
||||
HOMEPAGE="https://github.com/google/protobuf"
|
||||
COPYRIGHT="2008-2018 Google"
|
||||
COPYRIGHT="2008-2022 Google"
|
||||
LICENSE="Apache v2"
|
||||
REVISION="2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="$HOMEPAGE/archive/v$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="36f81e03a0702f8f935fffd5a486dac1c0fc6d4bae1cd02c7a32448ad6e63bcb"
|
||||
PATCHES="protobuf-$portVersion.patchset"
|
||||
CHECKSUM_SHA256="8b28fdd45bab62d15db232ec404248901842e5340299a57765e48abe8a80d930"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
libVersion="28.0.2"
|
||||
libVersion="31.0.1"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
|
||||
PROVIDES="
|
||||
@@ -42,7 +41,6 @@ REQUIRES_devel="
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libgmock$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:autoreconf
|
||||
@@ -64,6 +62,7 @@ BUILD()
|
||||
{
|
||||
./autogen.sh
|
||||
runConfigure ./configure
|
||||
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
75
dev-libs/protobuf/protobuf28-3.17.2.recipe
Normal file
75
dev-libs/protobuf/protobuf28-3.17.2.recipe
Normal file
@@ -0,0 +1,75 @@
|
||||
SUMMARY="An efficient method of encoding structured data"
|
||||
DESCRIPTION="Protocol buffers are Google's language-neutral, platform-neutral, \
|
||||
extensible mechanism for serializing structured data – think XML, but smaller, \
|
||||
faster, and simpler. You define how you want your data to be structured once, \
|
||||
then you can use special generated source code to easily write and read your \
|
||||
structured data to and from a variety of data streams and using a variety of \
|
||||
languages – Java, C++, or Python."
|
||||
HOMEPAGE="https://github.com/google/protobuf"
|
||||
COPYRIGHT="2008-2018 Google"
|
||||
LICENSE="Apache v2"
|
||||
REVISION="2"
|
||||
SOURCE_URI="$HOMEPAGE/archive/v$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="36f81e03a0702f8f935fffd5a486dac1c0fc6d4bae1cd02c7a32448ad6e63bcb"
|
||||
SOURCE_DIR="protobuf-$portVersion"
|
||||
PATCHES="protobuf-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
libVersion="28.0.2"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
|
||||
PROVIDES="
|
||||
protobuf28$secondaryArchSuffix = $portVersion
|
||||
cmd:protoc$secondaryArchSuffix = $portVersion
|
||||
lib:libprotobuf$secondaryArchSuffix = $libVersionCompat
|
||||
lib:libprotobuf_lite$secondaryArchSuffix = $libVersionCompat
|
||||
lib:libprotoc$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libgmock$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:autoreconf
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:libtoolize$secondaryArchSuffix
|
||||
cmd:make
|
||||
"
|
||||
|
||||
TEST_REQUIRES="
|
||||
lib:libgmock$secondaryArchSuffix
|
||||
"
|
||||
|
||||
defineDebugInfoPackage protobuf28$secondaryArchSuffix \
|
||||
$libDir/libprotobuf.so.$libVersion \
|
||||
$libDir/libprotoc.so.$libVersion \
|
||||
$libDir/libprotobuf-lite.so.$libVersion
|
||||
|
||||
BUILD()
|
||||
{
|
||||
./autogen.sh
|
||||
runConfigure ./configure
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
rm $libDir/lib*.la $libDir/lib*.a
|
||||
|
||||
prepareInstalledDevelLibs libprotobuf-lite libprotobuf libprotoc
|
||||
fixPkgconfig
|
||||
rm -rf $developDir $binDir
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
make check
|
||||
}
|
||||
Reference in New Issue
Block a user