summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhaarp <main.haarp@gmail.com>2018-12-02 18:46:22 +0100
committerhaarp <main.haarp@gmail.com>2018-12-02 18:46:22 +0100
commit566d5427ad063b48d52340fa40006396756354d6 (patch)
tree8478235a73a1aca9740a5e724c47e4f4635ccce9 /media-gfx
parentUse a more sensible path for slic3r... (diff)
downloadhaarp-566d5427ad063b48d52340fa40006396756354d6.tar.gz
haarp-566d5427ad063b48d52340fa40006396756354d6.tar.bz2
haarp-566d5427ad063b48d52340fa40006396756354d6.zip
Add cura 3.5.1
Signed-off-by: haarp <main.haarp@gmail.com>
Diffstat (limited to 'media-gfx')
-rw-r--r--media-gfx/cura/Manifest4
-rw-r--r--media-gfx/cura/cura-3.5.1.ebuild74
-rw-r--r--media-gfx/cura/files/cura-3.3.0-fix-install-paths.patch37
-rw-r--r--media-gfx/cura/metadata.xml13
-rw-r--r--media-gfx/curaengine/Manifest3
-rw-r--r--media-gfx/curaengine/curaengine-3.5.1.ebuild42
-rw-r--r--media-gfx/curaengine/metadata.xml10
-rw-r--r--media-gfx/fdm-materials/Manifest3
-rw-r--r--media-gfx/fdm-materials/fdm-materials-3.5.1.ebuild18
-rw-r--r--media-gfx/fdm-materials/metadata.xml10
10 files changed, 214 insertions, 0 deletions
diff --git a/media-gfx/cura/Manifest b/media-gfx/cura/Manifest
new file mode 100644
index 0000000..021073b
--- /dev/null
+++ b/media-gfx/cura/Manifest
@@ -0,0 +1,4 @@
+AUX cura-3.3.0-fix-install-paths.patch 1663 BLAKE2B 293bdecb0e6ef130e80bc078f89470908bdc74f9ede901405e8b99953dc5927986d51db3f3494004c44ea543621328c24860ff3ab0c1ff4452d2347f082a53fb SHA512 0c42638c0f0f0cc108c0aec19b0319037c4a17ac4fc6d05920191a927ee32ea4901ca4cb2ae5473c3ded2afbcabd2cad55b6cbaf3ad986ad205fc22936c31fa2
+DIST cura-3.5.1.tar.gz 23328481 BLAKE2B f32d787e31c0b57074ad6537f895602920eb9b03d1c21ce34fe1d1e5f91c29ec76fa1b3ec6a33435dc83a9cff055ceabefa372d329323aa5dd03b3122c4a57e4 SHA512 c8490a4f2877372f0568884ae2d5163b3d09a824ca8cfb3939fa317037448075bb338dcafcc01038b4694e359307dd8391557a134f6bf5452d7ed6a69ee702c1
+EBUILD cura-3.5.1.ebuild 1714 BLAKE2B 1ab7fbc7a4c736b6476ca9aabfbb18695dc3389273e4b5fae44c8bf06c326b57b186c52f1b01c71b1c4c5136238d483a5d8a6cd4a26c811e27c7cb5f4dac69ff SHA512 313f21dff13a71e419b4757d8f8fbecdeb43f5a8142521e3b0a44a70bbfb7b27eeb83511f8d2985246e1450ca1e78418fce7bc2c4032657eec8a93d46eecc615
+MISC metadata.xml 356 BLAKE2B 433b9aedd686617511b80d0ab376e7d651c7c546097fd142e0c6dd8cea8449f4e3abfffdc80dc023e70d0e890ed12d574574f84e05f57e0cb503a7757202bfa8 SHA512 c07f492ae3ab4e9667e500f78a2de30e52731c80548ee941417c4189e7054dce22994d220401f7d82e9a7180b138ab2e44aff1f9753fc4ae9d15d8375376b34b
diff --git a/media-gfx/cura/cura-3.5.1.ebuild b/media-gfx/cura/cura-3.5.1.ebuild
new file mode 100644
index 0000000..b713b18
--- /dev/null
+++ b/media-gfx/cura/cura-3.5.1.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python3_{5,6} )
+inherit cmake-utils fdo-mime gnome2-utils python-single-r1
+
+MY_PN=Cura
+
+DESCRIPTION="A 3D model slicing application for 3D printing"
+HOMEPAGE="https://github.com/Ultimaker/Cura"
+SRC_URI="https://github.com/Ultimaker/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+usb zeroconf"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+ >=dev-python/uranium-${PV:0:3}[${PYTHON_USEDEP}]
+ >=media-gfx/curaengine-${PV:0:3}
+ >=media-gfx/fdm-materials-${PV:0:3}
+ >=dev-libs/libsavitar-${PV:0:3}:=[python,${PYTHON_USEDEP}]
+ >=dev-libs/libcharon-${PV:0:3}[${PYTHON_USEDEP}]
+ sci-libs/Shapely[${PYTHON_USEDEP}]
+ usb? ( dev-python/pyserial[${PYTHON_USEDEP}] )
+ zeroconf? ( dev-python/zeroconf[${PYTHON_USEDEP}] )"
+
+DEPEND="${RDEPEND}
+ sys-devel/gettext"
+
+S="${WORKDIR}/${MY_PN}-${PV}"
+PATCHES=( "${FILESDIR}/${PN}-3.3.0-fix-install-paths.patch" )
+DOCS=( README.md )
+
+src_prepare() {
+ default
+ sed -i "s/set(CURA_VERSION \"master\"/set(CURA_VERSION \"${PV}\"/" CMakeLists.txt || die
+}
+
+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-3.3.0-fix-install-paths.patch b/media-gfx/cura/files/cura-3.3.0-fix-install-paths.patch
new file mode 100644
index 0000000..066f914
--- /dev/null
+++ b/media-gfx/cura/files/cura-3.3.0-fix-install-paths.patch
@@ -0,0 +1,37 @@
+--- Cura-3.1.0-orig/CMakeLists.txt 2017-12-04 18:05:38.000000000 +0200
++++ Cura-3.1.0/CMakeLists.txt 2017-12-29 18:11:19.508034087 +0200
+@@ -36,10 +36,20 @@
+
+ find_package(PythonInterp 3.5.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${LIB_SUFFIX}/cura)
++ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cura)
+ if(NOT APPLE AND NOT WIN32)
+ install(FILES cura_app.py
+ DESTINATION ${CMAKE_INSTALL_BINDIR}
+@@ -53,10 +63,10 @@
+ DESTINATION lib${LIB_SUFFIX}/python${PYTHON_VERSION_MAJOR}/dist-packages/cura)
+ else()
+ install(DIRECTORY cura
+- DESTINATION lib${LIB_SUFFIX}/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages
++ DESTINATION ${PYTHON_SITE_PACKAGES_DIR}
+ FILES_MATCHING PATTERN *.py)
+ install(FILES ${CMAKE_BINARY_DIR}/CuraVersion.py
+- DESTINATION lib${LIB_SUFFIX}/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages/cura)
++ DESTINATION ${PYTHON_SITE_PACKAGES_DIR}/cura)
+ endif()
+ install(FILES ${CMAKE_BINARY_DIR}/cura.desktop
+ DESTINATION ${CMAKE_INSTALL_DATADIR}/applications)
diff --git a/media-gfx/cura/metadata.xml b/media-gfx/cura/metadata.xml
new file mode 100644
index 0000000..47ffc02
--- /dev/null
+++ b/media-gfx/cura/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <slots>
+ <subslots>soname major version number</subslots>
+ </slots>
+ <use>
+ <flag name="usb">Access 3D printers via USB</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">Ultimaker/Cura</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/curaengine/Manifest b/media-gfx/curaengine/Manifest
new file mode 100644
index 0000000..4e41055
--- /dev/null
+++ b/media-gfx/curaengine/Manifest
@@ -0,0 +1,3 @@
+DIST curaengine-3.5.1.tar.gz 1315817 BLAKE2B 8096488bc62ec31427452e697ce3511b11c293197298330dc4e16e5bc61e07dfa16aca3a29ff29e1cf79938aceb85c76d81ed8ebe8f4ed0c3d177f7600835ec1 SHA512 99182c5f43b7b3e5f8276a839406d00930bf01db1a640f23d8d9663f67d17085ccaf6de156c552815da9ec07a9b462300919c07a04bc4d0f08e0f3c9e70c6c4b
+EBUILD curaengine-3.5.1.ebuild 864 BLAKE2B 46798444b183df3a6ac8d849f21cde7eba678a0bac6469fb74eb7f65493413446ea8662b2b5de1c2938c14d60ddca660d5b7e53a3f4a5af01024c2712c67cbd1 SHA512 a8a1c307ac9575f0ffde948c8e33c1deb6f6cd0c4210a6772a7faf3d76761a16f93002238270dca8faaed413e1af8ae33774d24032fe4a67a6fcbda94a0e7c50
+MISC metadata.xml 294 BLAKE2B 6422c3f1a76fd42e9ae56f9db4852923da7e2ed9e4adb91414dd2ae2e06e42a59e63fff8c0a97b986d32b59345b736ab858328c327477eb703a15d9863adc41b SHA512 425a89879a0ce8a754a227d718b5e6146e14f6e339a01f83c90b687a2e52df63a00ee4cb93dbdd093893a834adeb09910e3405146f1232404e6cac7251a52901
diff --git a/media-gfx/curaengine/curaengine-3.5.1.ebuild b/media-gfx/curaengine/curaengine-3.5.1.ebuild
new file mode 100644
index 0000000..2f94566
--- /dev/null
+++ b/media-gfx/curaengine/curaengine-3.5.1.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils
+
+MY_PN="CuraEngine"
+
+DESCRIPTION="A 3D model slicing engine for 3D printing"
+HOMEPAGE="https://github.com/Ultimaker/CuraEngine"
+SRC_URI="https://github.com/Ultimaker/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="AGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc test"
+
+RDEPEND="${PYTHON_DEPS}
+ ~dev-libs/libarcus-${PV}:*
+ dev-libs/protobuf"
+DEPEND="${RDEPEND}
+ doc? ( app-doc/doxygen )"
+
+DOCS=( README.md )
+
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+src_configure() {
+ local mycmakeargs=( "-DBUILD_TESTS=$(usex test ON OFF)" )
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_make
+ if use doc; then
+ doxygen
+ mv docs/html . || die
+ find html -name '*.md5' -or -name '*.map' -delete || die
+ DOCS+=( html )
+ fi
+}
diff --git a/media-gfx/curaengine/metadata.xml b/media-gfx/curaengine/metadata.xml
new file mode 100644
index 0000000..1b66c25
--- /dev/null
+++ b/media-gfx/curaengine/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <slots>
+ <subslots>soname major version number</subslots>
+ </slots>
+ <upstream>
+ <remote-id type="github">Ultimaker/CuraEngine</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/fdm-materials/Manifest b/media-gfx/fdm-materials/Manifest
new file mode 100644
index 0000000..760c9f6
--- /dev/null
+++ b/media-gfx/fdm-materials/Manifest
@@ -0,0 +1,3 @@
+DIST fdm-materials-3.5.1.tar.gz 22338 BLAKE2B 57e1ba8de795cb69e0fdbc7d42f51734978f9cd322ab52fcc9ebf813e9d63d1fdd6cbd2016747491f6ab277b9aae166e49d5bc07c48575c7f016c48eac47944c SHA512 1988724537b7537d524071412a86adbc8c8c99eb13c308f418d8f7d3b3f8241e610b82fd503dab2309a358531c1a158cc3aaecfe162e1a0ff2d429bf17c2fd8a
+EBUILD fdm-materials-3.5.1.ebuild 427 BLAKE2B f0c2ffd1704db661214fadee859f5ecb9a1653c7921649d5f75a7d90d1c22a5441cc614fc664943b4e2b1805d6d2a9e38a48c1ec6de8f029ff3df78ffed6587b SHA512 3ddb73a72ae39f3061c813f367cc5088b11617fde22acb7c77d43977174b4f00b156e1cf923ebe231c3a261e3684e9bbfecdc7bb9f08c08de3398a83b8c7ac44
+MISC metadata.xml 297 BLAKE2B 59b7e7317de1ae1936a86ef9f1d15e5b243ea11d6f5cfd534e903cb8d98881b651484362e1ff9606a3473cd4f1e0af9bf3939bac7e21a34b443cf483ee8845a4 SHA512 15eedb1694496f29d00a00ada15d417db05d436edacedbb8f951bf7963c239f89e7efb369dc24c8c6d1df79b72c8f7756b605f379c24497f7bc780de7f863e0b
diff --git a/media-gfx/fdm-materials/fdm-materials-3.5.1.ebuild b/media-gfx/fdm-materials/fdm-materials-3.5.1.ebuild
new file mode 100644
index 0000000..a11c962
--- /dev/null
+++ b/media-gfx/fdm-materials/fdm-materials-3.5.1.ebuild
@@ -0,0 +1,18 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils
+
+MY_PN="fdm_materials"
+
+DESCRIPTION="FDM materials for media-gfx/cura"
+HOMEPAGE="https://github.com/Ultimaker/fdm_materials"
+SRC_URI="https://github.com/Ultimaker/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="CC0-1.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+S="${WORKDIR}/${MY_PN}-${PV}"
diff --git a/media-gfx/fdm-materials/metadata.xml b/media-gfx/fdm-materials/metadata.xml
new file mode 100644
index 0000000..ab42c1c
--- /dev/null
+++ b/media-gfx/fdm-materials/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <slots>
+ <subslots>soname major version number</subslots>
+ </slots>
+ <upstream>
+ <remote-id type="github">Ultimaker/fdm_materials</remote-id>
+ </upstream>
+</pkgmetadata>