FreeBSD Bugzilla – Attachment 214785 Details for
Bug 246679
[NEW PORT] textproc/py-jc: Converts output of popular command-line tools and file-types to JSON
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
py-jc-1.11.0.diff
py-jc-1.11.0.diff (text/plain), 4.06 KB, created by
Lewis Cook
on 2020-05-23 15:27:12 UTC
(
hide
)
Description:
py-jc-1.11.0.diff
Filename:
MIME Type:
Creator:
Lewis Cook
Created:
2020-05-23 15:27:12 UTC
Size:
4.06 KB
patch
obsolete
>Index: textproc/py-jc/Makefile >=================================================================== >--- textproc/py-jc/Makefile (nonexistent) >+++ textproc/py-jc/Makefile (working copy) >@@ -0,0 +1,24 @@ >+# $FreeBSD$ >+ >+PORTNAME= jc >+DISTVERSION= 1.11.0 >+CATEGORIES= textproc python >+MASTER_SITES= CHEESESHOP >+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} >+ >+MAINTAINER= vulcan@wired.sh >+COMMENT= Converts output of popular command-line tools and file-types to JSON >+ >+LICENSE= MIT >+LICENSE_FILE= ${WRKSRC}/LICENSE.md >+ >+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pygments>=2.4.2:textproc/py-pygments@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}ruamel.yaml>=0.15.0:devel/py-ruamel.yaml@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}xmltodict>=0.12.0:devel/py-xmltodict@${PY_FLAVOR} >+ >+USES= python:3.6+ >+USE_PYTHON= autoplist distutils >+ >+NO_ARCH= yes >+ >+.include <bsd.port.mk> > >Property changes on: textproc/py-jc/Makefile >___________________________________________________________________ >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:keywords >## -0,0 +1 ## >+FreeBSD=%H >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: textproc/py-jc/distinfo >=================================================================== >--- textproc/py-jc/distinfo (nonexistent) >+++ textproc/py-jc/distinfo (working copy) >@@ -0,0 +1,3 @@ >+TIMESTAMP = 1590246208 >+SHA256 (jc-1.11.0.tar.gz) = b754e3e34b0b29db629d4340a13e09f4f50f74a932ba0a5203d42bfbd49f46a4 >+SIZE (jc-1.11.0.tar.gz) = 86873 > >Property changes on: textproc/py-jc/distinfo >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: textproc/py-jc/files/patch-jc_utils.py >=================================================================== >--- textproc/py-jc/files/patch-jc_utils.py (nonexistent) >+++ textproc/py-jc/files/patch-jc_utils.py (working copy) >@@ -0,0 +1,26 @@ >+Platform check fails as sys.platform returns 'freebsd' plus >+the release version e.g., 'freebsd12' and so forth where the string >+'freebsd' is only listed as compatible. >+ >+--- jc/utils.py.orig 2020-05-23 14:53:34 UTC >++++ jc/utils.py >+@@ -1,8 +1,8 @@ >+ """jc - JSON CLI output utility utils""" >+ import textwrap >+ import sys >++import re >+ >+- >+ def warning_message(message): >+ """ >+ Prints a warning message for non-fatal issues >+@@ -56,7 +56,8 @@ def compatibility(mod_name, compatible): >+ >+ no return, just prints output to STDERR >+ """ >+- if sys.platform not in compatible: >++ platform = re.sub(r'\d+', '', sys.platform) >++ if platform not in compatible: >+ mod = mod_name.split('.')[-1] >+ compat_list = ', '.join(compatible) >+ warning_message(f'{mod} parser not compatible with your OS ({sys.platform}).\n Compatible platforms: {compat_list}') > >Property changes on: textproc/py-jc/files/patch-jc_utils.py >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:keywords >## -0,0 +1 ## >+FreeBSD=%H >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: textproc/py-jc/pkg-descr >=================================================================== >--- textproc/py-jc/pkg-descr (nonexistent) >+++ textproc/py-jc/pkg-descr (working copy) >@@ -0,0 +1,4 @@ >+JSONifies the output of many CLI tools and file-types >+for easier parsing in scripts. >+ >+WWW: https://pypi.python.org/pypi/jc > >Property changes on: textproc/py-jc/pkg-descr >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 246679
: 214785 |
214786