summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Shvetsov <alexxy@gentoo.org>2016-12-05 12:47:27 +0300
committerAlexey Shvetsov <alexxy@gentoo.org>2016-12-05 12:47:27 +0300
commitffd11e19963dba37faa4ed735ed4c286234089d9 (patch)
treeaa0c29e5c039cd692068542a91ceefb48091f9b8 /media-gfx/cura
parentmedia-gfx/curaengine: Version bump to 2.3.1 (diff)
downloadgentoo-ffd11e19963dba37faa4ed735ed4c286234089d9.tar.gz
gentoo-ffd11e19963dba37faa4ed735ed4c286234089d9.tar.bz2
gentoo-ffd11e19963dba37faa4ed735ed4c286234089d9.zip
media-gfx/cura: Version bump to 2.3.1
Package-Manager: portage-2.3.2
Diffstat (limited to 'media-gfx/cura')
-rw-r--r--media-gfx/cura/Manifest1
-rw-r--r--media-gfx/cura/cura-2.3.1.ebuild66
-rw-r--r--media-gfx/cura/files/cura-2.3.1-fix-install-paths.patch38
3 files changed, 105 insertions, 0 deletions
diff --git a/media-gfx/cura/Manifest b/media-gfx/cura/Manifest
index 113bc53e6371..0a377e48ca81 100644
--- a/media-gfx/cura/Manifest
+++ b/media-gfx/cura/Manifest
@@ -1,3 +1,4 @@
DIST cura-0.15.04.4.tar.gz 7265105 SHA256 9bce9cec7578792f7008a557930d16216ef97041a62071bb4e2b2a89638f1f54 SHA512 6d386c23731e2e02bc3b15d02aed1810622a57af2727325db29feb48eba8da0758925f3bc11fc6433a4b376706f66e6b00bfb3af2cac24cb184899848e11b1bd WHIRLPOOL cafd4bc3589214c3fc792c770eaa3f3590018f83ae82444c4f495245ab900748edabccb5a6518d9bd5b26295d7a953e3e60295b3baa90baf6abfe8a75012fbf2
DIST cura-0.15.04.5_rc5.tar.gz 7266640 SHA256 12d72b1ece64bfc00909866e725f39867c9d82abdd793892df210afd35014c89 SHA512 cafb2b6883838e3e427e3da0388a6cd93d666052d9029eeb98bafad7970c805c271a7599fbdc493164d790f101b92bbd511479d2fc9f91c64f73677c6cee0a2f WHIRLPOOL b6ed8e0f9e17ee4d2c1eae3a8f8a0293529f6a4b362445d9296b47247aab91d521c64541ea9110c8b169eb01661f3cae30583f8f959d4d7bc0a8c255455db58b
DIST cura-2.1.0_beta.tar.gz 19784684 SHA256 b81f09307968475e33b03199aaf968e25d2b37fc7db9777b95c03053b1836f83 SHA512 9e4b4f0a93098f9cadf7d8969725e17ac549b6caced602a3d088e65068ab7fcda5a18e7e6f293434e7042360f0e37d87074d82d8884370bfbfc10e07a4212ce2 WHIRLPOOL 19ae138fa4b7c840ffc2d61779a08d48624bc6078fa83a6bec280d1a725e93bad6682d9f21a0cbe3ee4a4343a47a7e6f58d3fd559804f278241c7a5bb7d3cf89
+DIST cura-2.3.1.tar.gz 8216743 SHA256 4542a5925b503f5416ebb8541fccb65d5c08164febafefdacb05b528c4cf73a8 SHA512 875c55a1b75f9e8c5bc6faac8f865a17ee371e973e3acf2528c09ee18bd517acbdde066f292c506ed67654119fdfeac86e28b41887807b767225e0ee6054301f WHIRLPOOL dfa7d3dac9f53d8682a4761900665598b7b75b08afd283a77f43351709eb2639c44b6694d626c17be98544acdceec50b8f6409fdb69efd1bb7d4a5f945e16cba
diff --git a/media-gfx/cura/cura-2.3.1.ebuild b/media-gfx/cura/cura-2.3.1.ebuild
new file mode 100644
index 000000000000..808733d616f1
--- /dev/null
+++ b/media-gfx/cura/cura-2.3.1.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="6"
+
+PYTHON_COMPAT=( python3_4 python3_5 )
+inherit cmake-utils fdo-mime gnome2-utils python-single-r1
+
+MY_PN=Cura
+MY_PV=${PV/_beta}
+
+DESCRIPTION="A 3D model slicing application for 3D printing"
+HOMEPAGE="https://github.com/Ultimaker/Cura"
+SRC_URI="https://github.com/Ultimaker/${MY_PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
+KEYWORDS="~amd64 ~x86"
+
+LICENSE="AGPL-3+"
+SLOT="0"
+IUSE="+usb"
+
+RDEPEND="${PYTHON_DEPS}
+ dev-libs/libarcus:=[python,${PYTHON_USEDEP}]
+ dev-python/uranium[${PYTHON_USEDEP}]
+ sci-libs/scipy[${PYTHON_USEDEP}]
+ usb? ( dev-python/pyserial[${PYTHON_USEDEP}] )
+ ~media-gfx/curaengine-${PV}"
+DEPEND="${RDEPEND}
+ sys-devel/gettext"
+
+S="${WORKDIR}/${MY_PN}-${MY_PV}"
+PATCHES=( "${FILESDIR}/${P}-fix-install-paths.patch" )
+DOCS=( README.md )
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+src_configure() {
+ local mycmakeargs=(
+ -DPYTHON_SITE_PACKAGES_DIR="$(python_get_sitedir)" )
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+}
+
+src_install() {
+ cmake-utils_src_install
+ doicon icons/*.png
+ python_optimize "${D}${get_libdir}"
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+ gnome2_icon_cache_update
+}
diff --git a/media-gfx/cura/files/cura-2.3.1-fix-install-paths.patch b/media-gfx/cura/files/cura-2.3.1-fix-install-paths.patch
new file mode 100644
index 000000000000..8f503ce73488
--- /dev/null
+++ b/media-gfx/cura/files/cura-2.3.1-fix-install-paths.patch
@@ -0,0 +1,38 @@
+diff -urN Cura-2.3.1.orig/CMakeLists.txt Cura-2.3.1/CMakeLists.txt
+--- Cura-2.3.1.orig/CMakeLists.txt 2016-11-04 16:24:43.000000000 +0300
++++ Cura-2.3.1/CMakeLists.txt 2016-12-05 12:20:23.126904644 +0300
+@@ -27,20 +27,31 @@
+
+ find_package(PythonInterp 3.4.0 REQUIRED)
+
++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 resources
+ DESTINATION ${CMAKE_INSTALL_DATADIR}/cura)
+ install(DIRECTORY plugins
+- DESTINATION lib/cura)
++ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cura)
+ if(NOT APPLE AND NOT WIN32)
+ install(FILES cura_app.py
+ DESTINATION ${CMAKE_INSTALL_BINDIR}
+ PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
+ RENAME cura)
+ install(DIRECTORY cura
+- DESTINATION lib/python${PYTHON_VERSION_MAJOR}/dist-packages
++ DESTINATION ${PYTHON_SITE_PACKAGES_DIR}
+ FILES_MATCHING PATTERN *.py)
+ install(FILES ${CMAKE_BINARY_DIR}/CuraVersion.py
+- DESTINATION lib/python${PYTHON_VERSION_MAJOR}/dist-packages/cura)
++ DESTINATION ${PYTHON_SITE_PACKAGES_DIR}/cura)
+ install(FILES ${CMAKE_BINARY_DIR}/cura.desktop
+ DESTINATION ${CMAKE_INSTALL_DATADIR}/applications)
+ install(FILES cura.sharedmimeinfo