From 469a5a1d524f4d7f946f3656cbf19611aa69a458 Mon Sep 17 00:00:00 2001 From: layman Date: Mon, 16 Oct 2017 20:45:02 +0200 Subject: [PATCH] Added PyCAM ebuild --- media-gfx/pycam/Manifest | 5 +++ .../pycam/files/pycam-0.6.1-pyopengl.patch | 9 +++++ media-gfx/pycam/metadata.xml | 10 ++++++ media-gfx/pycam/pycam-0.6.1.ebuild | 36 +++++++++++++++++++ media-gfx/pycam/pycam-9999.ebuild | 30 ++++++++++++++++ 5 files changed, 90 insertions(+) create mode 100644 media-gfx/pycam/Manifest create mode 100644 media-gfx/pycam/files/pycam-0.6.1-pyopengl.patch create mode 100644 media-gfx/pycam/metadata.xml create mode 100644 media-gfx/pycam/pycam-0.6.1.ebuild create mode 100644 media-gfx/pycam/pycam-9999.ebuild diff --git a/media-gfx/pycam/Manifest b/media-gfx/pycam/Manifest new file mode 100644 index 0000000..a8f90b8 --- /dev/null +++ b/media-gfx/pycam/Manifest @@ -0,0 +1,5 @@ +AUX pycam-0.6.1-pyopengl.patch 489 SHA256 820d313634d84375e8aa19ab4e9c065eae522cb15973d8adc06e867b4c81ecc1 SHA512 45c496ce8d82923679e2d4c60fc07ae23937d01c6ffc2efe6f09c48920f0d356f7855f40a2d66b4353981e925afa480be2a430b81d25507385f4407a3c41ec04 WHIRLPOOL 5ea31de1bf4d1d8e881d417a0a7fabc7601bbfe947118cb449f129ec9fcc10f53257ea47c6563ebf5c6098a8897664fe060af808c1f1595264c4d3871063f832 +DIST v0.6.1.tar.gz 3083640 SHA256 90505ab221b8ecf8a82234322213fbe8f55a8749aff17ba26c989c29217a15ac SHA512 18f6af3716069a8576077ecf4129daad6b689a53fdc86e6a33f0767c0162089fa0ac0200cb5f46a237de964fae9afb653955212f1b327e48bdf8b6a06c784584 WHIRLPOOL 9dcfa2ade46bd257518b5b612ee7db33e7d14501dad037896a8f3f8159677743de3b0eda11841c40d96d528a052f533eaff47165ca7724f75954e61218ec00a5 +EBUILD pycam-0.6.1.ebuild 759 SHA256 50ccce1fdf051e2e1d1017530eb5724426edff9a37bd8de18dad9cecac4a3ada SHA512 229f5171e9d72e249972748d2a9c884298221c4ac94883c5945af8da53781c0458c73ec4e583b2381333b001a50144b201220525640a53b52aa0f83d072a8511 WHIRLPOOL 9acf2332afca3544b8a10de9bfea22fb69b5ca3aefbae252a32e438178dd6d4a573e099e9b03ee38630fc43e2ad224630384fea8c62ccbc0c24b86323da300b4 +EBUILD pycam-9999.ebuild 669 SHA256 0d248d68186a7446f6f8f4d63776783b196d14066697550b22014492e0ea1dbb SHA512 a38f172f84b5fd0dcb7056b0dcf0daebc628b279aca1e1d963d17a6dd7cbe0b0e77d4c1a4c08c3e5104f93eba2ad6ff569aee74f5fb773046b1db0bfc2bf983f WHIRLPOOL 731751198ffeffcd8919448eef5dd2403d7f1ba78769c66e1cfcafb820223833451998b7a86fd021db1ea3be1f57c3250b4ced1df9a2c889f0b4550430aaead6 +MISC metadata.xml 290 SHA256 9f688a3bab3cd4d362d3eeb275027c73355b8cc5832405453d25244b12be8818 SHA512 b3ebcaa51728a7fe09029f792e3ad7dbaa50b30e98d4e523d7258ab2d70824f3722c40ba60cda6feae303dd3779cb65cefe560c9740f1b07e6d2c905660bf2eb WHIRLPOOL 96f9089a41ab4c5c577d9780c983a1ed99bb7025da9e4a1e3b2da86a3f6e37a4ed6522ff2a96771b021632d030d394b2f5527cb9bc8adf631cdcb438959ed057 diff --git a/media-gfx/pycam/files/pycam-0.6.1-pyopengl.patch b/media-gfx/pycam/files/pycam-0.6.1-pyopengl.patch new file mode 100644 index 0000000..115a702 --- /dev/null +++ b/media-gfx/pycam/files/pycam-0.6.1-pyopengl.patch @@ -0,0 +1,9 @@ +diff -urN pycam-0.6.1.orig/pycam/Gui/OpenGLTools.py pycam-0.6.1/pycam/Gui/OpenGLTools.py +--- pycam-0.6.1.orig/pycam/Gui/OpenGLTools.py 2017-03-11 03:44:32.000000000 +0100 ++++ pycam-0.6.1/pycam/Gui/OpenGLTools.py 2017-10-16 19:51:03.776578998 +0200 +@@ -91,4 +91,4 @@ + # center the cone + GL.glTranslatef(0, 0, -cone_length * position) + # draw the cone +- GLUT.glutSolidCone(cone_radius, cone_length, precision, 1) ++ GLUT.glutWireCone(cone_radius, cone_length, precision, 1) diff --git a/media-gfx/pycam/metadata.xml b/media-gfx/pycam/metadata.xml new file mode 100644 index 0000000..5efab33 --- /dev/null +++ b/media-gfx/pycam/metadata.xml @@ -0,0 +1,10 @@ + + + + + slis@gentoo.org + + + pycam + + diff --git a/media-gfx/pycam/pycam-0.6.1.ebuild b/media-gfx/pycam/pycam-0.6.1.ebuild new file mode 100644 index 0000000..b13382e --- /dev/null +++ b/media-gfx/pycam/pycam-0.6.1.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 python-r1 eutils + +DESCRIPTION="Open Source CAM - Toolpath Generation for 3-Axis CNC machining" +HOMEPAGE="http://pycam.sourceforge.net/" + +if [[ "${PV}" == "9999" ]]; then + EGIT_REPO_URI="https://github.com/SebKuzminsky/${PN}.git" + inherit git-r3 + KEYWORDS="" +else + SRC_URI="https://github.com/SebKuzminsky/${PN}/archive/v${PV}.tar.gz" + KEYWORDS="~amd64 ~x86" +fi + +LICENSE="GPL-3" +SLOT="0" + +DEPEND=" + virtual/python-enum34 + dev-python/pygtk + dev-python/pygtkglext + dev-python/pyopengl +" +RDEPEND="${DEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/"${P}"-pyopengl.patch + + distutils-r1_src_prepare +} diff --git a/media-gfx/pycam/pycam-9999.ebuild b/media-gfx/pycam/pycam-9999.ebuild new file mode 100644 index 0000000..c33a331 --- /dev/null +++ b/media-gfx/pycam/pycam-9999.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 python-r1 eutils + +DESCRIPTION="Open Source CAM - Toolpath Generation for 3-Axis CNC machining" +HOMEPAGE="http://pycam.sourceforge.net/" + +if [[ "${PV}" == "9999" ]]; then + EGIT_REPO_URI="https://github.com/SebKuzminsky/${PN}.git" + inherit git-r3 + KEYWORDS="" +else + SRC_URI="https://github.com/SebKuzminsky/${PN}/archive/v${PV}.tar.gz" + KEYWORDS="~amd64 ~x86" +fi + +LICENSE="GPL-3" +SLOT="0" + +DEPEND=" + virtual/python-enum34 + dev-python/pygtk + dev-python/pygtkglext + dev-python/pyopengl +" +RDEPEND="${DEPEND}"