You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.3 KiB
53 lines
1.3 KiB
8 years ago
|
# Copyright 1999-2016 Gentoo Foundation
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=6
|
||
|
|
||
|
inherit multilib-minimal toolchain-funcs
|
||
|
|
||
|
# Different date format used upstream.
|
||
|
RE2_VER=${PV#0.}
|
||
|
RE2_VER=${RE2_VER//./-}
|
||
|
|
||
|
DESCRIPTION="An efficent, principled regular expression library"
|
||
|
HOMEPAGE="https://github.com/google/re2"
|
||
|
SRC_URI="https://github.com/google/re2/archive/${RE2_VER}.tar.gz -> re2-${RE2_VER}.tar.gz"
|
||
|
|
||
|
LICENSE="BSD"
|
||
|
# NOTE: Always run libre2 through abi-compliance-checker!
|
||
|
# https://abi-laboratory.pro/tracker/timeline/re2/
|
||
8 years ago
|
SONAME="gentoo-2016-09-01"
|
||
|
SLOT="0/${SONAME}"
|
||
8 years ago
|
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
|
||
|
IUSE="icu"
|
||
|
|
||
|
RDEPEND="icu? ( dev-libs/icu:0=[${MULTILIB_USEDEP}] )"
|
||
|
DEPEND="${RDEPEND}
|
||
|
icu? ( virtual/pkgconfig )"
|
||
|
|
||
|
S="${WORKDIR}/re2-${RE2_VER}"
|
||
|
|
||
|
DOCS=( AUTHORS CONTRIBUTORS README doc/syntax.txt )
|
||
|
HTML_DOCS=( doc/syntax.html )
|
||
|
|
||
|
src_prepare() {
|
||
|
default
|
||
8 years ago
|
grep -qv '^SONAME=0$' Makefile || die "Check SONAME in Makefile"
|
||
8 years ago
|
if use icu; then
|
||
|
sed -i -e 's:^# \(\(CC\|LD\)ICU=.*\):\1:' Makefile || die
|
||
|
fi
|
||
|
multilib_copy_sources
|
||
|
}
|
||
|
|
||
|
src_configure() {
|
||
|
tc-export AR CXX NM
|
||
|
}
|
||
|
|
||
8 years ago
|
multilib_src_compile() {
|
||
|
emake SONAME="${SONAME}"
|
||
|
}
|
||
|
|
||
8 years ago
|
multilib_src_install() {
|
||
8 years ago
|
emake SONAME="${SONAME}" DESTDIR="${D}" prefix="${EPREFIX}/usr" libdir="\$(exec_prefix)/$(get_libdir)" install
|
||
8 years ago
|
}
|