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 /sci-misc/pythoncad
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 'sci-misc/pythoncad')
-rw-r--r--sci-misc/pythoncad/Manifest1
-rw-r--r--sci-misc/pythoncad/files/pythoncad-1.37-png.patch24
-rw-r--r--sci-misc/pythoncad/metadata.xml11
-rw-r--r--sci-misc/pythoncad/pythoncad-1.37-r1.ebuild49
4 files changed, 85 insertions, 0 deletions
diff --git a/sci-misc/pythoncad/Manifest b/sci-misc/pythoncad/Manifest
new file mode 100644
index 000000000000..a4edc43fddaf
--- /dev/null
+++ b/sci-misc/pythoncad/Manifest
@@ -0,0 +1 @@
+DIST PythonCAD-DS1-R37.tar.gz 504053 SHA256 74222bd43af1e66ab31a45782ed7bd94d54ccbbdb7a58046ec2775f27f806031 SHA512 dfc0dd3272f447202c0cf12e60c39d877390ccf6696529f6bcce9a4442db4f09b735d718bc5611d6c33fbedf2190c496fb7a737001eb73a38fbce1ae80eadc81 WHIRLPOOL bab1dc5162bbd4596ed6729a016fc4b642277293a423860ac22aa2439f5e18629dc376455ef82186b1f11780871d5f7b7ac6191d108a62e18dc54ff077bef2d9
diff --git a/sci-misc/pythoncad/files/pythoncad-1.37-png.patch b/sci-misc/pythoncad/files/pythoncad-1.37-png.patch
new file mode 100644
index 000000000000..7d36625e21a8
--- /dev/null
+++ b/sci-misc/pythoncad/files/pythoncad-1.37-png.patch
@@ -0,0 +1,24 @@
+diff -ru PythonCAD-DS1-R37~/PythonCAD/Interface/Gtk/gtkDialog.py PythonCAD-DS1-R37/PythonCAD/Interface/Gtk/gtkDialog.py
+--- PythonCAD-DS1-R37~/PythonCAD/Interface/Gtk/gtkDialog.py 2010-03-11 00:01:58.000000000 +0100
++++ PythonCAD-DS1-R37/PythonCAD/Interface/Gtk/gtkDialog.py 2010-03-11 00:03:48.000000000 +0100
+@@ -107,7 +107,7 @@
+ _abautDialog.set_program_name("PythonCad")
+ _abautDialog.set_version("DS1-R37")
+ _abautDialog.set_comments("CAD built from Python")
+- _iconPath=os.path.join(os.getcwd(),"gtkpycad.png")
++ _iconPath=os.path.join("/usr/share/pixmaps/pythoncad.png")
+ _pixBuf=gtk.gdk.pixbuf_new_from_file(_iconPath)
+ _abautDialog.set_logo(_pixBuf)
+ _abautDialog.set_website("http://sourceforge.net/projects/pythoncad")
+diff -ru PythonCAD-DS1-R37~/PythonCAD/Interface/Gtk/gtkimage.py PythonCAD-DS1-R37/PythonCAD/Interface/Gtk/gtkimage.py
+--- PythonCAD-DS1-R37~/PythonCAD/Interface/Gtk/gtkimage.py 2010-03-11 00:01:58.000000000 +0100
++++ PythonCAD-DS1-R37/PythonCAD/Interface/Gtk/gtkimage.py 2010-03-11 00:02:59.000000000 +0100
+@@ -154,7 +154,7 @@
+ self.__image = image
+ self.__window = gtk.Window()
+ self.__window.set_title(image.filename)
+- self.__window.set_icon_from_file("gtkpycad.png")
++ self.__window.set_icon_from_file("/usr/share/pixmaps/pythoncad.png")
+ self.__window.connect("destroy", self.__destroyEvent)
+ self.__window.connect("event", self.__windowEvent)
+ self.__window.connect("key_press_event", self.__keyPressEvent)
diff --git a/sci-misc/pythoncad/metadata.xml b/sci-misc/pythoncad/metadata.xml
new file mode 100644
index 000000000000..45e643c9b43c
--- /dev/null
+++ b/sci-misc/pythoncad/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>maintainer-needed@gentoo.org</email>
+ </maintainer>
+ <longdescription>a scriptable, open-source, easy to use CAD</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">pythoncad</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-misc/pythoncad/pythoncad-1.37-r1.ebuild b/sci-misc/pythoncad/pythoncad-1.37-r1.ebuild
new file mode 100644
index 000000000000..d7b21f494ea8
--- /dev/null
+++ b/sci-misc/pythoncad/pythoncad-1.37-r1.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+PYTHON_COMPAT=( python2_7 )
+inherit eutils distutils-r1 versionator
+
+MY_PN="PythonCAD"
+MY_PV="DS$(get_major_version)-R$(get_after_major_version)"
+MY_P="${MY_PN}-${MY_PV}"
+
+DESCRIPTION="CAD program written in PyGTK"
+HOMEPAGE="http://sourceforge.net/projects/pythoncad"
+SRC_URI="mirror://sourceforge/pythoncad/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="dev-python/pygtk:2[${PYTHON_USEDEP}]"
+DEPEND=""
+
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=( "${FILESDIR}/${P}-png.patch" )
+
+python_prepare_all() {
+ distutils-r1_python_prepare_all
+ sed -i \
+ -e "s/gtkpycad.png/pythoncad.png/" \
+ -e "s/gtkpycad.py/pythoncad/" \
+ "${PN}.desktop" || die "sed failed"
+}
+
+python_install() {
+ distutils-r1_python_install
+ python_newscript gtkpycad.py pythoncad
+}
+
+src_install() {
+ distutils-r1_src_install
+
+ insinto /etc/"${PN}"
+ doins prefs.py
+ domenu "${PN}".desktop
+ newicon gtkpycad.png "${PN}".png
+}