summaryrefslogtreecommitdiff
path: root/dev-python/uranium
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/uranium
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/uranium')
-rw-r--r--dev-python/uranium/Manifest7
-rw-r--r--dev-python/uranium/files/uranium-2.3.1-fix-install-paths.patch30
-rw-r--r--dev-python/uranium/metadata.xml23
-rw-r--r--dev-python/uranium/uranium-2.3.1.ebuild57
-rw-r--r--dev-python/uranium/uranium-2.6.0.ebuild57
5 files changed, 174 insertions, 0 deletions
diff --git a/dev-python/uranium/Manifest b/dev-python/uranium/Manifest
new file mode 100644
index 000000000000..a31641c66103
--- /dev/null
+++ b/dev-python/uranium/Manifest
@@ -0,0 +1,7 @@
+AUX uranium-2.3.1-fix-install-paths.patch 1440 SHA256 e24f2ed8b8dd513bfbfb992f9b01136c6ebdfd1216de366e56eadeeba47f3c2b SHA512 4dd1f75c29a6982a62560dcd3d27f5070e57246c4438dfa6ff52ec487c4d250df4fd6779023a524adf7500c6edba73086e619528df68b47c253d47c292c115c4 WHIRLPOOL c9cda4276c90cd6fb9e8142e74f2658d07c28c7105ec1e41bf18aecb36cdc34de44ff3ce3ebea947fb4aee24c4890ea7231f38024a9fe11138446693448954a3
+DIST uranium-2.3.1.tar.gz 509563 SHA256 e1fc3106845e5f635abd81ed75da7e8c095b11351322f4a5fc46c9870c1fa415 SHA512 4d0f959b8850608b6a34aef2901394734c994280b40bd863436b7c87eae2834214c1fe5264c4db6368f605076b42123dc7586a3ac7d217d4edd462edb6af9a88 WHIRLPOOL 519b78bc3fdba780b35c64531fc97de33922235ce7bb9c5f0891df3bef010ebb1439f73eb2307277198a32c00974639fe398693778b8973152c4a7eaa2f79ea0
+DIST uranium-2.6.0.tar.gz 826489 SHA256 3b84975bdac58a0c38fa26d3c1552db73ed04d1506874afc883cd1bca169b4e0 SHA512 1c0b1381ffa213f7f1f7bfa86c31fd270d16506f672636f558be6c7bc375dcfe76f73fe2d0600caf055528a268372f91eead005c737348b774a78ee272a4650b WHIRLPOOL 609ac4bfba14ff6e70387824530cd3933ffc68bb9a585930d51e69efde295962b6c5ad1257c57296ae555067a69154e36152d12a2e1a70c3d19b27b9d251f330
+EBUILD uranium-2.3.1.ebuild 1351 SHA256 ed5c614ffd373b7d508846139b341b4f6cc9e43d96d59a9b3200489386f68f58 SHA512 7027dd85e82a10c5cda2273899b4c80ece52c7e5e11470ca5c04d63ef2010eb11dea3bc06be868154c29b81131faf93ae3939f0938b67db6863f6537050e3c3f WHIRLPOOL 41024f405f0627fa425f2b6ae0229aff1843d45bb76e40554a190c9dedbb678764c1b06286bcfb990ccc98b1e30922673177c575ef8d897ff91f0fd0b74cee7f
+EBUILD uranium-2.6.0.ebuild 1353 SHA256 c341f05bd3ae22e93335811ac7145ba85a86bf422a33c3328ede374e7531de8e SHA512 0a04bb2f4001a9221f62b7663736e39221024e09f329082f606368da7ae6f3b3a067344ccd39488bbf8886539ff6c4b9699cfa89871bea0ce48398b41514984b WHIRLPOOL 153e472b176ed0a37687910d9cc5b1992eff8fb3ffc547366ee0964ac30e6914692d2820868ce0e938e1977205bc049f6abb0c578e3ca1c4d5d6b681fb1213fd
+MISC ChangeLog 1704 SHA256 30eac1ad9b4f6f1096ef2331ef0b1067bb67607d1b34beef10495c7c76d1c266 SHA512 fa943a1a7ba992a2257984813488508decd722fe8f88e9c3517a1bfaeabcedc7ec6d093be005643f37d4fb7aea5a0490a1351bb4b6f16dca535ec185a93fd7d1 WHIRLPOOL 30c7789becedc6c517690bdd26cdfb1b931a5e732d973417edd19df356e9a946802bbb67778e18bf3fa0ba5c2b1b3bee18ac465ae8ffb6f078b99f5ebe513744
+MISC metadata.xml 775 SHA256 4229a06c281e32e7cce1c0a2d58702387cdcd4621d93a7c2f3ea0b4deffec9ef SHA512 fe1b9a3245a7d3032983c74678c6ca5ff44ccdffaaa5d1a227fa115a775eb7fc031957649023df8637ed78f31eb078aa4f1f0f5a3faf3b51061bc470b2044bbe WHIRLPOOL 99f6b727548311bd731aee46adde94f003902e2d105cd096d63b414abca25c253ce230144b4f99fc84430d38a3c3030747f338488ee954fa64183b1c031bde73
diff --git a/dev-python/uranium/files/uranium-2.3.1-fix-install-paths.patch b/dev-python/uranium/files/uranium-2.3.1-fix-install-paths.patch
new file mode 100644
index 000000000000..a82484afd4f8
--- /dev/null
+++ b/dev-python/uranium/files/uranium-2.3.1-fix-install-paths.patch
@@ -0,0 +1,30 @@
+diff -urN Uranium-2.3.1.orig/CMakeLists.txt Uranium-2.3.1/CMakeLists.txt
+--- Uranium-2.3.1.orig/CMakeLists.txt 2016-10-27 18:22:23.000000000 +0300
++++ Uranium-2.3.1/CMakeLists.txt 2016-12-05 12:25:53.190933188 +0300
+@@ -43,14 +43,20 @@
+ # Build Translations
+ CREATE_TRANSLATION_TARGETS()
+
+-if(APPLE OR WIN32)
+- install(DIRECTORY UM DESTINATION lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages)
+-else()
+- install(DIRECTORY UM DESTINATION lib/python${PYTHON_VERSION_MAJOR}/dist-packages)
++if(NOT PYTHON_SITE_PACKAGES_DIR)
++ if(APPLE OR WIN32)
++ set(PYTHON_SITE_PACKAGES_DIR lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages
++ CACHE STRING "Directory to install Python bindings to")
++ else()
++ set(PYTHON_SITE_PACKAGES_DIR lib/python${PYTHON_VERSION_MAJOR}/dist-packages CACHE
++ STRING "Directory to install Python bindings to")
++ endif()
+ endif()
++
++install(DIRECTORY UM DESTINATION ${PYTHON_SITE_PACKAGES_DIR})
+ install(FILES ${CMAKE_SOURCE_DIR}/cmake/UraniumTranslationTools.cmake
+- DESTINATION ${CMAKE_INSTALL_DATADIR}/cmake-${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}/Modules/ )
++ DESTINATION ${CMAKE_INSTALL_DATADIR}/cmake/Modules/ )
+ install(DIRECTORY resources DESTINATION ${CMAKE_INSTALL_DATADIR}/uranium)
+-install(DIRECTORY plugins DESTINATION lib/uranium)
++install(DIRECTORY plugins DESTINATION ${CMAKE_INSTALL_LIBDIR}/uranium)
+
+ include(CPackConfig.cmake)
diff --git a/dev-python/uranium/metadata.xml b/dev-python/uranium/metadata.xml
new file mode 100644
index 000000000000..dc7980d97fee
--- /dev/null
+++ b/dev-python/uranium/metadata.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>tomboy64@sina.cn</email>
+ <name>Matthew Brewer</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>3dprint@gentoo.org</email>
+ <name>Gentoo 3D Printer Project</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Gentoo Proxy Maintainers Project</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>python@gentoo.org</email>
+ <name>Gentoo Python Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">Ultimaker/Uranium</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-python/uranium/uranium-2.3.1.ebuild b/dev-python/uranium/uranium-2.3.1.ebuild
new file mode 100644
index 000000000000..a6cb76986bf4
--- /dev/null
+++ b/dev-python/uranium/uranium-2.3.1.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python3_{4,5} )
+inherit cmake-utils python-single-r1
+
+MY_PN=Uranium
+MY_PV=${PV/_beta}
+
+DESCRIPTION="A Python framework for building 3D printing related applications"
+HOMEPAGE="https://github.com/Ultimaker/Uranium"
+SRC_URI="https://github.com/Ultimaker/${MY_PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="AGPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc test"
+
+RDEPEND="${PYTHON_DEPS}
+ ~dev-libs/libarcus-${PV}:*[${PYTHON_USEDEP}]
+ dev-python/PyQt5[${PYTHON_USEDEP},declarative,network,svg]
+ dev-python/numpy[${PYTHON_USEDEP}]
+ dev-qt/qtdeclarative:5
+ dev-qt/qtquickcontrols:5"
+DEPEND="${RDEPEND}
+ sys-devel/gettext
+ doc? ( app-doc/doxygen )
+ test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
+S="${WORKDIR}/${MY_PN}-${MY_PV}"
+PATCHES=( "${FILESDIR}/${PN}-2.3.1-fix-install-paths.patch" )
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+DOCS=( README.md )
+
+src_configure() {
+ local mycmakeargs=(
+ -DPYTHON_SITE_PACKAGES_DIR="$(python_get_sitedir)" )
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+ if use doc; then
+ cmake-utils_src_compile doc
+ DOCS+=( html )
+ fi
+}
+
+src_test() {
+ emake -C "${BUILD_DIR}" tests
+}
+
+src_install() {
+ cmake-utils_src_install
+ python_optimize "${D}usr/$(get_libdir)"
+}
diff --git a/dev-python/uranium/uranium-2.6.0.ebuild b/dev-python/uranium/uranium-2.6.0.ebuild
new file mode 100644
index 000000000000..42085e598e26
--- /dev/null
+++ b/dev-python/uranium/uranium-2.6.0.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python3_{4,5,6} )
+inherit cmake-utils python-single-r1
+
+MY_PN=Uranium
+MY_PV=${PV/_beta}
+
+DESCRIPTION="A Python framework for building 3D printing related applications"
+HOMEPAGE="https://github.com/Ultimaker/Uranium"
+SRC_URI="https://github.com/Ultimaker/${MY_PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="AGPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc test"
+
+RDEPEND="${PYTHON_DEPS}
+ ~dev-libs/libarcus-${PV}:*[${PYTHON_USEDEP}]
+ dev-python/PyQt5[${PYTHON_USEDEP},declarative,network,svg]
+ dev-python/numpy[${PYTHON_USEDEP}]
+ dev-qt/qtdeclarative:5
+ dev-qt/qtquickcontrols:5"
+DEPEND="${RDEPEND}
+ sys-devel/gettext
+ doc? ( app-doc/doxygen )
+ test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
+S="${WORKDIR}/${MY_PN}-${MY_PV}"
+PATCHES=( "${FILESDIR}/${PN}-2.3.1-fix-install-paths.patch" )
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+DOCS=( README.md )
+
+src_configure() {
+ local mycmakeargs=(
+ -DPYTHON_SITE_PACKAGES_DIR="$(python_get_sitedir)" )
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+ if use doc; then
+ cmake-utils_src_compile doc
+ DOCS+=( html )
+ fi
+}
+
+src_test() {
+ emake -C "${BUILD_DIR}" tests
+}
+
+src_install() {
+ cmake-utils_src_install
+ python_optimize "${D}usr/$(get_libdir)"
+}