svn commit: r498295 - in head/devel: . py-javaproperties py-javaproperties/files
Kai Knoblich
kai at FreeBSD.org
Sun Apr 7 16:50:31 UTC 2019
Author: kai
Date: Sun Apr 7 16:50:29 2019
New Revision: 498295
URL: https://svnweb.freebsd.org/changeset/ports/498295
Log:
New port: devel/py-javaproperties
This package provides support for reading & writing Java .properties files (both
the simple line-oriented format and XML) with a simple API based on the json
module - though, for recovering Java addicts, it also includes a Properties
class intended to match the behavior of Java 8's java.util.Properties as much as
is Pythonically possible.
WWW: https://github.com/jwodder/javaproperties
Approved by: mentors (implicit)
Added:
head/devel/py-javaproperties/
head/devel/py-javaproperties/Makefile (contents, props changed)
head/devel/py-javaproperties/distinfo (contents, props changed)
head/devel/py-javaproperties/files/
head/devel/py-javaproperties/files/patch-setup.py (contents, props changed)
head/devel/py-javaproperties/pkg-descr (contents, props changed)
Modified:
head/devel/Makefile
Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile Sun Apr 7 16:41:54 2019 (r498294)
+++ head/devel/Makefile Sun Apr 7 16:50:29 2019 (r498295)
@@ -4681,6 +4681,7 @@
SUBDIR += py-jaraco.logging
SUBDIR += py-jaraco.timing
SUBDIR += py-jaraco.util
+ SUBDIR += py-javaproperties
SUBDIR += py-jcc
SUBDIR += py-jdcal
SUBDIR += py-jedi
Added: head/devel/py-javaproperties/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/py-javaproperties/Makefile Sun Apr 7 16:50:29 2019 (r498295)
@@ -0,0 +1,22 @@
+# $FreeBSD$
+
+PORTNAME= javaproperties
+DISTVERSION= 0.5.1
+CATEGORIES= devel python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= kai at FreeBSD.org
+COMMENT= Read and write Java .properties files
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>=1.4:devel/py-six@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= distutils autoplist
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
Added: head/devel/py-javaproperties/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/py-javaproperties/distinfo Sun Apr 7 16:50:29 2019 (r498295)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1550757174
+SHA256 (javaproperties-0.5.1.tar.gz) = 2b0237b054af4d24c74f54734b7d997ca040209a1820e96fb4a82625f7bd40cf
+SIZE (javaproperties-0.5.1.tar.gz) = 29150
Added: head/devel/py-javaproperties/files/patch-setup.py
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/py-javaproperties/files/patch-setup.py Sun Apr 7 16:50:29 2019 (r498295)
@@ -0,0 +1,12 @@
+--- setup.py.orig 2018-05-25 22:39:16 UTC
++++ setup.py
+@@ -3,6 +3,9 @@ import re
+ from setuptools import setup
+
+ with open(join(dirname(__file__), 'javaproperties', '__init__.py')) as fp:
++ # Workaround for Python 3:
++ # Move a bit forward to get past the unicode characters
++ fp.seek(256)
+ for line in fp:
+ m = re.search(r'^\s*__version__\s*=\s*([\'"])([^\'"]+)\1\s*$', line)
+ if m:
Added: head/devel/py-javaproperties/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/py-javaproperties/pkg-descr Sun Apr 7 16:50:29 2019 (r498295)
@@ -0,0 +1,7 @@
+This package provides support for reading & writing Java .properties files (both
+the simple line-oriented format and XML) with a simple API based on the json
+module - though, for recovering Java addicts, it also includes a Properties
+class intended to match the behavior of Java 8's java.util.Properties as much as
+is Pythonically possible.
+
+WWW: https://github.com/jwodder/javaproperties
More information about the svn-ports-all
mailing list