summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorgy Yakovlev <gyakovlev@gentoo.org>2020-09-25 01:22:36 -0700
committerGeorgy Yakovlev <gyakovlev@gentoo.org>2020-09-25 01:24:51 -0700
commit8f6e2b93dd0edc7fcab27f58e559df1c42d1ce2f (patch)
tree59c9ebcc3143c794f0667f248700bf8eaa4a6e08 /dev-cpp
parentdev-lang/python: Bump to 3.8.6 (diff)
downloadgentoo-8f6e2b93dd0edc7fcab27f58e559df1c42d1ce2f.tar.gz
gentoo-8f6e2b93dd0edc7fcab27f58e559df1c42d1ce2f.tar.bz2
gentoo-8f6e2b93dd0edc7fcab27f58e559df1c42d1ce2f.zip
dev-cpp/abseil-cpp: bump to 20200923 LTS
Package-Manager: Portage-3.0.8, Repoman-3.0.1 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'dev-cpp')
-rw-r--r--dev-cpp/abseil-cpp/Manifest2
-rw-r--r--dev-cpp/abseil-cpp/abseil-cpp-20200923.ebuild53
2 files changed, 55 insertions, 0 deletions
diff --git a/dev-cpp/abseil-cpp/Manifest b/dev-cpp/abseil-cpp/Manifest
index 7d38829c01df..8d35b49c47dd 100644
--- a/dev-cpp/abseil-cpp/Manifest
+++ b/dev-cpp/abseil-cpp/Manifest
@@ -1 +1,3 @@
DIST abseil-cpp-20200225.2.tar.gz 1679650 BLAKE2B bbadb2b86fd390f51322e687526c72a3b13caff6391974462a1146cc563616ce479330336a489a71e27b143e7cbea6695fc12c91fb721185a5116b3a6c5506b1 SHA512 75a607dee825e83c10dcd5e509515461f1b12c4aca861e4739ac4d41357b8e893dbfbe33873aa5c05463dde0891dedd7535af2ec59f173de29488e1b1321b335
+DIST abseil-cpp-20200923.tar.gz 1783122 BLAKE2B cd72bd6df04ddef6e4190c40dcfc34f95f424c30f3a5018e8305e603de58d737e15c1e33239d11bba2e3c669d6b18770a2f9de3075685f6ba38de26fc6e572b8 SHA512 8ad89fb1e0d70fdd1df6ac996c186243af43842eb08d09efbb1b7bcdab617dd394aa4bf93644f0eacc05d2ddf3db78e2ebe3eb496cfa24ece919f197a3a624d6
+DIST gtest-fe4d5f10840c5f62b984364a4d41719f1bc079a2.tar.gz 868165 BLAKE2B 5b27ec77505847e5ff5662896c5203712cfed4b5c8ee9a190aeb1e84ee101b52b9e7c923284704b87320565b543ab574f630e38ff0d568ee3402e289c3a52e17 SHA512 84bfc8c8f3532ee7e6839094714361ae2c8c0748dba3ba050766729192b6dcebe794d1b8f51ab46abb1a306ac8e6669897e805cca906688fdb5c8228bf88830a
diff --git a/dev-cpp/abseil-cpp/abseil-cpp-20200923.ebuild b/dev-cpp/abseil-cpp/abseil-cpp-20200923.ebuild
new file mode 100644
index 000000000000..1966a5446492
--- /dev/null
+++ b/dev-cpp/abseil-cpp/abseil-cpp-20200923.ebuild
@@ -0,0 +1,53 @@
+# Copyright 2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6,7,8} )
+
+inherit cmake python-any-r1
+
+# yes, it needs SOURCE, not just installed one
+GTEST_COMMIT="fe4d5f10840c5f62b984364a4d41719f1bc079a2"
+
+DESCRIPTION="Abseil Common Libraries (C++), LTS Branch"
+HOMEPAGE="https://abseil.io"
+SRC_URI="https://github.com/abseil/abseil-cpp/archive/${PV}.tar.gz -> ${P}.tar.gz
+ https://github.com/google/googletest/archive/${GTEST_COMMIT}.tar.gz -> gtest-${GTEST_COMMIT}.tar.gz"
+
+LICENSE="
+ Apache-2.0
+ test? ( BSD )
+"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc64 ~x86"
+IUSE="test"
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+BDEPEND="${PYTHON_DEPS}"
+
+src_prepare() {
+ cmake_src_prepare
+
+ # un-hardcode abseil compiler flags
+ sed -i \
+ -e '/"-maes",/d' \
+ -e '/"-msse4.1",/d' \
+ -e '/"-mfpu=neon"/d' \
+ -e '/"-march=armv8-a+crypto"/d' \
+ absl/copts/copts.py || die
+
+ # now generate cmake files
+ absl/copts/generate_copts.py || die
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DABSL_ENABLE_INSTALL=TRUE
+ -DABSL_LOCAL_GOOGLETEST_DIR="${WORKDIR}/googletest-${GTEST_COMMIT}"
+ -DABSL_RUN_TESTS=$(usex test)
+ -DBUILD_TESTING=$(usex test)
+ )
+ cmake_src_configure
+}