# Last release in 2011, bug #708150, masked for removal in 30 days.
x11-misc/tintwizard
-# Andreas Sturmlechner <asturm@gentoo.org> (2020-02-26)
-# Unmaintained revdep on dev-python/pygtk blocking its removal, py2-only
-# Last activity in 2013, bug #710162, masked for removal in 30 days.
-sci-misc/pythoncad
-
# Michał Górny <mgorny@gentoo.org> (2020-02-24)
# app-admin/packagekit-base is Python 2 only and behind upstream.
# The Portage backend is unmaintained. Other packages are its reverse
+++ /dev/null
-DIST PythonCAD-DS1-R37.tar.gz 504053 BLAKE2B 09e8ce415eb9af57a53d516e0bf8046e04a78861f1cb97d8bca7d27c87938dda6c27f5b5e8a3bd5aafcda91caf5ab203f933df3717d781b4b7994376544b6647 SHA512 dfc0dd3272f447202c0cf12e60c39d877390ccf6696529f6bcce9a4442db4f09b735d718bc5611d6c33fbedf2190c496fb7a737001eb73a38fbce1ae80eadc81
+++ /dev/null
-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)
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <!-- maintainer-needed -->
- <longdescription>a scriptable, open-source, easy to use CAD</longdescription>
- <upstream>
- <remote-id type="sourceforge">pythoncad</remote-id>
- </upstream>
-</pkgmetadata>
+++ /dev/null
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-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="https://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
-}