summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /media-gfx/printrun
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'media-gfx/printrun')
-rw-r--r--media-gfx/printrun/Manifest1
-rw-r--r--media-gfx/printrun/files/printrun-no-py-in-binaries.patch396
-rw-r--r--media-gfx/printrun/metadata.xml17
-rw-r--r--media-gfx/printrun/printrun-20140730.ebuild31
4 files changed, 445 insertions, 0 deletions
diff --git a/media-gfx/printrun/Manifest b/media-gfx/printrun/Manifest
new file mode 100644
index 00000000000..e95b2262913
--- /dev/null
+++ b/media-gfx/printrun/Manifest
@@ -0,0 +1 @@
+DIST printrun-20140730.tar.gz 902029 SHA256 3412882627a82bba0fcd0cdf7639074085d3355e5aef48ccdc91687b027a24fa SHA512 c60d3db1a9255a56aad30a8290e18707cc34774af8cc52be042a3fabe653a64874485a153763886458cb45fff718ba134642e530a9d065fcc42ae0473ee17da8 WHIRLPOOL 1f8c91e867a375df998248d31bda0c5901d1ba52071aee12acea42a53b44393332a86562ea96c58801bde63a961d4af14b05f4defc45cfe1f41061a4ee9438e1
diff --git a/media-gfx/printrun/files/printrun-no-py-in-binaries.patch b/media-gfx/printrun/files/printrun-no-py-in-binaries.patch
new file mode 100644
index 00000000000..250af5fd26a
--- /dev/null
+++ b/media-gfx/printrun/files/printrun-no-py-in-binaries.patch
@@ -0,0 +1,396 @@
+diff -urN Printrun-printrun-20140730.old/plater Printrun-printrun-20140730/plater
+--- Printrun-printrun-20140730.old/plater 1970-01-01 01:00:00.000000000 +0100
++++ Printrun-printrun-20140730/plater 2014-06-06 12:04:34.000000000 +0200
+@@ -0,0 +1,27 @@
++#!/usr/bin/env python
++
++# This file is part of the Printrun suite.
++#
++# Printrun is free software: you can redistribute it and/or modify
++# it under the terms of the GNU General Public License as published by
++# the Free Software Foundation, either version 3 of the License, or
++# (at your option) any later version.
++#
++# Printrun is distributed in the hope that it will be useful,
++# but WITHOUT ANY WARRANTY; without even the implied warranty of
++# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
++# GNU General Public License for more details.
++#
++# You should have received a copy of the GNU General Public License
++# along with Printrun. If not, see <http://www.gnu.org/licenses/>.
++
++import sys
++import wx
++
++from printrun.stlplater import StlPlater
++
++if __name__ == '__main__':
++ app = wx.App(False)
++ main = StlPlater(sys.argv[1:])
++ main.Show()
++ app.MainLoop()
+diff -urN Printrun-printrun-20140730.old/plater.py Printrun-printrun-20140730/plater.py
+--- Printrun-printrun-20140730.old/plater.py 2014-08-10 15:44:04.877086955 +0200
++++ Printrun-printrun-20140730/plater.py 1970-01-01 01:00:00.000000000 +0100
+@@ -1,27 +0,0 @@
+-#!/usr/bin/env python
+-
+-# This file is part of the Printrun suite.
+-#
+-# Printrun is free software: you can redistribute it and/or modify
+-# it under the terms of the GNU General Public License as published by
+-# the Free Software Foundation, either version 3 of the License, or
+-# (at your option) any later version.
+-#
+-# Printrun is distributed in the hope that it will be useful,
+-# but WITHOUT ANY WARRANTY; without even the implied warranty of
+-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+-# GNU General Public License for more details.
+-#
+-# You should have received a copy of the GNU General Public License
+-# along with Printrun. If not, see <http://www.gnu.org/licenses/>.
+-
+-import sys
+-import wx
+-
+-from printrun.stlplater import StlPlater
+-
+-if __name__ == '__main__':
+- app = wx.App(False)
+- main = StlPlater(sys.argv[1:])
+- main.Show()
+- app.MainLoop()
+diff -urN Printrun-printrun-20140730.old/printcore Printrun-printrun-20140730/printcore
+--- Printrun-printrun-20140730.old/printcore 1970-01-01 01:00:00.000000000 +0100
++++ Printrun-printrun-20140730/printcore 2014-06-06 12:04:34.000000000 +0200
+@@ -0,0 +1,76 @@
++#!/usr/bin/env python
++
++# This file is part of the Printrun suite.
++#
++# Printrun is free software: you can redistribute it and/or modify
++# it under the terms of the GNU General Public License as published by
++# the Free Software Foundation, either version 3 of the License, or
++# (at your option) any later version.
++#
++# Printrun is distributed in the hope that it will be useful,
++# but WITHOUT ANY WARRANTY; without even the implied warranty of
++# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
++# GNU General Public License for more details.
++#
++# You should have received a copy of the GNU General Public License
++# along with Printrun. If not, see <http://www.gnu.org/licenses/>.
++
++import time
++import getopt
++import sys
++
++from printrun.printcore import printcore
++from printrun import gcoder
++
++if __name__ == '__main__':
++ baud = 115200
++ loud = False
++ statusreport = False
++ try:
++ opts, args = getopt.getopt(sys.argv[1:], "h,b:,v,s",
++ ["help", "baud", "verbose", "statusreport"])
++ except getopt.GetoptError, err:
++ print str(err)
++ sys.exit(2)
++ for o, a in opts:
++ if o in ('-h', '--help'):
++ # FIXME: Fix help
++ print ("Opts are: --help, -b --baud = baudrate, -v --verbose, "
++ "-s --statusreport")
++ sys.exit(1)
++ if o in ('-b', '--baud'):
++ baud = int(a)
++ if o in ('-v', '--verbose'):
++ loud = True
++ elif o in ('-s', '--statusreport'):
++ statusreport = True
++
++ if len(args) > 1:
++ port = args[-2]
++ filename = args[-1]
++ print "Printing: %s on %s with baudrate %d" % (filename, port, baud)
++ else:
++ print "Usage: python [-h|-b|-v|-s] printcore.py /dev/tty[USB|ACM]x filename.gcode"
++ sys.exit(2)
++ p = printcore(port, baud)
++ p.loud = loud
++ time.sleep(2)
++ gcode = [i.strip() for i in open(filename)]
++ gcode = gcoder.LightGCode(gcode)
++ p.startprint(gcode)
++
++ try:
++ if statusreport:
++ p.loud = False
++ sys.stdout.write("Progress: 00.0%\r")
++ sys.stdout.flush()
++ while p.printing:
++ time.sleep(1)
++ if statusreport:
++ progress = 100 * float(p.queueindex) / len(p.mainqueue)
++ sys.stdout.write("Progress: %02.1f%%\r" % progress)
++ sys.stdout.flush()
++ p.disconnect()
++ sys.exit(0)
++ except:
++ p.disconnect()
+diff -urN Printrun-printrun-20140730.old/printcore.py Printrun-printrun-20140730/printcore.py
+--- Printrun-printrun-20140730.old/printcore.py 2014-08-10 15:44:04.881086932 +0200
++++ Printrun-printrun-20140730/printcore.py 1970-01-01 01:00:00.000000000 +0100
+@@ -1,76 +0,0 @@
+-#!/usr/bin/env python
+-
+-# This file is part of the Printrun suite.
+-#
+-# Printrun is free software: you can redistribute it and/or modify
+-# it under the terms of the GNU General Public License as published by
+-# the Free Software Foundation, either version 3 of the License, or
+-# (at your option) any later version.
+-#
+-# Printrun is distributed in the hope that it will be useful,
+-# but WITHOUT ANY WARRANTY; without even the implied warranty of
+-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+-# GNU General Public License for more details.
+-#
+-# You should have received a copy of the GNU General Public License
+-# along with Printrun. If not, see <http://www.gnu.org/licenses/>.
+-
+-import time
+-import getopt
+-import sys
+-
+-from printrun.printcore import printcore
+-from printrun import gcoder
+-
+-if __name__ == '__main__':
+- baud = 115200
+- loud = False
+- statusreport = False
+- try:
+- opts, args = getopt.getopt(sys.argv[1:], "h,b:,v,s",
+- ["help", "baud", "verbose", "statusreport"])
+- except getopt.GetoptError, err:
+- print str(err)
+- sys.exit(2)
+- for o, a in opts:
+- if o in ('-h', '--help'):
+- # FIXME: Fix help
+- print ("Opts are: --help, -b --baud = baudrate, -v --verbose, "
+- "-s --statusreport")
+- sys.exit(1)
+- if o in ('-b', '--baud'):
+- baud = int(a)
+- if o in ('-v', '--verbose'):
+- loud = True
+- elif o in ('-s', '--statusreport'):
+- statusreport = True
+-
+- if len(args) > 1:
+- port = args[-2]
+- filename = args[-1]
+- print "Printing: %s on %s with baudrate %d" % (filename, port, baud)
+- else:
+- print "Usage: python [-h|-b|-v|-s] printcore.py /dev/tty[USB|ACM]x filename.gcode"
+- sys.exit(2)
+- p = printcore(port, baud)
+- p.loud = loud
+- time.sleep(2)
+- gcode = [i.strip() for i in open(filename)]
+- gcode = gcoder.LightGCode(gcode)
+- p.startprint(gcode)
+-
+- try:
+- if statusreport:
+- p.loud = False
+- sys.stdout.write("Progress: 00.0%\r")
+- sys.stdout.flush()
+- while p.printing:
+- time.sleep(1)
+- if statusreport:
+- progress = 100 * float(p.queueindex) / len(p.mainqueue)
+- sys.stdout.write("Progress: %02.1f%%\r" % progress)
+- sys.stdout.flush()
+- p.disconnect()
+- sys.exit(0)
+- except:
+- p.disconnect()
+diff -urN Printrun-printrun-20140730.old/pronsole Printrun-printrun-20140730/pronsole
+--- Printrun-printrun-20140730.old/pronsole 1970-01-01 01:00:00.000000000 +0100
++++ Printrun-printrun-20140730/pronsole 2014-06-06 12:04:34.000000000 +0200
+@@ -0,0 +1,33 @@
++#!/usr/bin/env python
++
++# This file is part of the Printrun suite.
++#
++# Printrun is free software: you can redistribute it and/or modify
++# it under the terms of the GNU General Public License as published by
++# the Free Software Foundation, either version 3 of the License, or
++# (at your option) any later version.
++#
++# Printrun is distributed in the hope that it will be useful,
++# but WITHOUT ANY WARRANTY; without even the implied warranty of
++# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
++# GNU General Public License for more details.
++#
++# You should have received a copy of the GNU General Public License
++# along with Printrun. If not, see <http://www.gnu.org/licenses/>.
++
++import sys
++import traceback
++from printrun.pronsole import pronsole
++
++if __name__ == "__main__":
++
++ interp = pronsole()
++ interp.parse_cmdline(sys.argv[1:])
++ try:
++ interp.cmdloop()
++ except SystemExit:
++ interp.p.disconnect()
++ except:
++ print _("Caught an exception, exiting:")
++ traceback.print_exc()
++ interp.p.disconnect()
+diff -urN Printrun-printrun-20140730.old/pronsole.py Printrun-printrun-20140730/pronsole.py
+--- Printrun-printrun-20140730.old/pronsole.py 2014-08-10 15:44:04.863087038 +0200
++++ Printrun-printrun-20140730/pronsole.py 1970-01-01 01:00:00.000000000 +0100
+@@ -1,33 +0,0 @@
+-#!/usr/bin/env python
+-
+-# This file is part of the Printrun suite.
+-#
+-# Printrun is free software: you can redistribute it and/or modify
+-# it under the terms of the GNU General Public License as published by
+-# the Free Software Foundation, either version 3 of the License, or
+-# (at your option) any later version.
+-#
+-# Printrun is distributed in the hope that it will be useful,
+-# but WITHOUT ANY WARRANTY; without even the implied warranty of
+-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+-# GNU General Public License for more details.
+-#
+-# You should have received a copy of the GNU General Public License
+-# along with Printrun. If not, see <http://www.gnu.org/licenses/>.
+-
+-import sys
+-import traceback
+-from printrun.pronsole import pronsole
+-
+-if __name__ == "__main__":
+-
+- interp = pronsole()
+- interp.parse_cmdline(sys.argv[1:])
+- try:
+- interp.cmdloop()
+- except SystemExit:
+- interp.p.disconnect()
+- except:
+- print _("Caught an exception, exiting:")
+- traceback.print_exc()
+- interp.p.disconnect()
+diff -urN Printrun-printrun-20140730.old/pronterface Printrun-printrun-20140730/pronterface
+--- Printrun-printrun-20140730.old/pronterface 1970-01-01 01:00:00.000000000 +0100
++++ Printrun-printrun-20140730/pronterface 2014-06-06 12:04:34.000000000 +0200
+@@ -0,0 +1,40 @@
++#!/usr/bin/env python
++
++# This file is part of the Printrun suite.
++#
++# Printrun is free software: you can redistribute it and/or modify
++# it under the terms of the GNU General Public License as published by
++# the Free Software Foundation, either version 3 of the License, or
++# (at your option) any later version.
++#
++# Printrun is distributed in the hope that it will be useful,
++# but WITHOUT ANY WARRANTY; without even the implied warranty of
++# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
++# GNU General Public License for more details.
++#
++# You should have received a copy of the GNU General Public License
++# along with Printrun. If not, see <http://www.gnu.org/licenses/>.
++
++import sys
++
++try:
++ import wx # NOQA
++except:
++ print("wxPython is not installed. This program requires wxPython to run.")
++ if sys.version_info.major >= 3:
++ print("""\
++As you are currently running python3, this is most likely because wxPython is
++not yet available for python3. You should try running with python2 instead.""")
++ sys.exit(-1)
++ else:
++ raise
++
++from printrun.pronterface import PronterApp
++
++if __name__ == '__main__':
++ app = PronterApp(False)
++ try:
++ app.MainLoop()
++ except KeyboardInterrupt:
++ pass
++ del app
+diff -urN Printrun-printrun-20140730.old/pronterface.py Printrun-printrun-20140730/pronterface.py
+--- Printrun-printrun-20140730.old/pronterface.py 2014-08-10 15:44:04.862087044 +0200
++++ Printrun-printrun-20140730/pronterface.py 1970-01-01 01:00:00.000000000 +0100
+@@ -1,40 +0,0 @@
+-#!/usr/bin/env python
+-
+-# This file is part of the Printrun suite.
+-#
+-# Printrun is free software: you can redistribute it and/or modify
+-# it under the terms of the GNU General Public License as published by
+-# the Free Software Foundation, either version 3 of the License, or
+-# (at your option) any later version.
+-#
+-# Printrun is distributed in the hope that it will be useful,
+-# but WITHOUT ANY WARRANTY; without even the implied warranty of
+-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+-# GNU General Public License for more details.
+-#
+-# You should have received a copy of the GNU General Public License
+-# along with Printrun. If not, see <http://www.gnu.org/licenses/>.
+-
+-import sys
+-
+-try:
+- import wx # NOQA
+-except:
+- print("wxPython is not installed. This program requires wxPython to run.")
+- if sys.version_info.major >= 3:
+- print("""\
+-As you are currently running python3, this is most likely because wxPython is
+-not yet available for python3. You should try running with python2 instead.""")
+- sys.exit(-1)
+- else:
+- raise
+-
+-from printrun.pronterface import PronterApp
+-
+-if __name__ == '__main__':
+- app = PronterApp(False)
+- try:
+- app.MainLoop()
+- except KeyboardInterrupt:
+- pass
+- del app
+diff -urN Printrun-printrun-20140730.old/setup.py Printrun-printrun-20140730/setup.py
+--- Printrun-printrun-20140730.old/setup.py 2014-08-10 15:44:04.869087003 +0200
++++ Printrun-printrun-20140730/setup.py 2014-08-10 15:44:59.470765212 +0200
+@@ -162,7 +162,7 @@
+ license = "GPLv3",
+ data_files = data_files,
+ packages = ["printrun", "printrun.gl", "printrun.gl.libtatlin", "printrun.gui", "printrun.power"],
+- scripts = ["pronsole.py", "pronterface.py", "plater.py", "printcore.py"],
++ scripts = ["pronsole", "pronterface", "plater", "printcore"],
+ cmdclass = cmdclass,
+ ext_modules = extensions,
+ )
diff --git a/media-gfx/printrun/metadata.xml b/media-gfx/printrun/metadata.xml
new file mode 100644
index 00000000000..b2ffe0a55b8
--- /dev/null
+++ b/media-gfx/printrun/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>3dprint</herd>
+ <maintainer>
+ <email>amynka@gentoo.org</email>
+ </maintainer>
+ <longdescription lang="en">
+ Printrun is a set of G-code sending applications for RepRap.
+ It consists of printcore (dumb G-code sender), pronsole (featured command line
+ G-code sender), pronterface (featured G-code sender with graphical user
+ interface), and a small collection of helpful scripts.
+</longdescription>
+ <upstream>
+ <remote-id type="github">kliment/Printrun</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/printrun/printrun-20140730.ebuild b/media-gfx/printrun/printrun-20140730.ebuild
new file mode 100644
index 00000000000..e721013ac34
--- /dev/null
+++ b/media-gfx/printrun/printrun-20140730.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1
+
+DESCRIPTION="GUI interface for 3D printing on RepRap and other printers"
+HOMEPAGE="https://github.com/kliment/Printrun"
+SRC_URI="https://github.com/kliment/Printrun/archive/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-python/pyserial
+ dev-python/wxpython
+ dev-python/pyglet
+ dev-python/dbus-python
+ media-gfx/cairosvg"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}/printrun-no-py-in-binaries.patch"
+)
+
+S="${WORKDIR}/Printrun-${P}"