summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Hajdan <phajdan.jr@gentoo.org>2012-10-31 03:36:41 +0000
committerPaweł Hajdan <phajdan.jr@gentoo.org>2012-10-31 03:36:41 +0000
commit5fa0b97c7459f955ad61339868e3762040651ed3 (patch)
tree1c022e46b59b1e3f5499e39659c33d09a2617b8c /dev-libs/re2
parentstable arm, bug #440318 (diff)
downloadgentoo-2-5fa0b97c7459f955ad61339868e3762040651ed3.tar.gz
gentoo-2-5fa0b97c7459f955ad61339868e3762040651ed3.tar.bz2
gentoo-2-5fa0b97c7459f955ad61339868e3762040651ed3.zip
Initial import. Ebuild by me, Mike Gilbert (floppym) and Jauhien Piatlicki. Bug #310605 by Alex Efros.
(Portage version: 2.1.11.9/cvs/Linux i686)
Diffstat (limited to 'dev-libs/re2')
-rw-r--r--dev-libs/re2/ChangeLog11
-rw-r--r--dev-libs/re2/Manifest4
-rw-r--r--dev-libs/re2/metadata.xml5
-rw-r--r--dev-libs/re2/re2-0_p20121029.ebuild45
4 files changed, 65 insertions, 0 deletions
diff --git a/dev-libs/re2/ChangeLog b/dev-libs/re2/ChangeLog
new file mode 100644
index 000000000000..126472478b3f
--- /dev/null
+++ b/dev-libs/re2/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for dev-libs/re2
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/re2/ChangeLog,v 1.1 2012/10/31 03:36:41 phajdan.jr Exp $
+
+*re2-0_p20121029 (31 Oct 2012)
+
+ 31 Oct 2012; Pawel Hajdan jr <phajdan.jr@gentoo.org> +re2-0_p20121029.ebuild,
+ +metadata.xml:
+ Initial import. Ebuild by me, Mike Gilbert (floppym) and Jauhien Piatlicki.
+ Bug #310605 by Alex Efros.
+
diff --git a/dev-libs/re2/Manifest b/dev-libs/re2/Manifest
new file mode 100644
index 000000000000..f08390affcd9
--- /dev/null
+++ b/dev-libs/re2/Manifest
@@ -0,0 +1,4 @@
+DIST re2-20121029.tgz 1018117 SHA256 197f3169e23f18367a8b9148c5d622faf19b72d844b2df2c9ec4475e68492882 SHA512 2d6b2e1c30d09690fa3c8ee36f5e1c6b2b057dc33f365fbe4e213e51f23d7861b15259fb9e476716320119134022618c9c418ce4716765febfe0bfc0ddc82822 WHIRLPOOL 97c46c95ccd58a88a7dbbb8e7677685bac76fbf63f7cb9e0d4fb3df806be032d4780099b716bad7a0f66825e65d973bbc737f4eb308d75c3122c7b2c3c590a8c
+EBUILD re2-0_p20121029.ebuild 1016 SHA256 2416f3a42873ef334d8404067c9b55c9c22c44350620460b1ea7160b08ad7a40 SHA512 41037dba7037e52663d979918b14ce836a8a3c9e4e5cb25e798ea06e5b8ad3f1d7a3402d08bc699023e2016e0dec01620755a3738e5de902e368082d4055fbe8 WHIRLPOOL cd777d11ec2153c37cee708b9807b09a375aca2f5c66b649570e836a167aa25f61e24f4d330333b3e0a322c71d5e3068e8eb3b9faa92214103cdf61c112803d2
+MISC ChangeLog 350 SHA256 17caf35600dded29602bdbaae01386754cbad19e46f70b3d6c651fd2c957ee90 SHA512 9bb8d99b516e6e59685592ad7d7bb081a1e4fb4c7090b0afdc441dee6ab165c3792a8dfef60f4a0ed13531d2dec2c8d3bfe6c81fa4bc303c2dfc2c9fa3a222bd WHIRLPOOL c722c40532756f23931a18fd35b49a5df9018268ac4cf678109d115cff35d88d27bbd4b77de5fbf74b02d211aa4bc846817985a0413204c9325a74e0cff507f4
+MISC metadata.xml 162 SHA256 8a3ecdcf518f45ec4843398f9896c9b4d1c867ff2cf2851cf40b06f756f111e8 SHA512 51796fe7e55b73dbfbe4a6b5fd089f5e8e4d327ff67d4a267692dda38380df5048ea77e8f058c466ae17726af5f099a3240b0500d53e421d95acc583164d3fe9 WHIRLPOOL 279b6ed997fab0d4278c01814bdd067068bceff8d1ce9933087828ce7598513b5a809013c996a3b134da6072c698a87ae151cfb56407fd62ff465b165197f5bf
diff --git a/dev-libs/re2/metadata.xml b/dev-libs/re2/metadata.xml
new file mode 100644
index 000000000000..fffcfc8b794e
--- /dev/null
+++ b/dev-libs/re2/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>chromium</herd>
+</pkgmetadata>
diff --git a/dev-libs/re2/re2-0_p20121029.ebuild b/dev-libs/re2/re2-0_p20121029.ebuild
new file mode 100644
index 000000000000..3aafb39ae77f
--- /dev/null
+++ b/dev-libs/re2/re2-0_p20121029.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/re2/re2-0_p20121029.ebuild,v 1.1 2012/10/31 03:36:41 phajdan.jr Exp $
+
+EAPI=4
+
+inherit eutils multilib toolchain-funcs
+
+DESCRIPTION="An efficent, principled regular expression library"
+HOMEPAGE="http://code.google.com/p/re2/"
+SRC_URI="http://re2.googlecode.com/files/${PN}-${PV##*_p}.tgz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+# TODO: the directory in the tarball should really be versioned.
+S="${WORKDIR}/${PN}"
+
+pkg_setup() {
+ makeopts=(
+ AR="$(tc-getAR)"
+ CXX="$(tc-getCXX)"
+ CXXFLAGS="${CXXFLAGS} -pthread"
+ LDFLAGS="${LDFLAGS} -pthread"
+ NM="$(tc-getNM)"
+ )
+}
+
+src_compile() {
+ emake "${makeopts[@]}"
+}
+
+src_test() {
+ emake "${makeopts[@]}" shared-test shared-bigtest
+}
+
+src_install() {
+ emake DESTDIR="${ED}" prefix=usr libdir=usr/$(get_libdir) install
+ # TODO: the upstream should not build static library at all.
+ rm "${ED}/usr/$(get_libdir)/libre2.a" || die
+ dodoc AUTHORS CONTRIBUTORS README doc/syntax.txt
+ dohtml doc/syntax.html
+}