1 |
commit: 0621475511838acdff08eee20f5d33a99b349c0a |
2 |
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun May 8 16:18:47 2016 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 8 17:31:28 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=06214755 |
7 |
|
8 |
dev-libs/re2: bump to 2016-05-01 |
9 |
|
10 |
Closes: https://github.com/gentoo/gentoo/pull/1213 |
11 |
Package-Manager: portage-2.2.28_p97 |
12 |
|
13 |
dev-libs/re2/Manifest | 1 + |
14 |
dev-libs/re2/files/0.2016.05.01-pkgconfig.patch | 47 +++++++++++++++++++++++++ |
15 |
dev-libs/re2/re2-0.2016.05.01.ebuild | 47 +++++++++++++++++++++++++ |
16 |
3 files changed, 95 insertions(+) |
17 |
|
18 |
diff --git a/dev-libs/re2/Manifest b/dev-libs/re2/Manifest |
19 |
index 9abfb96..f6b3c6f 100644 |
20 |
--- a/dev-libs/re2/Manifest |
21 |
+++ b/dev-libs/re2/Manifest |
22 |
@@ -1,3 +1,4 @@ |
23 |
DIST re2-20130115.tgz 1020951 SHA256 a95d83ed8203817587f7cc368b6f7199d8a4b1558372c306b07201058b92e1fe SHA512 ef1378d89397bf594ece7817ef91171e467a3408046f769eca08beba900a0e70f652e7c4e3b667b3a9d5cef044b08ed74ef7d564ffb965ab75bb9a3964c9ab5a WHIRLPOOL 2cbf47b1816e35e5c7f359a310b4421ad635d1513167ffabf98db84397be800f8b98d4808705754f0e2db14bbeb0d62e47ac3abb385e299c503126a9f874daf5 |
24 |
DIST re2-20130712.tgz 1028311 SHA256 c30e43524280ebc2b9afa8c40ad477d0b2665bc81b663e9ae1b8b48e053af54b SHA512 910e7c7f5b3268746355c2e14dc6a4e32105207abcf8cb56b76fc554be41768e4e4a6b526c9335e95be0bb111025876b61ede1cfebcbec4a4062d53bb1448e08 WHIRLPOOL e5cf26a6c8586503c1639dd3f528cace8a4d7ca4c4ff97e08b12f45753ff67ad78656513658eabd678ac8ab88f1de5279960428fffe1b9e0535afdba44e7e8a3 |
25 |
DIST re2-20140304.tgz 1050493 SHA256 0bffd1a57de2f4b218ca0f77d8850bfd59c82944a98256c6edba25260e0196a7 SHA512 a426e8d69d2c7614087990180539c5b1aa2c544dee14b144098f810b76b6062d7de9efaf1e90e83c61c8e4382a066201862d09965f1a6a9f86e2912011ad9d40 WHIRLPOOL d998a6dd9edac52fe0c4ed7e895940380d9b67220711d68aed02294c8f65a644a59f77bddce116ccf79860c633046fa2b5060ef45d5cb5ea5bc0c1965cdce052 |
26 |
+DIST re2-2016-05-01.tar.gz 399509 SHA256 d9d13f0ea4e1c6628b1cb85eeee284d4fdd4948da94b1f205096254927092e3d SHA512 6d37ab1eae51a73f60d3c8280ea1162c420638363f0eb1313d7c2d5cee65a5abd4c2927da1a53572afbcb7d07fac2993a7e54c6cbc85e24aaae93c46dab19b14 WHIRLPOOL b601349800341d213b01219cf2171873be551488c71c2c06fbab1da27c20719fca12e0cfac30ac4e8ed0eb062a445b4c008491fd0e379f629434e0c9b4649a7e |
27 |
|
28 |
diff --git a/dev-libs/re2/files/0.2016.05.01-pkgconfig.patch b/dev-libs/re2/files/0.2016.05.01-pkgconfig.patch |
29 |
new file mode 100644 |
30 |
index 0000000..e4148a6 |
31 |
--- /dev/null |
32 |
+++ b/dev-libs/re2/files/0.2016.05.01-pkgconfig.patch |
33 |
@@ -0,0 +1,47 @@ |
34 |
+From 7dc941862819398db2ac4ae4239c8ed05431f928 Mon Sep 17 00:00:00 2001 |
35 |
+From: Mike Gilbert <floppym@g.o> |
36 |
+Date: Sun, 8 May 2016 11:54:00 -0400 |
37 |
+Subject: [PATCH] Substitute includedir and libdir in re2.pc |
38 |
+ |
39 |
+--- |
40 |
+ Makefile | 5 ++++- |
41 |
+ re2.pc => re2.pc.in | 5 ++--- |
42 |
+ 2 files changed, 6 insertions(+), 4 deletions(-) |
43 |
+ rename re2.pc => re2.pc.in (71%) |
44 |
+ |
45 |
+diff --git a/Makefile b/Makefile |
46 |
+index d0e2090..4a8d8a6 100644 |
47 |
+--- a/Makefile |
48 |
++++ b/Makefile |
49 |
+@@ -273,7 +273,10 @@ install: obj/libre2.a obj/so/libre2.$(SOEXT) |
50 |
+ $(INSTALL) obj/so/libre2.$(SOEXT) $(DESTDIR)$(libdir)/libre2.$(SOEXTVER00) |
51 |
+ ln -sf libre2.$(SOEXTVER00) $(DESTDIR)$(libdir)/libre2.$(SOEXTVER) |
52 |
+ ln -sf libre2.$(SOEXTVER00) $(DESTDIR)$(libdir)/libre2.$(SOEXT) |
53 |
+- sed -e "s#@prefix@#${prefix}#" re2.pc >$(DESTDIR)$(libdir)/pkgconfig/re2.pc |
54 |
++ sed -e "s#@prefix@#$(prefix)#" \ |
55 |
++ -e "s#@includedir@#$(includedir)#" \ |
56 |
++ -e "s#@libdir@#$(libdir)#" \ |
57 |
++ re2.pc.in >$(DESTDIR)$(libdir)/pkgconfig/re2.pc |
58 |
+ |
59 |
+ testinstall: static-testinstall shared-testinstall |
60 |
+ @echo |
61 |
+diff --git a/re2.pc b/re2.pc.in |
62 |
+similarity index 71% |
63 |
+rename from re2.pc |
64 |
+rename to re2.pc.in |
65 |
+index 91ba181..a04a70a 100644 |
66 |
+--- a/re2.pc |
67 |
++++ b/re2.pc.in |
68 |
+@@ -1,7 +1,6 @@ |
69 |
+ prefix=@prefix@ |
70 |
+-exec_prefix=${prefix} |
71 |
+-includedir=${prefix}/include |
72 |
+-libdir=${exec_prefix}/lib |
73 |
++includedir=@includedir@ |
74 |
++libdir=@libdir@ |
75 |
+ |
76 |
+ Name: re2 |
77 |
+ Description: RE2 is a fast, safe, thread-friendly regular expression engine. |
78 |
+-- |
79 |
+2.8.2 |
80 |
+ |
81 |
|
82 |
diff --git a/dev-libs/re2/re2-0.2016.05.01.ebuild b/dev-libs/re2/re2-0.2016.05.01.ebuild |
83 |
new file mode 100644 |
84 |
index 0000000..b3f944c |
85 |
--- /dev/null |
86 |
+++ b/dev-libs/re2/re2-0.2016.05.01.ebuild |
87 |
@@ -0,0 +1,47 @@ |
88 |
+# Copyright 1999-2016 Gentoo Foundation |
89 |
+# Distributed under the terms of the GNU General Public License v2 |
90 |
+# $Id$ |
91 |
+ |
92 |
+EAPI=6 |
93 |
+ |
94 |
+inherit multilib-minimal toolchain-funcs |
95 |
+ |
96 |
+# Different date format used upstream. |
97 |
+RE2_VER=${PV#0.} |
98 |
+RE2_VER=${RE2_VER//./-} |
99 |
+ |
100 |
+DESCRIPTION="An efficent, principled regular expression library" |
101 |
+HOMEPAGE="https://www.github.com/google/re2/" |
102 |
+SRC_URI="https://www.github.com/google/re2/archive/${RE2_VER}.tar.gz -> ${PN}-${RE2_VER}.tar.gz" |
103 |
+ |
104 |
+LICENSE="BSD" |
105 |
+# NOTE: Always run libre2 through abi-compliance-checker! |
106 |
+SLOT="0/0.2016.05.01" |
107 |
+KEYWORDS="~amd64 ~arm ~arm64 ~x86" |
108 |
+IUSE="icu" |
109 |
+ |
110 |
+RDEPEND="icu? ( dev-libs/icu:0= )" |
111 |
+DEPEND="${RDEPEND} |
112 |
+ icu? ( virtual/pkgconfig )" |
113 |
+ |
114 |
+S="${WORKDIR}/${PN}-${RE2_VER}" |
115 |
+ |
116 |
+PATCHES=( "${FILESDIR}/${PV}-pkgconfig.patch" ) |
117 |
+DOCS=( "AUTHORS" "CONTRIBUTORS" "README" "doc/syntax.txt" ) |
118 |
+HTML_DOCS=( "doc/syntax.html" ) |
119 |
+ |
120 |
+src_prepare() { |
121 |
+ default |
122 |
+ if use icu; then |
123 |
+ sed -i -e 's:^# \(\(CC\|LD\)ICU=.*\):\1:' Makefile || die |
124 |
+ fi |
125 |
+ multilib_copy_sources |
126 |
+} |
127 |
+ |
128 |
+src_configure() { |
129 |
+ tc-export AR CXX NM |
130 |
+} |
131 |
+ |
132 |
+multilib_src_install() { |
133 |
+ emake DESTDIR="${D}" prefix="${EPREFIX}/usr" libdir="\$(exec_prefix)/$(get_libdir)" install |
134 |
+} |