mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 14:38:51 +02:00
re2: add recipe for version 2016.05.01.
This commit is contained in:
24
dev-libs/re2/patches/re2-0.2016.05.01.patchset
Normal file
24
dev-libs/re2/patches/re2-0.2016.05.01.patchset
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
From 6eafa9d127c28dda098a7024fc0a26502a7665ed Mon Sep 17 00:00:00 2001
|
||||||
|
From: Jerome Duval <jerome.duval@gmail.com>
|
||||||
|
Date: Wed, 11 May 2016 19:38:35 +0000
|
||||||
|
Subject: Haiku patch
|
||||||
|
|
||||||
|
|
||||||
|
diff --git a/Makefile b/Makefile
|
||||||
|
index d0e2090..e5a2cff 100644
|
||||||
|
--- a/Makefile
|
||||||
|
+++ b/Makefile
|
||||||
|
@@ -17,8 +17,8 @@ CXX?=g++
|
||||||
|
CXXFLAGS?=-O3 -g
|
||||||
|
LDFLAGS?=
|
||||||
|
# required
|
||||||
|
-RE2_CXXFLAGS?=-std=c++11 -pthread -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -I. $(CCICU) $(CCPCRE)
|
||||||
|
-RE2_LDFLAGS?=-pthread $(LDICU) $(LDPCRE)
|
||||||
|
+RE2_CXXFLAGS?=-std=c++11 -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -I. $(CCICU) $(CCPCRE)
|
||||||
|
+RE2_LDFLAGS?=$(LDICU) $(LDPCRE)
|
||||||
|
AR?=ar
|
||||||
|
ARFLAGS?=rsc
|
||||||
|
NM?=nm
|
||||||
|
--
|
||||||
|
2.2.2
|
||||||
|
|
||||||
69
dev-libs/re2/re2-0.2016.05.01.recipe
Normal file
69
dev-libs/re2/re2-0.2016.05.01.recipe
Normal file
@@ -0,0 +1,69 @@
|
|||||||
|
SUMMARY="A Regular Expression Library"
|
||||||
|
DESCRIPTION="RE2 is a fast, safe, thread-friendly alternative to backtracking \
|
||||||
|
regular expression engines like those used in PCRE, PERL and Python. It is a \
|
||||||
|
C++ library."
|
||||||
|
HOMEPAGE="http://github.com/google/re2"
|
||||||
|
LICENSE="BSD (3-clause)"
|
||||||
|
COPYRIGHT="2009 The RE2 Authors"
|
||||||
|
RE_VERSION="${portVersion//./-}"
|
||||||
|
RE_VERSION="${RE_VERSION#0-}"
|
||||||
|
SOURCE_URI="https://github.com/google/re2/archive/$RE_VERSION.tar.gz"
|
||||||
|
SOURCE_FILENAME="re2-$portVersion.tar.gz"
|
||||||
|
CHECKSUM_SHA256="d9d13f0ea4e1c6628b1cb85eeee284d4fdd4948da94b1f205096254927092e3d"
|
||||||
|
SOURCE_DIR="re2-$RE_VERSION"
|
||||||
|
PATCHES="re2-$portVersion.patchset"
|
||||||
|
REVISION="1"
|
||||||
|
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
||||||
|
SECONDARY_ARCHITECTURES="x86"
|
||||||
|
|
||||||
|
PROVIDES="
|
||||||
|
re2${secondaryArchSuffix} = $portVersion
|
||||||
|
lib:libre2${secondaryArchSuffix} = 0.0.0 compat >= 0
|
||||||
|
"
|
||||||
|
REQUIRES="
|
||||||
|
haiku$secondaryArchSuffix
|
||||||
|
"
|
||||||
|
|
||||||
|
PROVIDES_devel="
|
||||||
|
re2${secondaryArchSuffix}_devel = $portVersion
|
||||||
|
devel:libre2$secondaryArchSuffix = 0.0.0 compat >= 0
|
||||||
|
"
|
||||||
|
REQUIRES_devel="
|
||||||
|
re2$secondaryArchSuffix == $portVersion base
|
||||||
|
"
|
||||||
|
|
||||||
|
BUILD_REQUIRES="
|
||||||
|
haiku${secondaryArchSuffix}_devel
|
||||||
|
"
|
||||||
|
BUILD_PREREQUIRES="
|
||||||
|
cmd:gcc$secondaryArchSuffix
|
||||||
|
cmd:ld$secondaryArchSuffix
|
||||||
|
cmd:make
|
||||||
|
"
|
||||||
|
|
||||||
|
BUILD()
|
||||||
|
{
|
||||||
|
make $jobArgs
|
||||||
|
}
|
||||||
|
|
||||||
|
INSTALL()
|
||||||
|
{
|
||||||
|
make prefix=$prefix libdir=$libDir install
|
||||||
|
|
||||||
|
mkdir -p $includeDir
|
||||||
|
mv $prefix/include/* $includeDir
|
||||||
|
rmdir $prefix/include
|
||||||
|
|
||||||
|
# prepare develop/lib
|
||||||
|
prepareInstalledDevelLibs libre2
|
||||||
|
fixPkgconfig
|
||||||
|
|
||||||
|
# devel package
|
||||||
|
packageEntries devel \
|
||||||
|
$developDir
|
||||||
|
}
|
||||||
|
|
||||||
|
TEST()
|
||||||
|
{
|
||||||
|
make check
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user