summaryrefslogtreecommitdiff
path: root/dev-python/pychecker
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-python/pychecker
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-python/pychecker')
-rw-r--r--dev-python/pychecker/Manifest5
-rw-r--r--dev-python/pychecker/files/pychecker-0.8.19-create_script.patch13
-rw-r--r--dev-python/pychecker/files/pychecker-0.8.19-version.patch12
-rw-r--r--dev-python/pychecker/metadata.xml11
-rw-r--r--dev-python/pychecker/pychecker-0.8.19-r1.ebuild43
5 files changed, 84 insertions, 0 deletions
diff --git a/dev-python/pychecker/Manifest b/dev-python/pychecker/Manifest
new file mode 100644
index 000000000000..99256960bb1d
--- /dev/null
+++ b/dev-python/pychecker/Manifest
@@ -0,0 +1,5 @@
+AUX pychecker-0.8.19-create_script.patch 460 BLAKE2B 049cb432db4f7bd872a4161421c7129423c93e2738efe3d6efc041908e2f995f30753f4fdfdecbbb2e7c4f22abbec007441fa0403e9b91e77303dc816222299f SHA512 88bc5116b3773130af02598fcaa211678c9577eac7168819f2b41537a2579881e6145614fc222907cc432efdb99c068f13e78826377a84a2420eda1c355a611e
+AUX pychecker-0.8.19-version.patch 473 BLAKE2B 2c400973032de8fed6ee816a8bea7cba278eb15b4704d943a8a39cba5b07687666f53cac43b30d1a8d060e8dc4a785b5b172df487f75369db5be0dd92c92b121 SHA512 3cfbf2370a02c0462013d0eddc5c99246b27fc2cb95f7361e7f991ddd9052c8093816088272171ada0d3f20bc814d9d6352deec7de2013a527e3f36ca3418845
+DIST pychecker-0.8.19.tar.gz 99783 BLAKE2B 9605cab5263227794c5184de7a569f3b49d93165af6d886221e7832555cb62b3ccc28fbaca0481e9b56e37bd9d9414ea5edd18fbd3b0447fdff24f570e25f020 SHA512 50f3d87a0ea80235761eb0ff078dc7e815848c356cea2bdf12bb699edc6d3301252acebaf6ab6aa961849d740dc38bc9b6deb7cfe956e7fff83a104750adfa18
+EBUILD pychecker-0.8.19-r1.ebuild 1041 BLAKE2B 38b34b875211ebbebde2e842333432a36b7b0b82c7300e27b96b6a469e8dee4d9d202d07cd8f77afc7e0f456c344146940d2aa35ad6cd360cddc107270c7d6b3 SHA512 a0f2d6bb44dc36a44c3e87a12da473696bb9d0bb0b6a7c49f9e27488b924699427628e80dfca85dfec86eca27e927e70076c561c8fa2c793457ef67083c71eaa
+MISC metadata.xml 319 BLAKE2B b7837758e07a55453d3fd30b6e2101e513347b7742a10c362e9d64fb4055418c6db9eac0ce15d52a76f4570dc786b88bc45892db35ddd86442398582de8ad82b SHA512 46b9b45d2fc905a2b5a31741e249ead92c8b43eb312bd3d379d6946171858fc86dba75a8ffff71405f50367624ae9940fcca2ed069742e44fc2e2fa6c5c79124
diff --git a/dev-python/pychecker/files/pychecker-0.8.19-create_script.patch b/dev-python/pychecker/files/pychecker-0.8.19-create_script.patch
new file mode 100644
index 000000000000..ca4367591174
--- /dev/null
+++ b/dev-python/pychecker/files/pychecker-0.8.19-create_script.patch
@@ -0,0 +1,13 @@
+--- setup.py
++++ setup.py
+@@ -221,7 +221,9 @@
+ script_str = "%s %s %%*\n" % (sys.executable, checker_path)
+ else:
+ script_str = '#! /bin/sh\n\n%s %s "$@"\n' % (sys.executable, checker_path)
+- open(script_path, "w").write(script_str)
++ script = open(script_path, "w")
++ script.write(script_str)
++ script.close()
+ except Exception, e:
+ print "ERROR: Unable to create %s: %s" % (script_path, e)
+ raise e
diff --git a/dev-python/pychecker/files/pychecker-0.8.19-version.patch b/dev-python/pychecker/files/pychecker-0.8.19-version.patch
new file mode 100644
index 000000000000..9fe8490175a8
--- /dev/null
+++ b/dev-python/pychecker/files/pychecker-0.8.19-version.patch
@@ -0,0 +1,12 @@
+diff -ur pychecker-0.8.19.orig/pychecker/Config.py pychecker-0.8.19/pychecker/Config.py
+--- pychecker/Config.py 2013-02-01 12:06:10.669695876 +0800
++++ pychecker/Config.py 2013-02-01 12:06:26.238695001 +0800
+@@ -33,7 +33,7 @@
+
+ _RC_FILE = ".pycheckrc"
+ CHECKER_VAR = '__pychecker__'
+-_VERSION = '0.8.18'
++_VERSION = '0.8.19'
+
+ _DEFAULT_BLACK_LIST = [ "Tkinter", "wxPython", "gtk", "GTK", "GDK", ]
+ _DEFAULT_VARIABLE_IGNORE_LIST = [ '__version__', '__warningregistry__',
diff --git a/dev-python/pychecker/metadata.xml b/dev-python/pychecker/metadata.xml
new file mode 100644
index 000000000000..9b5e980c8695
--- /dev/null
+++ b/dev-python/pychecker/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 type="project">
+ <email>python@gentoo.org</email>
+ <name>Python</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">pychecker</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-python/pychecker/pychecker-0.8.19-r1.ebuild b/dev-python/pychecker/pychecker-0.8.19-r1.ebuild
new file mode 100644
index 000000000000..9fe47ad621f2
--- /dev/null
+++ b/dev-python/pychecker/pychecker-0.8.19-r1.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1
+
+DESCRIPTION="Python source code checking tool"
+HOMEPAGE="http://pychecker.sourceforge.net/ https://pypi.org/project/PyChecker/"
+SRC_URI="mirror://sourceforge/pychecker/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+IUSE=""
+
+DOCS=( pycheckrc ChangeLog KNOWN_BUGS MAINTAINERS NEWS README TODO )
+
+PATCHES=(
+ "${FILESDIR}"/${P}-version.patch
+ "${FILESDIR}"/${P}-create_script.patch
+ )
+
+python_prepare_all() {
+ sed \
+ -e '1d' \
+ -i pychecker/checker.py \
+ || die
+
+ # Disable installation of unneeded files.
+ sed \
+ -e "/'data_files' :/d" \
+ -i setup.py || die "sed failed"
+
+ # Strip final "/" from root.
+ sed \
+ -e 's:root = self\.distribution\.get_command_obj("install")\.root:&\.rstrip("/"):' \
+ -i setup.py || die "sed failed"
+
+ distutils-r1_python_prepare_all
+}