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 pyside-9999.ebuild 5334 SHA256 12caf866c4644c39c1024dd2293d4a8c22c51897fb9193c01e6fcb796357c05d SHA512 6f59077dbf291ef7cb1dae0ac6bb334ee49df59149c2f31ed1981a9a7e5dc9e9745dafb8445eedf50d00b7ff9f9afe5f939b28e1484194055dc27f3dea58c5fc WHIRLPOOL 6cce0ad6ad5e89732f11b90bf3567383ca1827a2924825b66020527615513d4b1fe966b52f2cd1c9f1d438e8c6fa969c55115f4d98f44c821093827a0e2d3cf1
|
||||
MISC metadata.xml 1625 SHA256 5086ff64f05e6079c9e73bbe2a880deafe25f8eab5b9e67363e5f5aa97bcd727 SHA512 4ebab1fd1948a764a2afa8eba682a627b6df3165d37bfa814c024486c97d4d7286f21fce1ac4f446d439acf9df65e1f010e86153c6afe23cd642bffadd480270 WHIRLPOOL b8cba8c976891a8163097076065eb3b9781e6351572e3267ba8455369deb713231688e07879dc9fd4e23d3e027b29c3bfc48fdc598f76d1d0620fdfb1bcc73ce
|
||||
@@ -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,33 @@
|
||||
<?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="charts">Build QtCharts module</flag>
|
||||
<flag name="concurrent">Build QtConcurrent module</flag>
|
||||
<flag name="datavis">Build QtDataVisualization module</flag>
|
||||
<flag name="declarative">Build QtQml, QtQuick, and QtQuickWidgets modules</flag>
|
||||
<flag name="designer">Build QtDesigner and QtUiTools modules</flag>
|
||||
<flag name="gui">Build QtGui module</flag>
|
||||
<flag name="help">Build QtHelp module</flag>
|
||||
<flag name="multimedia">Build QtMultimedia and QtMultimediaWidgets modules</flag>
|
||||
<flag name="network">Build QtNetwork module</flag>
|
||||
<flag name="opengl">Build QtOpenGL module</flag>
|
||||
<flag name="printsupport">Build QtPrintSupport module</flag>
|
||||
<flag name="script">Build QtScript module</flag>
|
||||
<flag name="scripttools">Build QtScriptTools module</flag>
|
||||
<flag name="sql">Build QtSql module</flag>
|
||||
<flag name="svg">Build QtSvg module</flag>
|
||||
<flag name="testlib">Build QtTest module</flag>
|
||||
<flag name="webchannel">Build QtWebChannel module</flag>
|
||||
<flag name="webengine">Build QtWebEngine and QtWebEngineWidgets modules</flag>
|
||||
<flag name="webkit">Build QtWebKit and QtWebKitWidgets modules</flag>
|
||||
<flag name="websockets">Build QtWebSockets module</flag>
|
||||
<flag name="widgets">Build QtWidgets module</flag>
|
||||
<flag name="x11extras">Build QtX11Extras module</flag>
|
||||
<flag name="xmlpatterns">Build QtXmlPatterns module</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
@@ -0,0 +1,155 @@
|
||||
# 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 python-r1 virtualx git-r3 toolchain-funcs
|
||||
|
||||
DESCRIPTION="Python bindings for the Qt framework"
|
||||
HOMEPAGE="https://wiki.qt.io/PySide2"
|
||||
EGIT_REPO_URI="https://code.qt.io/pyside/pyside-setup.git"
|
||||
EGIT_BRANCH="5.9"
|
||||
EGIT_SUBMODULES=()
|
||||
|
||||
# See "sources/pyside2/PySide2/licensecomment.txt" for licensing details.
|
||||
LICENSE="|| ( GPL-2 GPL-3+ LGPL-3 )"
|
||||
SLOT="2"
|
||||
KEYWORDS=""
|
||||
|
||||
# TODO: speech
|
||||
IUSE="charts concurrent datavis declarative designer gui help multimedia
|
||||
network opengl printsupport script scripttools sql svg test testlib
|
||||
webchannel webengine webkit websockets widgets x11extras xmlpatterns"
|
||||
|
||||
# The requirements below were extracted from the output of
|
||||
# 'grep "set(.*_deps" "${S}"/PySide2/Qt*/CMakeLists.txt'
|
||||
REQUIRED_USE="
|
||||
${PYTHON_REQUIRED_USE}
|
||||
charts? ( widgets )
|
||||
datavis? ( gui )
|
||||
declarative? ( gui network )
|
||||
designer? ( widgets )
|
||||
help? ( widgets )
|
||||
multimedia? ( gui network )
|
||||
opengl? ( widgets )
|
||||
printsupport? ( widgets )
|
||||
scripttools? ( gui script widgets )
|
||||
sql? ( widgets )
|
||||
svg? ( widgets )
|
||||
testlib? ( widgets )
|
||||
webengine? ( gui network webchannel widgets )
|
||||
webkit? ( gui network printsupport widgets )
|
||||
websockets? ( network )
|
||||
widgets? ( gui )
|
||||
x11extras? ( gui )
|
||||
"
|
||||
|
||||
# Minimum version of Qt required, derived from the CMakeLists.txt line:
|
||||
# find_package(Qt5 ${QT_PV} REQUIRED COMPONENTS Core)
|
||||
QT_PV="5.9*:5"
|
||||
|
||||
DEPEND="
|
||||
${PYTHON_DEPS}
|
||||
>=dev-python/shiboken-${PV}:${SLOT}[${PYTHON_USEDEP}]
|
||||
=dev-qt/qtcore-${QT_PV}
|
||||
=dev-qt/qtxml-${QT_PV}
|
||||
charts? ( =dev-qt/qtcharts-${QT_PV} )
|
||||
concurrent? ( =dev-qt/qtconcurrent-${QT_PV} )
|
||||
datavis? ( =dev-qt/qtdatavis3d-${QT_PV} )
|
||||
declarative? ( =dev-qt/qtdeclarative-${QT_PV}[widgets?] )
|
||||
designer? ( =dev-qt/designer-${QT_PV} )
|
||||
gui? ( =dev-qt/qtgui-${QT_PV} )
|
||||
help? ( =dev-qt/qthelp-${QT_PV} )
|
||||
multimedia? ( =dev-qt/qtmultimedia-${QT_PV}[widgets?] )
|
||||
network? ( =dev-qt/qtnetwork-${QT_PV} )
|
||||
opengl? ( =dev-qt/qtopengl-${QT_PV} )
|
||||
printsupport? ( =dev-qt/qtprintsupport-${QT_PV} )
|
||||
script? ( =dev-qt/qtscript-${QT_PV} )
|
||||
sql? ( =dev-qt/qtsql-${QT_PV} )
|
||||
svg? ( =dev-qt/qtsvg-${QT_PV} )
|
||||
testlib? ( =dev-qt/qttest-${QT_PV} )
|
||||
webchannel? ( =dev-qt/qtwebchannel-${QT_PV} )
|
||||
webengine? ( =dev-qt/qtwebengine-${QT_PV}[widgets] )
|
||||
webkit? ( =dev-qt/qtwebkit-${QT_PV}[printsupport] )
|
||||
websockets? ( =dev-qt/qtwebsockets-${QT_PV} )
|
||||
widgets? ( =dev-qt/qtwidgets-${QT_PV} )
|
||||
x11extras? ( =dev-qt/qtx11extras-${QT_PV} )
|
||||
xmlpatterns? ( =dev-qt/qtxmlpatterns-${QT_PV} )
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
S=${WORKDIR}/${P}/sources/pyside2
|
||||
|
||||
src_prepare() {
|
||||
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() {
|
||||
# See COLLECT_MODULE_IF_FOUND macros in CMakeLists.txt
|
||||
local mycmakeargs=(
|
||||
-DBUILD_TESTS=$(usex test)
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_Qt5Charts=$(usex !charts)
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_Qt5Concurrent=$(usex !concurrent)
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_Qt5DataVisualization=$(usex !datavis)
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_Qt5Designer=$(usex !designer)
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_Qt5Gui=$(usex !gui)
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_Qt5Help=$(usex !help)
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_Qt5Multimedia=$(usex !multimedia)
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_Qt5MultimediaWidgets=$(usex !multimedia yes $(usex !widgets))
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_Qt5Network=$(usex !network)
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_Qt5OpenGL=$(usex !opengl)
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_Qt5PrintSupport=$(usex !printsupport)
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_Qt5Qml=$(usex !declarative)
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_Qt5Quick=$(usex !declarative)
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_Qt5QuickWidgets=$(usex !declarative yes $(usex !widgets))
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_Qt5Script=$(usex !script)
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_Qt5ScriptTools=$(usex !scripttools)
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_Qt5Sql=$(usex !sql)
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_Qt5Svg=$(usex !svg)
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_Qt5Test=$(usex !testlib)
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_Qt5UiTools=$(usex !designer)
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_Qt5WebChannel=$(usex !webchannel)
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_Qt5WebEngineWidgets=$(usex !webengine)
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_Qt5WebKit=$(usex !webkit)
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_Qt5WebKitWidgets=$(usex !webkit)
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_Qt5WebSockets=$(usex !websockets)
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_Qt5Widgets=$(usex !widgets)
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_Qt5X11Extras=$(usex !x11extras)
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_Qt5XmlPatterns=$(usex !xmlpatterns)
|
||||
)
|
||||
|
||||
configuration() {
|
||||
local mycmakeargs=(
|
||||
"${mycmakeargs[@]}"
|
||||
-DPYTHON_EXECUTABLE="${PYTHON}"
|
||||
)
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
python_foreach_impl configuration
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
CXXFLAGS="${CXXFLAGS} -I/usr/lib/gcc/"${CTARGET}"/$(gcc-fullversion)/include"
|
||||
echo "CXXFLAGS: ${CXXFLAGS}"
|
||||
python_foreach_impl cmake-utils_src_compile
|
||||
}
|
||||
|
||||
src_test() {
|
||||
local -x PYTHONDONTWRITEBYTECODE
|
||||
python_foreach_impl virtx 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