diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /media-gfx/cura/cura-2.6.0.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'media-gfx/cura/cura-2.6.0.ebuild')
-rw-r--r-- | media-gfx/cura/cura-2.6.0.ebuild | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/media-gfx/cura/cura-2.6.0.ebuild b/media-gfx/cura/cura-2.6.0.ebuild new file mode 100644 index 000000000000..0f92d0ff5de6 --- /dev/null +++ b/media-gfx/cura/cura-2.6.0.ebuild @@ -0,0 +1,65 @@ +# 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 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" + +LICENSE="AGPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+usb" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +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}/${PN}-2.3.1-fix-install-paths.patch" ) +DOCS=( README.md ) + +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 +} |