- update to py-Checker-0.8.19
- tidy Makefile
This commit is contained in:
parent
08732f4b7a
commit
f06b479ec1
@ -1,11 +1,10 @@
|
||||
# $OpenBSD: Makefile,v 1.32 2013/03/11 10:50:25 espie Exp $
|
||||
# $OpenBSD: Makefile,v 1.33 2015/12/30 22:58:52 jasper Exp $
|
||||
|
||||
COMMENT= Python codes checker
|
||||
|
||||
VERSION= 0.8.13
|
||||
DISTNAME= pychecker-${VERSION}
|
||||
PKGNAME= py-Checker-${VERSION}
|
||||
REVISION = 5
|
||||
MODPY_EGG_VERSION=0.8.19
|
||||
DISTNAME= pychecker-${MODPY_EGG_VERSION}
|
||||
PKGNAME= py-Checker-${MODPY_EGG_VERSION}
|
||||
CATEGORIES= devel
|
||||
|
||||
HOMEPAGE= http://pychecker.sourceforge.net/
|
||||
@ -16,26 +15,16 @@ PERMIT_PACKAGE_CDROM= Yes
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pychecker/}
|
||||
|
||||
MODULES= lang/python
|
||||
|
||||
MODPY_DISTUTILS_INSTALLARGS= -O1
|
||||
|
||||
DOC_DIR= ${PREFIX}/share/doc/py-Checker/
|
||||
DOC_FILE= CHANGELOG KNOWN_BUGS TODO MAINTAINERS README
|
||||
EXAMPLESDIR= ${PREFIX}/share/examples/py-Checker/
|
||||
|
||||
post-build:
|
||||
@perl -pi -e 's,%%PYTHON%%,${LOCALBASE}/bin/python${MODPY_VERSION},g' \
|
||||
${WRKSRC}/test_check.sh
|
||||
EXAMPLESDIR= ${PREFIX}/share/examples/${MODPY_PY_PREFIX}Checker/
|
||||
|
||||
post-install:
|
||||
${INSTALL_DATA_DIR} ${DOC_DIR}
|
||||
.for i in ${DOC_FILE}
|
||||
${INSTALL_DATA} ${WRKSRC}/$i ${DOC_DIR}
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/${MODPY_PY_PREFIX}Checker/
|
||||
.for i in ChangeLog README
|
||||
${INSTALL_DATA} ${WRKSRC}/$i ${PREFIX}/share/doc/py-Checker/
|
||||
.endfor
|
||||
${INSTALL_DATA_DIR} ${EXAMPLESDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/pycheckrc ${EXAMPLESDIR}
|
||||
|
||||
do-test:
|
||||
@cd ${WRKSRC} && sh ./test_check.sh
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,2 +1,2 @@
|
||||
SHA256 (pychecker-0.8.13.tar.gz) = hmLC60Oh3t5nKxUb64kO4tw27ABLvghf0cSroLmrwIM=
|
||||
SIZE (pychecker-0.8.13.tar.gz) = 119974
|
||||
SHA256 (pychecker-0.8.19.tar.gz) = RPsmZo90rKNzjwLQcoE3YqN84SQvUNv/Vzcg+i6VMnk=
|
||||
SIZE (pychecker-0.8.19.tar.gz) = 99783
|
||||
|
@ -1,32 +1,11 @@
|
||||
$OpenBSD: patch-setup_py,v 1.5 2004/01/01 09:07:59 sturm Exp $
|
||||
--- setup.py.orig 2003-11-18 04:50:14.000000000 +0100
|
||||
+++ setup.py 2003-12-28 16:28:06.000000000 +0100
|
||||
@@ -10,7 +10,7 @@ Contributed by: Nicolas Chauvat
|
||||
|
||||
import sys
|
||||
import os
|
||||
-import tempfile
|
||||
+#import tempfile
|
||||
|
||||
from distutils.core import setup
|
||||
from distutils import sysconfig
|
||||
@@ -56,8 +56,8 @@ fairly infrequent."""
|
||||
script_str = '%s %s %s\n' % (py_exe, checker_py, arg_str)
|
||||
script_suffix = '.bat'
|
||||
|
||||
- LOCAL_SCRIPT = 'pychecker' + script_suffix
|
||||
- LOCAL_SCRIPT = os.path.join(tempfile.gettempdir(), LOCAL_SCRIPT)
|
||||
+ LOCAL_SCRIPT = 'pyChecker' + script_suffix
|
||||
+ LOCAL_SCRIPT = os.path.join('./', LOCAL_SCRIPT)
|
||||
remove_file(LOCAL_SCRIPT)
|
||||
|
||||
try :
|
||||
@@ -78,7 +78,7 @@ fairly infrequent."""
|
||||
author_email = "pychecker@metaslash.com",
|
||||
url = "http://pychecker.sourceforge.net/",
|
||||
packages = [ 'pychecker' ],
|
||||
- data_files = [ (install_dir, DOC_FILES) ],
|
||||
+# data_files = [ (install_dir, DOC_FILES) ],
|
||||
scripts = [ LOCAL_SCRIPT, ],
|
||||
# classifiers was added in Python 2.3, but needed for PyPI
|
||||
#classifiers = CLASSIFIERS,
|
||||
$OpenBSD: patch-setup_py,v 1.6 2015/12/30 22:58:52 jasper Exp $
|
||||
--- setup.py.orig Wed Dec 30 20:33:58 2015
|
||||
+++ setup.py Wed Dec 30 20:34:24 2015
|
||||
@@ -260,7 +260,6 @@ kw = { 'name' : "pychecker",
|
||||
'url' : "http://pychecker.sourceforge.net/",
|
||||
'packages' : [ 'pychecker', ],
|
||||
'scripts' : [ "pychecker" ], # note: will be replaced by customized action
|
||||
- 'data_files' : [ ( "pychecker", DATA_FILES, ) ],
|
||||
'long_description' : LONG_DESCRIPTION,
|
||||
'cmdclass' : CUSTOMIZED_ACTIONS,
|
||||
}
|
||||
|
@ -1,12 +0,0 @@
|
||||
$OpenBSD: patch-test_check_sh,v 1.1 2004/01/01 09:07:59 sturm Exp $
|
||||
--- test_check.sh.orig 2003-11-18 04:49:00.000000000 +0100
|
||||
+++ test_check.sh 2003-12-28 16:29:39.000000000 +0100
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
TESTS="test_input/test[1-9]*.py"
|
||||
# comment out to use python from path
|
||||
-PYTHON="python"
|
||||
+PYTHON="%%PYTHON%%"
|
||||
#PYTHON="$HOME/build/python/clean/python"
|
||||
# PYTHON="$HOME/build/python/2.2/python"
|
||||
#PYTHON="/usr/bin/python"
|
@ -1,6 +1,7 @@
|
||||
@comment $OpenBSD: PLIST,v 1.12 2004/09/14 23:44:00 espie Exp $
|
||||
bin/pyChecker
|
||||
@comment $OpenBSD: PLIST,v 1.13 2015/12/30 22:58:53 jasper Exp $
|
||||
bin/pychecker
|
||||
lib/python${MODPY_VERSION}/site-packages/pychecker/
|
||||
lib/python${MODPY_VERSION}/site-packages/pychecker-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info
|
||||
lib/python${MODPY_VERSION}/site-packages/pychecker/CodeChecks.py
|
||||
lib/python${MODPY_VERSION}/site-packages/pychecker/CodeChecks.pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/pychecker/CodeChecks.pyo
|
||||
@ -34,6 +35,9 @@ lib/python${MODPY_VERSION}/site-packages/pychecker/msgs.pyo
|
||||
lib/python${MODPY_VERSION}/site-packages/pychecker/options.py
|
||||
lib/python${MODPY_VERSION}/site-packages/pychecker/options.pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/pychecker/options.pyo
|
||||
lib/python${MODPY_VERSION}/site-packages/pychecker/pcmodules.py
|
||||
lib/python${MODPY_VERSION}/site-packages/pychecker/pcmodules.pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/pychecker/pcmodules.pyo
|
||||
lib/python${MODPY_VERSION}/site-packages/pychecker/printer.py
|
||||
lib/python${MODPY_VERSION}/site-packages/pychecker/printer.pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/pychecker/printer.pyo
|
||||
@ -46,11 +50,8 @@ lib/python${MODPY_VERSION}/site-packages/pychecker/utils.pyo
|
||||
lib/python${MODPY_VERSION}/site-packages/pychecker/warn.py
|
||||
lib/python${MODPY_VERSION}/site-packages/pychecker/warn.pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/pychecker/warn.pyo
|
||||
share/doc/py-Checker/
|
||||
share/doc/py-Checker/CHANGELOG
|
||||
share/doc/py-Checker/KNOWN_BUGS
|
||||
share/doc/py-Checker/MAINTAINERS
|
||||
share/doc/py-Checker/README
|
||||
share/doc/py-Checker/TODO
|
||||
share/examples/py-Checker/
|
||||
share/examples/py-Checker/pycheckrc
|
||||
share/doc/${MODPY_PY_PREFIX}Checker/
|
||||
share/doc/${MODPY_PY_PREFIX}Checker/ChangeLog
|
||||
share/doc/${MODPY_PY_PREFIX}Checker/README
|
||||
share/examples/${MODPY_PY_PREFIX}Checker/
|
||||
share/examples/${MODPY_PY_PREFIX}Checker/pycheckrc
|
||||
|
Loading…
Reference in New Issue
Block a user