diff --git a/dev-python/pyside6/Manifest b/dev-python/pyside6/Manifest new file mode 100644 index 0000000..7d6e77b --- /dev/null +++ b/dev-python/pyside6/Manifest @@ -0,0 +1,2 @@ +AUX pyside6-6.6.0-no-qtexampleicons.patch 221 BLAKE2B d45b4ebcd780a0151b793b5b21f5d7599ee5c427372ef19f518ac1c94306938178b0bfb603d9755aae9bddc4c31c35bb4648617c793f8e399f0f8dcce0d1f3bb SHA512 1da97be74142402454ef5384c58d2b2a792fea53b4155d7b5ede6d145496b45e4fd56723f8f7716150c2bba448ce816c6740059d7d38ae53d5cdf7c38c4acd7b +EBUILD pyside6-6.7.0.ebuild 10270 BLAKE2B ea396318e03c63acf86633b927089ca59416f67ccc39fa7acbc4b7dd568793dc027300ce0e55d657d50c9e4284b64539dac6cd8add4846cda2989914696ae11a SHA512 318bcfac95f5f0d028444493031ebad6d72bf7cf07ce56d219400f3171f49efb70f6c79318116b145830f8f6080de3dcdf60f01b488b58a3094b2a2d3f6d5c11 diff --git a/dev-python/pyside6/files/pyside6-6.6.0-no-qtexampleicons.patch b/dev-python/pyside6/files/pyside6-6.6.0-no-qtexampleicons.patch new file mode 100644 index 0000000..f775310 --- /dev/null +++ b/dev-python/pyside6/files/pyside6-6.6.0-no-qtexampleicons.patch @@ -0,0 +1,10 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 2e4c701..6792258 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -41,5 +41,3 @@ if(BUILD_TESTS) + endif() + + add_subdirectory(doc) +- +-add_subdirectory(qtexampleicons) diff --git a/dev-python/pyside6/pyside6-6.7.0.ebuild b/dev-python/pyside6/pyside6-6.7.0.ebuild new file mode 100644 index 0000000..d77aaec --- /dev/null +++ b/dev-python/pyside6/pyside6-6.7.0.ebuild @@ -0,0 +1,249 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# TODO: Add PyPy once officially supported. See also: +# https://bugreports.qt.io/browse/PYSIDE-535 +PYTHON_COMPAT=( python3_{10..12} ) + +LLVM_COMPAT=( {15..17} ) + +inherit cmake llvm-r1 python-r1 virtualx git-r3 + +# TODO: Add conditional support for "QtRemoteObjects" via a new "remoteobjects" +# USE flag after an external "dev-qt/qtremoteobjects" package has been created. +# TODO: Add conditional support for apidoc generation via a new "doc" USE flag. +# Note that doing so requires the Qt source tree, sphinx, and graphviz. Once +# ready, pass the ${QT_SRC_DIR} variable to cmake to enable this support. +# TODO: Disable GLES support if the "gles2-only" USE flag is disabled. Note +# that the "PySide6/QtGui/CMakeLists.txt" and +# "PySide6/QtOpenGLFunctions/CMakeLists.txt" files test for GLES support by +# testing whether the "Qt5::Gui" list property defined by +# "/usr/lib64/cmake/Qt5Gui/Qt5GuiConfig.cmake" at "dev-qt/qtgui" installation +# time contains the substring "opengles2". Since cmake does not permit +# properties to be overridden from the command line, these files must instead +# be conditionally patched to avoid these tests. An issue should be filed with +# upstream requesting a CLI-settable variable to control this. + +MY_PN="pyside-setup-everywhere-src" + +DESCRIPTION="Python bindings for the Qt framework" +HOMEPAGE="https://wiki.qt.io/PySide6" +#SRC_URI="https://download.qt.io/official_releases/QtForPython/pyside6/PySide6-${PV}-src/${MY_PN}-${PV}.tar.xz" +S="${WORKDIR}/${PN}-${PV}/sources/pyside6" +EGIT_REPO_URI="https://code.qt.io/pyside/pyside-setup" +EGIT_BRANCH="6.7.0" + +# See "sources/pyside6/PySide6/licensecomment.txt" for licensing details. +# Shall we allow essential modules to be disabled? They are: +# (core), gui, widgets, printsupport, sql, network, testlib, concurrent, +# x11extras (for X) +LICENSE="|| ( GPL-2 GPL-3+ LGPL-3 )" +SLOT="0" +KEYWORDS="~amd64" +IUSE=" + 3d bluetooth charts +concurrent +dbus designer gles2-only +gui help location + multimedia +network network-auth nfc positioning +opengl pdfium positioning + +printsupport qml quick quick3d serialport scxml sensors spatialaudio speech + +sql svg test +testlib webchannel webengine websockets +widgets +xml +" + +# Manually reextract these requirements on version bumps by running the +# following one-liner from within "${S}": +# $ grep 'set.*_deps' PySide6/Qt*/CMakeLists.txt +# Note that the "designer" USE flag corresponds to the "Qt6UiTools" module. +REQUIRED_USE="${PYTHON_REQUIRED_USE} + 3d? ( gui network ) + charts? ( gui widgets ) + designer? ( widgets ) + gles2-only? ( gui ) + gui? ( dbus opengl ) + help? ( network sql widgets ) + location? ( gui network positioning quick ) + multimedia? ( gui network ) + network-auth? ( network ) + opengl? ( gui ) + pdfium? ( gui ) + printsupport? ( widgets ) + qml? ( network ) + quick? ( gui network opengl qml ) + quick3d? ( gui network opengl qml quick ) + spatialaudio? ( multimedia ) + speech? ( multimedia ) + sql? ( widgets ) + svg? ( gui ) + testlib? ( widgets ) + webchannel? ( qml ) + webengine? ( network gui printsupport quick webchannel ) + websockets? ( network ) + widgets? ( gui ) +" + +# Tests fail pretty bad and I'm not fixing them right now +RESTRICT="test" + +# Minimal supported version of Qt. +QT_PV="$(ver_cut 1-3):6" + +RDEPEND="${PYTHON_DEPS} + ~dev-python/shiboken6-${PV}[${PYTHON_USEDEP},${LLVM_USEDEP}] + >=dev-qt/qtbase-${QT_PV}[concurrent?,dbus?,gles2-only=,network?,opengl?,sql?,widgets?,xml?] + 3d? ( >=dev-qt/qt3d-${QT_PV}[qml?,gles2-only=] ) + bluetooth? ( >=dev-qt/qtconnectivity-${QT_PV}[bluetooth] ) + charts? ( >=dev-qt/qtcharts-${QT_PV} ) + designer? ( >=dev-qt/qttools-${QT_PV}[designer] ) + gui? ( + >=dev-qt/qtbase-${QT_PV}[gui,jpeg(+)] + x11-libs/libxkbcommon + ) + help? ( >=dev-qt/qttools-${QT_PV}[assistant] ) + location? ( >=dev-qt/qtlocation-${QT_PV} ) + multimedia? ( >=dev-qt/qtmultimedia-${QT_PV} ) + network? ( >=dev-qt/qtbase-${QT_PV}[ssl] ) + network-auth? ( >=dev-qt/qtnetworkauth-${QT_PV} ) + nfc? ( >=dev-qt/qtconnectivity-${QT_PV}[nfc] ) + pdfium? ( >=dev-qt/qtwebengine-${QT_PV}[pdfium(-),widgets?] ) + positioning? ( >=dev-qt/qtpositioning-${QT_PV} ) + printsupport? ( >=dev-qt/qtbase-${QT_PV}[gui,widgets] ) + qml? ( >=dev-qt/qtdeclarative-${QT_PV}[widgets?] ) + quick3d? ( >=dev-qt/qtquick3d-${QT_PV} ) + scxml? ( >=dev-qt/qtscxml-${QT_PV} ) + sensors? ( >=dev-qt/qtsensors-${QT_PV}[qml?] ) + speech? ( >=dev-qt/qtspeech-${QT_PV} ) + serialport? ( >=dev-qt/qtserialport-${QT_PV} ) + svg? ( >=dev-qt/qtsvg-${QT_PV} ) + testlib? ( >=dev-qt/qtbase-${QT_PV}[gui] ) + webchannel? ( >=dev-qt/qtwebchannel-${QT_PV} ) + webengine? ( || ( + >=dev-qt/qtwebengine-${QT_PV}[alsa,widgets?] + >=dev-qt/qtwebengine-${QT_PV}[pulseaudio,widgets?] + ) + ) + websockets? ( >=dev-qt/qtwebsockets-${QT_PV} ) +" +DEPEND="${RDEPEND} + $(llvm_gen_dep ' + sys-devel/clang:${LLVM_SLOT} + sys-devel/llvm:${LLVM_SLOT} + ') + test? ( >=dev-qt/qtbase-${QT_PV}[gui] ) +" +# testlib is toggled by the gui flag on qtbase + +PATCHES=( + # References files not present in our dev-qt/qtbase + "${FILESDIR}/${PN}-6.6.0-no-qtexampleicons.patch" +) + +src_configure() { + # See collect_module_if_found macros in PySideHelpers.cmake + local mycmakeargs=( + -DBUILD_TESTS=$(usex test) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt63DAnimation=$(usex !3d) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt63DCore=$(usex !3d) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt63DExtras=$(usex !3d) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt63DInput=$(usex !3d) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt63DLogic=$(usex !3d) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt63DRender=$(usex !3d) + #-DCMAKE_DISABLE_FIND_PACKAGE_Qt6AxContainer=yes + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6Bluetooth=$(usex !bluetooth) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6Charts=$(usex !charts) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6Concurrent=$(usex !concurrent) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6DataVisualization=yes + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6DBus=$(usex !dbus) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6Designer=$(usex !designer) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6Gui=$(usex !gui) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6Help=$(usex !help) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6HttpServer=yes + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6Location=$(usex !location) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6Multimedia=$(usex !multimedia) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6MultimediaWidgets=$(usex !multimedia yes $(usex !widgets)) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6NetworkAuth=$(usex !network-auth) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6Network=$(usex !network) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6Nfc=$(usex !nfc) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6OpenGL=$(usex !opengl) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6OpenGLWidgets=$(usex !opengl yes $(usex !widgets)) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6Pdf=$(usex !pdfium) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6PdfWidgets=$(usex !pdfium yes $(usex !widgets)) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6Positioning=$(usex !positioning) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6PrintSupport=$(usex !printsupport) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6Qml=$(usex !qml) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6Quick3D=$(usex !quick3d) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6Quick=$(usex !quick) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6QuickControls2=yes + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6QuickWidgets=$(usex !quick yes $(usex !widgets)) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6RemoteObjects=yes + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6Scxml=$(usex !scxml) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6Sensors=$(usex !sensors) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6SerialPort=$(usex !serialport) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6SpatialAudio=$(usex !spatialaudio) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6Sql=$(usex !sql) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6StateMachine=yes + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6Svg=$(usex !svg) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6SvgWidgets=$(usex !svg yes $(usex !widgets)) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6Test=$(usex !testlib) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6TextToSpeech=$(usex !speech) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6UiTools=$(usex !designer) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6WebChannel=$(usex !webchannel) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6WebEngineCore=$(usex !webengine) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6WebEngineQuick=$(usex !webengine yes $(usex !quick)) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6WebEngineWidgets=$(usex !webengine yes $(usex !widgets)) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6WebSockets=$(usex !websockets) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6Widgets=$(usex !widgets) + #-DCMAKE_DISABLE_FIND_PACKAGE_Qt6WinExtras=yes + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6Xml=$(usex !xml) + # try to avoid pre-stripping + -DQFP_NO_OVERRIDE_OPTIMIZATION_FLAGS=yes + -DQFP_NO_STRIP=yes + + ) + + pyside6_configure() { + local mycmakeargs=( + "${mycmakeargs[@]}" + -DPYTHON_CONFIG_SUFFIX="-${EPYTHON}" + -DPYTHON_EXECUTABLE="${PYTHON}" + -DPYTHON_SITE_PACKAGES="$(python_get_sitedir)" + -DSHIBOKEN_PYTHON_SHARED_LIBRARY_SUFFIX="-${EPYTHON}" + ) + cmake_src_configure + } + python_foreach_impl pyside6_configure +} + +src_compile() { + python_foreach_impl cmake_src_compile +} + +src_test() { + local -x PYTHONDONTWRITEBYTECODE + python_foreach_impl virtx cmake_src_test +} + +src_install() { + pyside6_install() { + cmake_src_install + python_optimize + + # Uniquify the shiboken6 pkgconfig dependency in the PySide6 pkgconfig + # file for the current Python target. See also: + # https://github.com/leycec/raiagent/issues/73 + sed -i -e 's~^Requires: shiboken6$~&-'${EPYTHON}'~' \ + "${ED}/usr/$(get_libdir)"/pkgconfig/${PN}.pc || die + + # Uniquify the PySide6 pkgconfig file for the current Python target, + # preserving an unversioned "pyside6.pc" file arbitrarily associated + # with the last Python target. (See the previously linked issue.) + cp "${ED}/usr/$(get_libdir)"/pkgconfig/${PN}{,-${EPYTHON}}.pc || die + } + python_foreach_impl pyside6_install + + # CMakeLists.txt installs a "PySide6Targets-gentoo.cmake" file forcing + # downstream consumers (e.g., pyside6-tools) to target one + # "libpyside6-*.so" library linked to one Python interpreter. See also: + # https://bugreports.qt.io/browse/PYSIDE-1053 + # https://github.com/leycec/raiagent/issues/74 + sed -i -e 's~pyside6-python[[:digit:]]\+\.[[:digit:]]\+~pyside6${PYTHON_CONFIG_SUFFIX}~g' \ + "${ED}/usr/$(get_libdir)/cmake/PySide6/PySide6Targets-${CMAKE_BUILD_TYPE,,}.cmake" || die +} diff --git a/dev-python/shiboken6/Manifest b/dev-python/shiboken6/Manifest new file mode 100644 index 0000000..cae3b5a --- /dev/null +++ b/dev-python/shiboken6/Manifest @@ -0,0 +1 @@ +EBUILD shiboken6-6.7.0.ebuild 6605 BLAKE2B ccb6865e9364521d7af70a6a0291271059f915ec70c4559518d383c761a2b69c55b5b3768baecb35ae9d0fb70e382d758f8212507a6a4cb168f9ec02180360de SHA512 7d07f120dcb4cbc881f514ee7c4dbf5e56d6967d1ed3190606ef366c5f790376c7e3728a0f85ae15ed9b91b132b9f83dcfc609f5c4e2e7fbaa0400044cb67181 diff --git a/dev-python/shiboken6/shiboken6-6.7.0.ebuild b/dev-python/shiboken6/shiboken6-6.7.0.ebuild new file mode 100644 index 0000000..cf952d6 --- /dev/null +++ b/dev-python/shiboken6/shiboken6-6.7.0.ebuild @@ -0,0 +1,180 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# TODO: Split the "/usr/bin/shiboken6" binding generator from the +# "/usr/lib64/libshiboken6-*.so" family of shared libraries. The former +# requires everything (including Clang) at runtime; the latter only requires +# Qt and Python at runtime. Note that "pip" separates these two as well. See: +# https://doc.qt.io/qtforpython/shiboken6/faq.html#is-there-any-runtime-dependency-on-the-generated-binding +# Once split, the PySide6 ebuild should be revised to require +# "/usr/bin/shiboken6" at build time and "libshiboken6-*.so" at runtime. +# TODO: Add PyPy once officially supported. See also: +# https://bugreports.qt.io/browse/PYSIDE-535 +PYTHON_COMPAT=( python3_{10..12} ) + +LLVM_COMPAT=( {15..17} ) + +inherit cmake flag-o-matic llvm-r1 python-r1 toolchain-funcs git-r3 + +MY_PN="pyside-setup-everywhere-src" + +DESCRIPTION="Python binding generator for C++ libraries" +HOMEPAGE="https://wiki.qt.io/PySide6" +EGIT_REPO_URI="https://code.qt.io/pyside/pyside-setup" +EGIT_BRANCH="6.7.0" +S="${WORKDIR}/${PN}-${PV}/sources/shiboken6" + +# The "sources/shiboken6/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 shiboken6 output to be +# arbitrarily relicensed. (TODO) +LICENSE="|| ( GPL-2 GPL-3+ LGPL-3 ) GPL-3" +SLOT="0" +KEYWORDS="~amd64" +IUSE="+docstrings numpy test vulkan" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +# Tests fail pretty bad and I'm not fixing them right now +RESTRICT="test" + +# Minimal supported version of Qt. +QT_PV="$(ver_cut 1-3)*:6" + +# Since Clang is required at both build- and runtime, BDEPEND is omitted here. +RDEPEND="${PYTHON_DEPS} + =dev-qt/qtbase-${QT_PV} + $(llvm_gen_dep ' + sys-devel/clang:${LLVM_SLOT} + sys-devel/llvm:${LLVM_SLOT} + ') + docstrings? ( + >=dev-libs/libxml2-2.6.32 + >=dev-libs/libxslt-1.1.19 + ) + numpy? ( dev-python/numpy[${PYTHON_USEDEP}] ) + vulkan? ( dev-util/vulkan-headers ) +" +DEPEND="${RDEPEND} + test? ( =dev-qt/qtbase-${QT_PV}[gui] ) +" +# testlib is toggled by the gui flag on qtbase + +DOCS=( AUTHORS ) + +PATCHES=( +) + +src_prepare() { + # TODO: File upstream issue requesting a sane way to disable NumPy support. + if ! use numpy; then + sed -i -e '/\bprint(os\.path\.realpath(numpy))/d' \ + libshiboken/CMakeLists.txt || die + fi + + # Shiboken6 assumes Vulkan headers live under either "$VULKAN_SDK/include" + # or "$VK_SDK_PATH/include" rather than "${EPREFIX}/usr/include/vulkan". + if use vulkan; then + sed -i -e "s~\bdetectVulkan(&headerPaths);~headerPaths.append(HeaderPath{QByteArrayLiteral(\"${EPREFIX}/usr/include/vulkan\"), HeaderType::System});~" \ + ApiExtractor/clangparser/compilersupport.cpp || die + fi + + local clangver="$(CPP=clang clang-major-version)" + + # Clang 15 and older used the full version as a directory name. + if [[ ${clangver} -lt 16 ]]; then + clangver="$(CPP=clang clang-fullversion)" + fi + + # Shiboken6 assumes the "/usr/lib/clang/${CLANG_NEWEST_VERSION}/include/" + # subdirectory provides Clang builtin includes (e.g., "stddef.h") for the + # currently installed version of Clang, where ${CLANG_NEWEST_VERSION} is + # the largest version specifier that exists under the "/usr/lib/clang/" + # subdirectory. This assumption is false in edge cases, including when + # users downgrade from newer Clang versions but fail to remove those + # versions with "emerge --depclean". See also: + # https://github.com/leycec/raiagent/issues/85 + # + # Sadly, the clang-* family of functions exported by the "toolchain-funcs" + # eclass are defective, returning nonsensical placeholder strings if the + # end user has *NOT* explicitly configured their C++ compiler to be Clang. + # PySide6 does *NOT* care whether the end user has done so or not, as + # PySide6 unconditionally requires Clang in either case. See also: + # https://bugs.gentoo.org/619490 + sed -i -e 's~(findClangBuiltInIncludesDir())~(QStringLiteral("'"${EPREFIX}"'/usr/lib/clang/'"${clangver}"'/include"))~' \ + ApiExtractor/clangparser/compilersupport.cpp || die + + cmake_src_prepare +} + +src_configure() { + # -Werror=odr + # https://bugs.gentoo.org/925479 + # https://bugreports.qt.io/browse/PYSIDE-2619 + filter-lto + + # Minimal tests for now, 2 failing with the extended version + # FIXME Subscripted generics cannot be used with class and instance checks + local mycmakeargs=( + -DBUILD_TESTS=$(usex test) + -DDISABLE_DOCSTRINGS=$(usex !docstrings) + ) + + shiboken6_configure() { + local mycmakeargs=( + "${mycmakeargs[@]}" + -DPYTHON_CONFIG_SUFFIX="-${EPYTHON}" + -DPYTHON_EXECUTABLE="${PYTHON}" + -DUSE_PYTHON_VERSION="${EPYTHON#python}" + -DFORCE_LIMITED_API=OFF + ) + # CMakeLists.txt expects LLVM_INSTALL_DIR as an environment variable. + local -x LLVM_INSTALL_DIR="$(get_llvm_prefix)" + cmake_src_configure + } + python_foreach_impl shiboken6_configure +} + +src_compile() { + python_foreach_impl cmake_src_compile +} + +src_test() { + python_foreach_impl cmake_src_test +} + +src_install() { + shiboken6_install() { + cmake_src_install + python_optimize + + # Uniquify the "shiboken6" executable for the current Python target, + # preserving an unversioned "shiboken6" file arbitrarily associated + # with the last Python target. + cp "${ED}"/usr/bin/${PN}{,-${EPYTHON}} || die + + # Uniquify the Shiboken6 pkgconfig file for the current Python target, + # preserving an unversioned "shiboken6.pc" file arbitrarily associated + # with the last Python target. See also: + # https://github.com/leycec/raiagent/issues/73 + cp "${ED}/usr/$(get_libdir)"/pkgconfig/${PN}{,-${EPYTHON}}.pc || die + } + python_foreach_impl shiboken6_install + + # CMakeLists.txt installs a "Shiboken6Targets-gentoo.cmake" file forcing + # downstream consumers (e.g., PySide6) to target one "libshiboken6-*.so" + # library and one "shiboken6" executable linked to one Python interpreter. + # See also: + # https://bugreports.qt.io/browse/PYSIDE-1053 + # https://github.com/leycec/raiagent/issues/74 + sed -i \ + -e 's~shiboken6-python[[:digit:]]\+\.[[:digit:]]\+~shiboken6${PYTHON_CONFIG_SUFFIX}~g' \ + -e 's~/bin/shiboken6~/bin/shiboken6${PYTHON_CONFIG_SUFFIX}~g' \ + "${ED}/usr/$(get_libdir)"/cmake/Shiboken6/Shiboken6Targets-${CMAKE_BUILD_TYPE,,}.cmake || die + + # Remove the broken "shiboken_tool.py" script. By inspection, this script + # reduces to a noop. Moreover, this script raises the following exception: + # FileNotFoundError: [Errno 2] No such file or directory: '/usr/bin/../shiboken_tool.py': '/usr/bin/../shiboken_tool.py' + rm "${ED}"/usr/bin/shiboken_tool.py || die +} diff --git a/media-gfx/orcaslicer/Manifest b/media-gfx/orcaslicer/Manifest new file mode 100644 index 0000000..2671266 --- /dev/null +++ b/media-gfx/orcaslicer/Manifest @@ -0,0 +1,7 @@ +AUX exp.patch 2616 BLAKE2B fb26ce27883d98d758ebfe792e50d657b09b079c7118dbb8877c873c53285874c92c00818d1ea6135cd1de27522bdd6286712b2373a8acfb432dbf9d9a56dbbf SHA512 469fec9bf75be6a632423d334c2138c6878e271bea9489e2fc9ffcb1bc5aed114923c7ffb117e38fe9b1bc5f55013bfb66a095dab39f34eea9073aa0b5efb701 +AUX fix_2.2.0.patch 5656 BLAKE2B be5b34d1e4ad4d33bd52037d981831805ddc8f99a0290d30cb299faa862896b874a26ae9aa7d02a151b9de5cc069661bb7de991036451bc982c976d725a22cce SHA512 f2583a7e4cc9a44a7fbc34d1d41ecfcd7982c02d8a8c200b6ffc4432b743297cf91051317286be80fff36752a50e725151c5029c23077d5ac3eec77555c3b900 +AUX fix_upstream.patch 4120 BLAKE2B af970d45fd15e57c3e06c5a2fd0bd7f4d3b3bb2c99c00a495813fe7068b763a00988856f2bbc6a5a39601900d74dc6318b41a5d95f31081703fba6e0b8f576e0 SHA512 28822c5ab0223603716d4f90f58681eedd5128291cb76aaeeee8e3c95bbe7861ece45a7cb943c910edee53c7352bf20f40d91cd6495b8dacf3fe0437f9637c88 +AUX wxgtk3-wayland-fix.patch 485 BLAKE2B 4bd5634f39ba6132bb4216807fef254a88f07f5eb1162de12589c22b038c2876185a801ed481738d9fbbb04796952d304f17010fd61eb347213b649b13f3064d SHA512 4867192b069829ff0fd3d2bf86e2117979e505f4764223f7d0b874c15fad9cffca58d8e55a518a56cf156fee2187040115866a10e92aa903e87dc6ec909d0339 +DIST orcaslicer-2.2.0.tar.gz 129285168 BLAKE2B d8e3f89663a37b42eeeeefacf285abd36091258b756e7d9738334361c2498a489e0ab8505a766a50bf3c231166731df29fc21f3ad943a165199d88827bceac9d SHA512 6795212bccaf5973440bc814f5ed2142114193d065eefc1e55fed24692051cf1c7cc1d9faac7bf567433c98db62627dbb8079470dfaaa78fb120fbe184133b2k4 +EBUILD orcaslicer-2.2.0.ebuild 1826 BLAKE2B 8702ee6d8488d8c093bc46daf7c72332a42835cb0ed717ab5dd8c13dbd06d95ab32d6d1ef82e1a3a72a8da29239f3923d342d4d78501fe74bf97b4a231459170 SHA512 806d6a15aa4c1586af16d93d63823b628bf97cd22b45268ca9cf4bc169a610e6e447aadfb11c1eb6020c9b32f3871c332e38add89410b141e332a275b13a2ae3 +EBUILD orcaslicer-9999.ebuild 1826 BLAKE2B 8702ee6d8488d8c093bc46daf7c72332a42835cb0ed717ab5dd8c13dbd06d95ab32d6d1ef82e1a3a72a8da29239f3923d342d4d78501fe74bf97b4a231459170 SHA512 806d6a15aa4c1586af16d93d63823b628bf97cd22b45268ca9cf4bc169a610e6e447aadfb11c1eb6020c9b32f3871c332e38add89410b141e332a275b13a2ae3 diff --git a/media-gfx/orcaslicer/files/exp.patch b/media-gfx/orcaslicer/files/exp.patch new file mode 100644 index 0000000..1097566 --- /dev/null +++ b/media-gfx/orcaslicer/files/exp.patch @@ -0,0 +1,62 @@ +diff '--color=auto' -Naur OrcaSlicer-2.1.1_or/CMakeLists.txt OrcaSlicer-2.1.1/CMakeLists.txt +--- OrcaSlicer-2.1.1_or/CMakeLists.txt 2024-08-08 00:20:43.181267030 +0200 ++++ OrcaSlicer-2.1.1/CMakeLists.txt 2024-08-08 01:05:13.851091014 +0200 +@@ -403,6 +403,7 @@ + + if(NOT SLIC3R_STATIC) + target_compile_definitions(boost_headeronly INTERFACE BOOST_LOG_DYN_LINK) ++ target_compile_definitions(boost_headeronly INTERFACE BOOST_ALL_DYN_LINK) + endif() + + function(slic3r_remap_configs targets from_Cfg to_Cfg) +diff '--color=auto' -Naur OrcaSlicer-2.1.1_or/src/libslic3r/CMakeLists.txt OrcaSlicer-2.1.1/src/libslic3r/CMakeLists.txt +--- OrcaSlicer-2.1.1_or/src/libslic3r/CMakeLists.txt 2024-08-08 00:20:43.167933750 +0200 ++++ OrcaSlicer-2.1.1/src/libslic3r/CMakeLists.txt 2024-08-08 00:50:26.664223580 +0200 +@@ -466,6 +466,8 @@ + + if (SLIC3R_STATIC) + set(CGAL_Boost_USE_STATIC_LIBS ON CACHE BOOL "" FORCE) ++else() ++ set(CGAL_Boost_USE_STATIC_LIBS OF CACHE BOOL "" FORCE) + endif () + set(CGAL_DO_NOT_WARN_ABOUT_CMAKE_BUILD_TYPE ON CACHE BOOL "" FORCE) + +@@ -475,7 +477,7 @@ + find_package(OpenCV REQUIRED core) + cmake_policy(POP) + +-add_library(libslic3r_cgal STATIC ++add_library(libslic3r_cgal SHARED + CutSurface.hpp CutSurface.cpp + IntersectionPoints.hpp IntersectionPoints.cpp + MeshBoolean.hpp MeshBoolean.cpp +diff '--color=auto' -Naur OrcaSlicer-2.1.1_or/src/slic3r/CMakeLists.txt OrcaSlicer-2.1.1/src/slic3r/CMakeLists.txt +--- OrcaSlicer-2.1.1_or/src/slic3r/CMakeLists.txt 2024-08-08 00:20:43.177933710 +0200 ++++ OrcaSlicer-2.1.1/src/slic3r/CMakeLists.txt 2024-08-08 00:38:04.098392643 +0200 +@@ -601,7 +601,7 @@ + ) + endif () + +-add_library(libslic3r_gui STATIC ${SLIC3R_GUI_SOURCES}) ++add_library(libslic3r_gui SHARED ${SLIC3R_GUI_SOURCES}) + target_include_directories(libslic3r_gui PRIVATE Utils) + + if (WIN32) +@@ -656,14 +656,14 @@ + # link these libraries. + if (UNIX AND NOT APPLE) + find_package(GTK${SLIC3R_GTK} REQUIRED) +- if (FLATPAK) ++# if (FLATPAK) + # I don't know why this is needed, but for whatever reason slic3r isn't + # linking to X11 and webkit2gtk. force it. + find_package(X11 REQUIRED) + find_package(PkgConfig REQUIRED) +- pkg_check_modules(webkit2gtk REQUIRED webkit2gtk-4.1) ++ pkg_check_modules(webkit2gtk REQUIRED webkit2gtk-4.0) + target_link_libraries (libslic3r_gui ${X11_LIBRARIES} ${webkit2gtk_LIBRARIES}) +- endif() ++# endif() + target_include_directories(libslic3r_gui PRIVATE ${GTK${SLIC3R_GTK}_INCLUDE_DIRS}) + target_link_libraries(libslic3r_gui ${GTK${SLIC3R_GTK}_LIBRARIES} fontconfig) + diff --git a/media-gfx/orcaslicer/files/fix_2.2.0.patch b/media-gfx/orcaslicer/files/fix_2.2.0.patch new file mode 100644 index 0000000..99eb342 --- /dev/null +++ b/media-gfx/orcaslicer/files/fix_2.2.0.patch @@ -0,0 +1,134 @@ +diff '--color=auto' -Naur OrcaSlicer_or/src/libslic3r/AppConfig.cpp OrcaSlicer/src/libslic3r/AppConfig.cpp +--- OrcaSlicer_or/src/libslic3r/AppConfig.cpp 2024-08-07 20:51:23.931605968 +0200 ++++ OrcaSlicer/src/libslic3r/AppConfig.cpp 2024-08-07 20:51:41.591397327 +0200 +@@ -8,6 +8,7 @@ + #include "Thread.hpp" + #include "format.hpp" + #include "nlohmann/json.hpp" ++#include "format.hpp" + + #include + #include +diff '--color=auto' -Naur OrcaSlicer_or/src/libslic3r/GCode/Thumbnails.cpp OrcaSlicer/src/libslic3r/GCode/Thumbnails.cpp +--- OrcaSlicer_or/src/libslic3r/GCode/Thumbnails.cpp 2024-08-07 20:51:23.931605968 +0200 ++++ OrcaSlicer/src/libslic3r/GCode/Thumbnails.cpp 2024-08-07 20:51:41.594730621 +0200 +@@ -1,4 +1,6 @@ + #include "Thumbnails.hpp" ++#include "format.hpp" ++#include + #include "../miniz_extension.hpp" + #include "format.hpp" + +diff '--color=auto' -Naur OrcaSlicer_or/src/libslic3r/PrintConfig.cpp OrcaSlicer/src/libslic3r/PrintConfig.cpp +--- OrcaSlicer_or/src/libslic3r/PrintConfig.cpp 2024-08-07 20:51:23.934939261 +0200 ++++ OrcaSlicer/src/libslic3r/PrintConfig.cpp 2024-08-07 20:51:41.594730621 +0200 +@@ -5,6 +5,7 @@ + #include "format.hpp" + + #include "GCode/Thumbnails.hpp" ++#include "format.hpp" + #include + #include + #include +diff '--color=auto' -Naur OrcaSlicer_or/src/slic3r/Config/Version.cpp OrcaSlicer/src/slic3r/Config/Version.cpp +--- OrcaSlicer_or/src/slic3r/Config/Version.cpp 2024-08-07 20:51:23.938272555 +0200 ++++ OrcaSlicer/src/slic3r/Config/Version.cpp 2024-08-07 20:51:41.598063915 +0200 +@@ -3,6 +3,7 @@ + #include + + #include ++#include + #include + + #include "libslic3r/libslic3r.h" +diff '--color=auto' -Naur OrcaSlicer-2.1.1_or/src/libslic3r/CMakeLists.txt OrcaSlicer-2.1.1/src/libslic3r/CMakeLists.txt +--- OrcaSlicer-2.1.1_or/src/libslic3r/CMakeLists.txt 2024-08-07 21:02:29.347237569 +0200 ++++ OrcaSlicer-2.1.1/src/libslic3r/CMakeLists.txt 2024-08-07 22:16:05.859877170 +0200 +@@ -520,11 +520,7 @@ + find_package(JPEG REQUIRED) + + set(OCCT_LIBS +- TKXDESTEP +- TKSTEP +- TKSTEP209 +- TKSTEPAttr +- TKSTEPBase ++ TKDESTEP + TKXCAF + TKXSBase + TKVCAF +@@ -573,7 +573,7 @@ + mcut + JPEG::JPEG + qoi +- opencv_world ++ opencv_gapi + ) + + if(NOT WIN32) +diff '--color=auto' -Naur OrcaSlicer-2.1.1_or/src/libslic3r/CMakeLists.txt OrcaSlicer-2.1.1/src/libslic3r/CMakeLists.txt +--- OrcaSlicer-2.1.1_or/src/libslic3r/CMakeLists.txt 2024-08-08 17:56:36.349505920 +0200 ++++ OrcaSlicer-2.1.1/src/libslic3r/CMakeLists.txt 2024-08-08 18:30:15.871738122 +0200 +@@ -507,6 +507,7 @@ + if (MSVC AND "${CMAKE_SIZEOF_VOID_P}" STREQUAL "4") # 32 bit MSVC workaround + target_compile_definitions(libslic3r_cgal PRIVATE CGAL_DO_NOT_USE_MPZF) + endif () ++target_compile_definitions(libslic3r_cgal PRIVATE BOOST_ALL_DYN_LINK) + + encoding_check(libslic3r) + +diff '--color=auto' -Naur OrcaSlicer-2.1.1_or/src/libslic3r/CMakeLists.txt OrcaSlicer-2.1.1/src/libslic3r/CMakeLists.txt +--- OrcaSlicer-2.1.1_or/src/libslic3r/CMakeLists.txt 2024-08-08 17:56:36.349505920 +0200 ++++ OrcaSlicer-2.1.1/src/libslic3r/CMakeLists.txt 2024-08-08 18:47:26.687872804 +0200 +@@ -602,3 +603,7 @@ + if (SLIC3R_PCH AND NOT SLIC3R_SYNTAXONLY) + add_precompiled_header(libslic3r pchheader.hpp FORCEINCLUDE) + endif () ++ ++if (NOT SLIC3R_STATIC) ++ install(TARGETS libslic3r_cgal DESTINATION ${CMAKE_INSTALL_DIR}) ++endif() +diff '--color=auto' -Naur OrcaSlicer-2.1.1_or/src/slic3r/CMakeLists.txt OrcaSlicer-2.1.1/src/slic3r/CMakeLists.txt +--- OrcaSlicer-2.1.1_or/src/slic3r/CMakeLists.txt 2024-08-08 17:56:36.356172509 +0200 ++++ OrcaSlicer-2.1.1/src/slic3r/CMakeLists.txt 2024-08-08 18:48:15.594033021 +0200 +@@ -677,3 +677,7 @@ + + # Add a definition so that we can tell we are compiling slic3r. + target_compile_definitions(libslic3r_gui PRIVATE SLIC3R_CURRENTLY_COMPILING_GUI_MODULE) ++ ++if (NOT SLIC3R_STATIC) ++ install(TARGETS libslic3r_gui DESTINATION ${CMAKE_INSTALL_LIBDIR}) ++endif() +diff '--color=auto' -Naur OrcaSlicer-nightly-builds_or/src/libslic3r/Arachne/SkeletalTrapezoidationGraph.cpp OrcaSlicer-nightly-builds/src/libslic3r/Arachne/SkeletalTrapezoidationGraph.cpp +--- OrcaSlicer-nightly-builds_or/src/libslic3r/Arachne/SkeletalTrapezoidationGraph.cpp 2024-08-08 19:41:14.965987153 +0200 ++++ OrcaSlicer-nightly-builds/src/libslic3r/Arachne/SkeletalTrapezoidationGraph.cpp 2024-08-08 19:45:58.583011102 +0200 +@@ -6,6 +6,7 @@ + + + #include ++#include "../Line.hpp" + + namespace Slic3r::Arachne + { +diff '--color=auto' -Naur OrcaSlicer-nightly-builds_or/src/libslic3r/utils.cpp OrcaSlicer-nightly-builds/src/libslic3r/utils.cpp +--- OrcaSlicer-nightly-builds_or/src/libslic3r/utils.cpp 2024-08-08 19:41:14.972653748 +0200 ++++ OrcaSlicer-nightly-builds/src/libslic3r/utils.cpp 2024-08-08 19:43:07.831462664 +0200 +@@ -5,6 +5,7 @@ + #include + #include + #include ++#include + + #include "format.hpp" + #include "libslic3r.h" +diff '--color=auto' -Naur OrcaSlicer-nightly-builds_or/src/slic3r/GUI/Preferences.cpp OrcaSlicer-nightly-builds/src/slic3r/GUI/Preferences.cpp +--- OrcaSlicer-nightly-builds_or/src/slic3r/GUI/Preferences.cpp 2024-08-08 19:41:14.975987047 +0200 ++++ OrcaSlicer-nightly-builds/src/slic3r/GUI/Preferences.cpp 2024-08-08 19:58:02.008908684 +0200 +@@ -16,6 +16,7 @@ + #include "Widgets/RadioBox.hpp" + #include "Widgets/TextInput.hpp" + #include ++#include + #include + + #ifdef __WINDOWS__ diff --git a/media-gfx/orcaslicer/files/fix_upstream.patch b/media-gfx/orcaslicer/files/fix_upstream.patch new file mode 100644 index 0000000..8493dc0 --- /dev/null +++ b/media-gfx/orcaslicer/files/fix_upstream.patch @@ -0,0 +1,94 @@ +diff '--color=auto' -Naur OrcaSlicer-2.1.1_or/src/clipper2/Clipper2Lib/include/clipper2/clipper.core.h OrcaSlicer-2.1.1/src/clipper2/Clipper2Lib/include/clipper2/clipper.core.h +--- OrcaSlicer-2.1.1_or/src/clipper2/Clipper2Lib/include/clipper2/clipper.core.h 2024-08-06 21:34:19.517462360 +0200 ++++ OrcaSlicer-2.1.1/src/clipper2/Clipper2Lib/include/clipper2/clipper.core.h 2024-08-06 21:35:28.980051026 +0200 +@@ -114,7 +114,7 @@ + Point(const T2 x_, const T2 y_) { Init(x_, y_); } + + template +- explicit Point(const Point& p) { Init(p.x, p.y); } ++ explicit Point(const Point& p) { Init(p.x, p.y); } + + Point operator * (const double scale) const + { +diff '--color=auto' -Naur OrcaSlicer-nightly-builds_or/src/slic3r/GUI/PhysicalPrinterDialog.cpp OrcaSlicer-nightly-builds/src/slic3r/GUI/PhysicalPrinterDialog.cpp +--- OrcaSlicer-nightly-builds_or/src/slic3r/GUI/PhysicalPrinterDialog.cpp 2025-01-15 08:43:33.503222625 +0100 ++++ OrcaSlicer-nightly-builds/src/slic3r/GUI/PhysicalPrinterDialog.cpp 2025-01-15 19:56:33.947842341 +0100 +@@ -374,7 +374,7 @@ + // Always fill in the "printhost_port" combo box from the config and select it. + { + Choice* choice = dynamic_cast(m_optgroup->get_field("printhost_port")); +- choice->set_values({ m_config->opt_string("printhost_port") }); ++ choice->set_values(std::vector({ m_config->opt_string("printhost_port") })); + choice->set_selection(); + } + +diff '--color=auto' -Naur OrcaSlicer-nightly-builds_or/src/libslic3r/CMakeLists.txt OrcaSlicer-nightly-builds/src/libslic3r/CMakeLists.txt +--- OrcaSlicer-nightly-builds_or/src/libslic3r/CMakeLists.txt 2025-01-15 08:43:33.496555798 +0100 ++++ OrcaSlicer-nightly-builds/src/libslic3r/CMakeLists.txt 2025-01-16 09:13:06.347245982 +0100 +@@ -520,6 +520,8 @@ + set(OpenCASCADE_DIR "${CMAKE_PREFIX_PATH}/lib/cmake/occt") + find_package(OpenCASCADE REQUIRED) + target_include_directories(libslic3r PUBLIC ${OpenCASCADE_INCLUDE_DIR}) ++find_package(OpenCV REQUIRED) ++include_directories(${OpenCV_INCLUDE_DIRS}) + + find_package(JPEG REQUIRED) + +--- OrcaSlicer-nightly-builds_or/src/slic3r/CMakeLists.txt 2025-01-15 08:43:33.506556037 +0100 ++++ OrcaSlicer-nightly-builds/src/slic3r/CMakeLists.txt 2025-01-16 09:13:45.512411923 +0100 +@@ -2,6 +2,8 @@ + project(libslic3r_gui) + + include(PrecompiledHeader) ++find_package(OpenCV REQUIRED) ++include_directories(${OpenCV_INCLUDE_DIRS}) + + set(SLIC3R_GUI_SOURCES + pchheader.cpp +diff '--color=auto' -Naur OrcaSlicer_or/src/slic3r/Config/Version.cpp OrcaSlicer/src/slic3r/Config/Version.cpp +--- OrcaSlicer_or/src/slic3r/Config/Version.cpp 2024-08-07 20:51:23.938272555 +0200 ++++ OrcaSlicer/src/slic3r/Config/Version.cpp 2024-08-07 20:51:41.598063915 +0200 +@@ -3,6 +3,7 @@ + #include + + #include ++#include + #include + + #include "libslic3r/libslic3r.h" +diff '--color=auto' -Naur OrcaSlicer-2.1.1_or/src/libslic3r/CMakeLists.txt OrcaSlicer-2.1.1/src/libslic3r/CMakeLists.txt +--- OrcaSlicer-2.1.1_or/src/libslic3r/CMakeLists.txt 2024-08-07 21:02:29.347237569 +0200 ++++ OrcaSlicer-2.1.1/src/libslic3r/CMakeLists.txt 2024-08-07 22:16:05.859877170 +0200 +@@ -520,11 +520,7 @@ + find_package(JPEG REQUIRED) + + set(OCCT_LIBS +- TKXDESTEP +- TKSTEP +- TKSTEP209 +- TKSTEPAttr +- TKSTEPBase ++ TKDESTEP + TKXCAF + TKXSBase + TKVCAF +@@ -573,7 +573,7 @@ + mcut + JPEG::JPEG + qoi +- opencv_world ++ opencv_gapi + ) + + if(NOT WIN32) +diff '--color=auto' -Naur orcaslicer-9999_or/src/CMakeLists.txt orcaslicer-9999/src/CMakeLists.txt +--- orcaslicer-9999_or/src/CMakeLists.txt 2025-01-19 16:04:20.905223434 +0100 ++++ orcaslicer-9999/src/CMakeLists.txt 2025-01-19 16:04:22.731933455 +0100 +@@ -163,6 +163,7 @@ + target_link_libraries(OrcaSlicer "-framework OpenGL") + else () + target_link_libraries(OrcaSlicer -ldl) ++ target_link_libraries(OrcaSlicer -lX11 -lwebkit2gtk-4.1) + endif () + #if (WIN32) + # find_library(PSAPI_LIB NAMES Psapi) diff --git a/media-gfx/orcaslicer/files/wxgtk3-wayland-fix.patch b/media-gfx/orcaslicer/files/wxgtk3-wayland-fix.patch new file mode 100644 index 0000000..6111a25 --- /dev/null +++ b/media-gfx/orcaslicer/files/wxgtk3-wayland-fix.patch @@ -0,0 +1,21 @@ +diff --git a/src/slic3r/GUI/GUI.cpp b/src/slic3r/GUI/GUI.cpp +index ccd3cc0..be8bbe5 100644 +--- a/src/slic3r/GUI/GUI.cpp ++++ b/src/slic3r/GUI/GUI.cpp +@@ -33,6 +33,16 @@ class AppConfig; + + namespace GUI { + ++// wxgtk3 is broken on wayland: https://trac.wxwidgets.org/ticket/17702 ++#ifdef __WXGTK3__ ++struct ForceX11 { ++ ForceX11() { ++ setenv("GDK_BACKEND", "x11", 1); ++ } ++}; ++static struct ForceX11 forcex11; ++#endif ++ + #if __APPLE__ + IOPMAssertionID assertionID; + #endif diff --git a/media-gfx/orcaslicer/orcaslicer-2.2.0.ebuild b/media-gfx/orcaslicer/orcaslicer-2.2.0.ebuild new file mode 120000 index 0000000..37365db --- /dev/null +++ b/media-gfx/orcaslicer/orcaslicer-2.2.0.ebuild @@ -0,0 +1 @@ +orcaslicer-9999.ebuild \ No newline at end of file diff --git a/media-gfx/orcaslicer/orcaslicer-9999.ebuild b/media-gfx/orcaslicer/orcaslicer-9999.ebuild new file mode 100644 index 0000000..9fe957f --- /dev/null +++ b/media-gfx/orcaslicer/orcaslicer-9999.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +WX_GTK_VER="3.2-gtk3" +SL_GTK="3" +MY_PN="OrcaSlicer" +MY_PV="$(ver_rs 3 -)" + +inherit cmake xdg wxwidgets + +DESCRIPTION="Orca Slicer is an open source slicer for FDM printers." +HOMEPAGE="https://github.com/SoftFever/OrcaSlicer" +if [[ ${PV} == 9999 ]] ; then + inherit git-r3 + #SRC_URI="https://github.com/SoftFever/OrcaSlicer/archive/refs/tags/nightly-builds.tar.gz -> ${P}.tar.gz" + EGIT_REPO_URI="https://github.com/SoftFever/OrcaSlicer.git" +else + SRC_URI="https://github.com/SoftFever/OrcaSlicer/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/${MY_PN}-${MY_PV}" +fi + + +LICENSE="" +SLOT="0" +KEYWORDS="amd64 ~arm64 ~x86" +IUSE="test" + +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-libs/libmspack + media-libs/gstreamer + app-crypt/libsecret + gui-libs/eglexternalplatform + media-libs/glew + dev-libs/boost:=[nls] + media-libs/glfw + media-gfx/openvdb + dev-cpp/tbb + dev-libs/cereal + sci-libs/nlopt +