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>
This commit is contained in:
Patrick McLean 2020-10-28 16:25:48 -07:00 committed by Patrick McLean
parent 76b92005c2
commit 9e85dc42f9
No known key found for this signature in database
GPG Key ID: 99A61A24B667B25D
5 changed files with 86 additions and 0 deletions

2
dev-libs/libpy/Manifest Normal file
View File

@ -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

View File

@ -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 \

View File

@ -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(

View File

@ -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}"
}

View File

@ -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>