diff options
Diffstat (limited to 'media-gfx/cura/cura-0.15.04.5_rc5.ebuild')
-rw-r--r-- | media-gfx/cura/cura-0.15.04.5_rc5.ebuild | 78 |
1 files changed, 0 insertions, 78 deletions
diff --git a/media-gfx/cura/cura-0.15.04.5_rc5.ebuild b/media-gfx/cura/cura-0.15.04.5_rc5.ebuild deleted file mode 100644 index c35602d8d18b..000000000000 --- a/media-gfx/cura/cura-0.15.04.5_rc5.ebuild +++ /dev/null @@ -1,78 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -PYTHON_COMPAT=( python2_7 ) - -inherit desktop gnome2-utils python-single-r1 xdg-utils - -MY_PV=${PV#0.} -MY_PV=${MY_PV/_rc/-RC} -MY_PN=Cura - -DESCRIPTION="A mesh slicer written in python to produce gcode for 3D printers" -HOMEPAGE="https://github.com/daid/Cura" -SRC_URI="https://github.com/daid/${MY_PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="AGPL-3" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="" -REQUIRED_USE="${PYTHON_REQUIRED_USE}" - -RDEPEND="${PYTHON_DEPS} - dev-python/wxpython:3.0[opengl,${PYTHON_USEDEP}] - >=dev-python/numpy-1.6.2[${PYTHON_USEDEP}] - >=dev-python/pyopengl-3.0.2[${PYTHON_USEDEP}] - >=dev-python/pyserial-2.6[${PYTHON_USEDEP}] - >=media-gfx/curaengine-${PV} -" -DEPEND="${RDEPEND} - >=dev-python/setuptools-0.6.34[${PYTHON_USEDEP}]" - -S="${WORKDIR}/${MY_PN}-${MY_PV}" - -PATCHES=( - "${FILESDIR}/${PN}-0.15.04.4-nopower.patch" -) - -src_prepare() { - cat > "${T}"/cura <<- CURAEOF || die - #!/bin/sh - PYTHONPATH="\$PYTHONPATH:${EPREFIX}/usr/share/cura/" "${PYTHON}" "${EPREFIX}/usr/share/cura/cura.py" "\$@" - CURAEOF - - default -} - -src_install() { - insinto /usr/share/cura - doins -r Cura resources plugins scripts/linux/cura.py - newicon "${S}/resources/images/c.png" "cura.png" - echo ${PV} > "${ED}"usr/share/cura/version || die - dobin "${T}"/cura - - python_optimize $(find "${ED}" -name '*.py' -exec dirname \{\} + | sort -u) -} - -pkg_preinst() { - gnome2_icon_savelist - - make_desktop_entry cura \ - Cura \ - "${EPREFIX}/usr/share/pixmaps/cura.png" \ - "Graphics;3DGraphics;Engineering;Development" -} - -pkg_postinst() { - xdg_desktop_database_update - xdg_mimeinfo_database_update - gnome2_icon_cache_update -} - -pkg_postrm() { - xdg_desktop_database_update - xdg_mimeinfo_database_update - gnome2_icon_cache_update -} |