New pyside:2 and shiboken:2 ebuilds
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
AUX rpath.cmake 393 SHA256 b89f3698d321e30afef0f7c32be009d5d926f92ba310ad44b384cdbc1a6a104d SHA512 b9f2d3b34fd31a7e289e3aa1c96110f92bc66f45e5bfaf796f86d52eb832e960caca0e314b87248d0a41c13c95f04402607cbb5ad7d0b3238d5bab5580c3a65f WHIRLPOOL 79dbd32a58b6bf8a408f8fef3dd918c1946c89c32731b515984cb0ed8230c63cd724150db636523484d525c2ebad1f78217c7ccb6a294221aa8d2ca8dcce6a1d
|
||||
EBUILD shiboken-9999.ebuild 2336 SHA256 5fef6b564d82401df51b978733f4fe765b057a70ea72e0fc48da692d92bb5a95 SHA512 94d6b4eddbc7da46ead7e0fa39b7b45389a28803834dc08e8acee88974616064bcf7af3b5036174f3c339cfc19d4bc43f806dbdb2ff8bab6f80da34af4e90e3f WHIRLPOOL 78463c632c598c8dfa94e9b114f31e475efdd5b5b74ca49a40797990c94566014872831e75fce0a3611d482e85ffab20a12d249cc67393c2769253971280e5af
|
||||
MISC metadata.xml 326 SHA256 128b953c1da35dd210f8368ffb75d00820e5ae11e51f84ea58216861d6f7c90b SHA512 d65136c0fcaf336df2f18df675392789b54f9569f7b2027835ed218500c53733db1e21c5121fbceb5cc93cb1442aa8faa4e324142e3ca9a73c954592d495a229 WHIRLPOOL 30423cb87a99b247f71a740b41fa12540186bb46f6affa614b00643d17cc502c40724eff746ff7d00233d072040b0ec4b5f775e5e5ac2f0d7d21fb921121da1e
|
||||
@@ -0,0 +1,10 @@
|
||||
# use, i.e. don't skip the full RPATH for the build tree
|
||||
SET(CMAKE_SKIP_BUILD_RPATH FALSE)
|
||||
|
||||
# when building, don't use the install RPATH already
|
||||
# (but later on when installing)
|
||||
SET(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
|
||||
|
||||
# add the automatically determined parts of the RPATH
|
||||
# which point to directories outside the build tree to the install RPATH
|
||||
SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
|
||||
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>qt@gentoo.org</email>
|
||||
<name>Gentoo Qt Project</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="numpy">Enable NumPy-based 2D array support</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
@@ -0,0 +1,93 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
|
||||
|
||||
inherit cmake-utils llvm python-r1 git-r3
|
||||
|
||||
DESCRIPTION="Tool for creating Python bindings for C++ libraries"
|
||||
HOMEPAGE="https://wiki.qt.io/PySide2"
|
||||
EGIT_REPO_URI="https://code.qt.io/pyside/pyside-setup.git"
|
||||
EGIT_BRANCH="5.9"
|
||||
EGIT_SUBMODULES=()
|
||||
|
||||
# The "sources/shiboken2/libshiboken" directory is triple-licensed under the GPL
|
||||
# v2, v3+, and LGPL v3. All remaining files are licensed under the GPL v3 with
|
||||
# version 1.0 of a Qt-specific exception enabling shiboken2 output to be
|
||||
# arbitrarily relicensed. (TODO)
|
||||
LICENSE="|| ( GPL-2 GPL-3+ LGPL-3 ) GPL-3"
|
||||
SLOT="2"
|
||||
KEYWORDS=""
|
||||
IUSE="numpy test"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
# Minimum version of Qt required.
|
||||
QT_PV="5.9*:5"
|
||||
|
||||
#FIXME: Determine the maximum supported version of clang.
|
||||
#FIXME: Determine exactly which versions of numpy are supported.
|
||||
DEPEND="
|
||||
${PYTHON_DEPS}
|
||||
dev-libs/libxml2
|
||||
dev-libs/libxslt
|
||||
=dev-qt/qtcore-${QT_PV}
|
||||
=dev-qt/qtxml-${QT_PV}
|
||||
=dev-qt/qtxmlpatterns-${QT_PV}
|
||||
sys-devel/clang:5
|
||||
numpy? ( dev-python/numpy )
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
S=${WORKDIR}/${P}/sources/shiboken2
|
||||
|
||||
DOCS=( AUTHORS )
|
||||
|
||||
# Ensure the path returned by get_llvm_prefix() contains clang as well.
|
||||
llvm_check_deps() {
|
||||
has_version "sys-devel/clang:${LLVM_SLOT}"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
#FIXME: File an upstream issue requesting a sane way to disable NumPy support.
|
||||
if ! use numpy; then
|
||||
sed -i -e '/print(os\.path\.realpath(numpy))/d' \
|
||||
libshiboken/CMakeLists.txt || die
|
||||
fi
|
||||
|
||||
if use prefix; then
|
||||
cp "${FILESDIR}"/rpath.cmake . || die
|
||||
sed -i -e '1iinclude(rpath.cmake)' CMakeLists.txt || die
|
||||
fi
|
||||
|
||||
cmake-utils_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
configuration() {
|
||||
local mycmakeargs=(
|
||||
-DBUILD_TESTS=$(usex test)
|
||||
-DPYTHON_EXECUTABLE="${PYTHON}"
|
||||
)
|
||||
# CMakeLists.txt expects LLVM_INSTALL_DIR as an environment variable.
|
||||
LLVM_INSTALL_DIR="$(get_llvm_prefix)" cmake-utils_src_configure
|
||||
}
|
||||
python_foreach_impl configuration
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
python_foreach_impl cmake-utils_src_compile
|
||||
}
|
||||
|
||||
src_test() {
|
||||
python_foreach_impl cmake-utils_src_test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
installation() {
|
||||
cmake-utils_src_install
|
||||
mv "${ED}"usr/$(get_libdir)/pkgconfig/${PN}2{,-${EPYTHON}}.pc || die
|
||||
}
|
||||
python_foreach_impl installation
|
||||
}
|
||||
Reference in New Issue
Block a user