diff options
author | Patrick McLean <patrick.mclean@sony.com> | 2020-10-28 16:25:48 -0700 |
---|---|---|
committer | Patrick McLean <chutzpah@gentoo.org> | 2020-10-28 16:36:01 -0700 |
commit | 9e85dc42f965dbbdd20348a18e94dc404db080ec (patch) | |
tree | ebe50d839b13830e552e4ea0916e59012205318c /dev-libs/libpy | |
parent | dev-libs/simdjson: revbump, add ~ppc64 keyword, bump subslot (diff) | |
download | gentoo-9e85dc42f965dbbdd20348a18e94dc404db080ec.tar.gz gentoo-9e85dc42f965dbbdd20348a18e94dc404db080ec.tar.bz2 gentoo-9e85dc42f965dbbdd20348a18e94dc404db080ec.zip |
dev-libs/libpy: New package
Copyright: Sony Interactive Entertainment Inc.
Package-Manager: Portage-3.0.8, Repoman-3.0.2
Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
Diffstat (limited to 'dev-libs/libpy')
-rw-r--r-- | dev-libs/libpy/Manifest | 2 | ||||
-rw-r--r-- | dev-libs/libpy/files/libpy-0.2.5-no-werror.patch | 13 | ||||
-rw-r--r-- | dev-libs/libpy/files/libpy-0.2.5-permissions.patch | 13 | ||||
-rw-r--r-- | dev-libs/libpy/libpy-0.2.5.ebuild | 47 | ||||
-rw-r--r-- | dev-libs/libpy/metadata.xml | 11 |
5 files changed, 86 insertions, 0 deletions
diff --git a/dev-libs/libpy/Manifest b/dev-libs/libpy/Manifest new file mode 100644 index 000000000000..cc03b2563fe3 --- /dev/null +++ b/dev-libs/libpy/Manifest @@ -0,0 +1,2 @@ +DIST gtest-23b2a3b1cf803999fb38175f6e9e038a4495c8a5.tar.gz 862253 BLAKE2B a7d7acd2a41924d37c06e4908315d80df92815ed3e81973baf915951f2fcfeb4485ce690ba224cd7168537d81bf43b84efbecef8074dd3246a020e0877924803 SHA512 f01af7e17a3b7fb064bb5b7f1f75f0eca5e987a9976555734a88b7f7a18a763c620668da0628cb6bd1553a69b248bb0b91569b99cf873789c5b27700c25a479a +DIST libpy-0.2.5.tar.gz 201467 BLAKE2B 629f650740a54736bc014abd63c729c11070d7d226469668386b6fe187a05b830b7ababa17e6c90777c97d2af5397cb1295712218626c837c1cc2c5526e957fc SHA512 8127bdeffdf218837928d6e5743156987cb5e3ca943ec3e84f1fb5d01c1c5fa387eca3b8c276d60d1eeb18fad7a9555bc54c113c976f1d5f23f779336dd6ed71 diff --git a/dev-libs/libpy/files/libpy-0.2.5-no-werror.patch b/dev-libs/libpy/files/libpy-0.2.5-no-werror.patch new file mode 100644 index 000000000000..214d1764b182 --- /dev/null +++ b/dev-libs/libpy/files/libpy-0.2.5-no-werror.patch @@ -0,0 +1,13 @@ +diff --git a/Makefile b/Makefile +index 09e6e39..bed335b 100644 +--- a/Makefile ++++ b/Makefile +@@ -31,7 +31,7 @@ endif + OPTLEVEL ?= 3 + MAX_ERRORS ?= 5 + BASE_WARNINGS := \ +- -Werror -Wall -Wextra \ ++ -Wall -Wextra \ + -Wno-register \ + -Wno-missing-field-initializers \ + -Wsign-compare \ diff --git a/dev-libs/libpy/files/libpy-0.2.5-permissions.patch b/dev-libs/libpy/files/libpy-0.2.5-permissions.patch new file mode 100644 index 000000000000..8e5fc2762a9f --- /dev/null +++ b/dev-libs/libpy/files/libpy-0.2.5-permissions.patch @@ -0,0 +1,13 @@ +diff --git a/setup.py b/setup.py +index 61bc3da..a00b565 100644 +--- a/setup.py ++++ b/setup.py +@@ -43,7 +43,7 @@ class build_py(_build_py): + ) + + p = pathlib.Path(self.build_lib) / 'libpy/_build-and-run' +- p.chmod(p.stat().st_mode | stat.S_IEXEC) ++ p.chmod(p.stat().st_mode | stat.S_IEXEC | stat.S_IXGRP | stat.S_IXOTH) + + + setup( diff --git a/dev-libs/libpy/libpy-0.2.5.ebuild b/dev-libs/libpy/libpy-0.2.5.ebuild new file mode 100644 index 000000000000..567bbd05d595 --- /dev/null +++ b/dev-libs/libpy/libpy-0.2.5.ebuild @@ -0,0 +1,47 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6..9} ) + +inherit distutils-r1 + +GTEST_VER="23b2a3b1cf803999fb38175f6e9e038a4495c8a5" + +DESCRIPTION="Utilities for writing C++ extension modules" +HOMEPAGE="https://quantopian.github.io/libpy/ + https://github.com/quantopian/libpy" +SRC_URI=" + https://github.com/quantopian/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz + test? ( https://github.com/google/googletest/archive/${GTEST_VER}.tar.gz -> gtest-${GTEST_VER}.tar.gz ) +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="sparsehash test" + +COMMON_DEPEND=" + >=dev-python/numpy-1.11.3[${PYTHON_USEDEP}] +" +RDEPEND="${COMMON_DEPEND}" +BDEPEND="${COMMON_DEPEND} + sparsehash? ( dev-cpp/sparsehash ) + test? ( + dev-cpp/gtest + >=dev-python/pytest-4.4.1[${PYTHON_USEDEP}] + ) +" + +RESTRICT="!test? ( test )" +REQUIRES_USE="test? ( sparsehash )" + +PATCHES=( + "${FILESDIR}/libpy-0.2.5-no-werror.patch" + "${FILESDIR}/libpy-0.2.5-permissions.patch" +) + +python_test() { + emake GTEST_ROOT="${WORKDIR}/googletest-${GTEST_VER}" test || die "Tests failed with ${EPYTHON}" +} diff --git a/dev-libs/libpy/metadata.xml b/dev-libs/libpy/metadata.xml new file mode 100644 index 000000000000..aa65be8a5969 --- /dev/null +++ b/dev-libs/libpy/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>chutzpah@gentoo.org</email> + <name>Patrick McLean</name> + </maintainer> + <use> + <flag name="sparsehash">Include libpy wrappers for <pkg>dev-cpp/sparsehash</pkg></flag> + </use> +</pkgmetadata> |