mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
re2: drop old recipe. (#2658)
This commit is contained in:
@@ -1,24 +0,0 @@
|
||||
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
|
||||
|
||||
@@ -1,69 +0,0 @@
|
||||
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"
|
||||
COPYRIGHT="2009 The RE2 Authors"
|
||||
LICENSE="BSD (3-clause)"
|
||||
REVISION="2"
|
||||
RE_VERSION="${portVersion//./-}"
|
||||
SOURCE_URI="https://github.com/google/re2/archive/$RE_VERSION.tar.gz"
|
||||
CHECKSUM_SHA256="d9d13f0ea4e1c6628b1cb85eeee284d4fdd4948da94b1f205096254927092e3d"
|
||||
SOURCE_FILENAME="re2-$portVersion.tar.gz"
|
||||
SOURCE_DIR="re2-$RE_VERSION"
|
||||
PATCHES="re2-$portVersion.patchset"
|
||||
|
||||
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