diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /sci-misc/pythoncad |
reinit the tree, so we can have metadata
Diffstat (limited to 'sci-misc/pythoncad')
-rw-r--r-- | sci-misc/pythoncad/Manifest | 6 | ||||
-rw-r--r-- | sci-misc/pythoncad/files/pythoncad-1.37-png.patch | 24 | ||||
-rw-r--r-- | sci-misc/pythoncad/metadata.xml | 9 | ||||
-rw-r--r-- | sci-misc/pythoncad/pythoncad-1.37-r1.ebuild | 48 |
4 files changed, 87 insertions, 0 deletions
diff --git a/sci-misc/pythoncad/Manifest b/sci-misc/pythoncad/Manifest new file mode 100644 index 000000000000..bc0c062b6a82 --- /dev/null +++ b/sci-misc/pythoncad/Manifest @@ -0,0 +1,6 @@ +AUX pythoncad-1.37-png.patch 1535 SHA256 772c85464da9abe54ddaac426ce5dad8b9af8134701e755f9d280997a2f05315 SHA512 642932e86ea12454c6e1d00820d21200cbde5653ebb6145c73790c7685bb8885022067bc3c9e12f3dc3b2f036c80896775acf8ba3e490b1df35b666e2ec1959e WHIRLPOOL 658731bead42fbe1d74944c358cf6057f115bb73bdcdbe4a51146ea16c9a5a3448874eb86e380436000d019c968dcd4ef9f3eb7bd49bb3e31cec989e99bf3c80 +DIST PythonCAD-DS1-R37.tar.gz 504053 SHA256 74222bd43af1e66ab31a45782ed7bd94d54ccbbdb7a58046ec2775f27f806031 SHA512 dfc0dd3272f447202c0cf12e60c39d877390ccf6696529f6bcce9a4442db4f09b735d718bc5611d6c33fbedf2190c496fb7a737001eb73a38fbce1ae80eadc81 WHIRLPOOL bab1dc5162bbd4596ed6729a016fc4b642277293a423860ac22aa2439f5e18629dc376455ef82186b1f11780871d5f7b7ac6191d108a62e18dc54ff077bef2d9 +EBUILD pythoncad-1.37-r1.ebuild 1029 SHA256 66ddf8956d5f90a0e39d0fa2fd49beecb3839f7d4ff13492e3433a244f890bdf SHA512 d93b193239c09bdb05982df873fabc0d0a657be5f3d477e716cd5ecfc5e427a71e1481fc129c128690e787dfe7ec371bf7e8cfa806f99aacb94bfcfdd8070e23 WHIRLPOOL 3c82000eee492ac1844ce79b8871876358311300a225951b16c2e513a68726e4ea63d2f5e592c5318567a8765de5ea06d36450f1212957df7c47b6276484144c +MISC ChangeLog 2681 SHA256 cf7836a9315ad758c2f3fe72e8c9ad7fe02440204941d042b36998099d556c6e SHA512 06bdf9d780f9fd1e14989d94b2872dc723f55b2efee01da47da8257829a5a15bc421a1ec92db44e7d228ff050097f87aadcff7e7b13764aca77d3b3e9e7f747c WHIRLPOOL 4c5cfbc45f03ee8102d8da23afcbb68907426c76a0021bfe05d095093b587251d3092808a89df846b7d37f05b2675fc66aa6c8eab74952ef6a76e70bf653d193 +MISC ChangeLog-2015 1637 SHA256 9f4fa5cff8167b36637304b95b59d9a3398bd75341899b316d2ba93214b6d745 SHA512 c06e8f1f6c03f825e522538a0559d71ea4c754cefc14b571bf94891d6418e27ef7e6f3f942fbef7bd05ef91aeaaa2c049a6a63117ec0b97856b7dd38e010b000 WHIRLPOOL cecca885a2fe958aa6a8924e5018414a7d62a58e2dbd721db498ba481fd3b7ce0ed470c80232dfac2fac8c2e5121b180f628a1af333609b0b9c404333c5233b8 +MISC metadata.xml 331 SHA256 f39152ae13ac724d24b91b926bfc559130ac3a8ac177b49ad5ea6aaf38c334cc SHA512 31803480a3e8c99757e97e9b55885edbe54f1a2f448529d852f0e432b8cc264b62bd615a725ca48fa013513030b0d72c5a0ba9628f67537b5f1c9d17db7e9df6 WHIRLPOOL a85c52eb93a4adff7a3f110d82936588e6ad0c6531d1d10ff606dd8b6e189f9530596a63ae7c12d7d314ac94ca4ebbee8f5c50966aa557d41feea5399376f5d2 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..ab9c765c0261 --- /dev/null +++ b/sci-misc/pythoncad/metadata.xml @@ -0,0 +1,9 @@ +<?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> 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..d7d06a472e13 --- /dev/null +++ b/sci-misc/pythoncad/pythoncad-1.37-r1.ebuild @@ -0,0 +1,48 @@ +# 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 +} |