summaryrefslogtreecommitdiff
path: root/textproc/py-citeproc-py
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2018-05-13 23:37:33 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2018-05-13 23:37:33 +0000
commitdc7236ad4b160d1a0712b91b6857475170dffac6 (patch)
tree58c12cb952f8be8d8e4aa518af887b02e8e9c16b /textproc/py-citeproc-py
parentNew port: textproc/py-rnc2rng: RELAX NG Compact to regular syntax conversion ... (diff)
New port: textproc/py-citeproc-py: Citation Style Language (CSL) processor for Python
Notes
Notes: svn path=/head/; revision=469838
Diffstat (limited to 'textproc/py-citeproc-py')
-rw-r--r--textproc/py-citeproc-py/Makefile22
-rw-r--r--textproc/py-citeproc-py/distinfo3
-rw-r--r--textproc/py-citeproc-py/files/patch-setup.py19
-rw-r--r--textproc/py-citeproc-py/pkg-descr7
4 files changed, 51 insertions, 0 deletions
diff --git a/textproc/py-citeproc-py/Makefile b/textproc/py-citeproc-py/Makefile
new file mode 100644
index 000000000000..935ad61481e3
--- /dev/null
+++ b/textproc/py-citeproc-py/Makefile
@@ -0,0 +1,22 @@
+# $FreeBSD$
+
+PORTNAME= citeproc-py
+DISTVERSION= 0.4.0
+CATEGORIES= textproc python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Citation Style Language (CSL) processor for Python
+
+LICENSE= BSD2CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}rnc2rng>=2.2:textproc/py-rnc2rng@${FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}lxml>0:devel/py-lxml@${FLAVOR}
+
+USES= python
+USE_PYTHON= distutils concurrent autoplist
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/textproc/py-citeproc-py/distinfo b/textproc/py-citeproc-py/distinfo
new file mode 100644
index 000000000000..09888895b05a
--- /dev/null
+++ b/textproc/py-citeproc-py/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1526252111
+SHA256 (citeproc-py-0.4.0.tar.gz) = ed513dbc76f782b5e98126d6bebbd1284841fcf199ec9dda552e2bce864adadf
+SIZE (citeproc-py-0.4.0.tar.gz) = 109786
diff --git a/textproc/py-citeproc-py/files/patch-setup.py b/textproc/py-citeproc-py/files/patch-setup.py
new file mode 100644
index 000000000000..c8e5ec781dee
--- /dev/null
+++ b/textproc/py-citeproc-py/files/patch-setup.py
@@ -0,0 +1,19 @@
+--- setup.py.orig 2017-06-23 13:08:27 UTC
++++ setup.py
+@@ -29,7 +29,7 @@ os.chdir(BASE_PATH)
+ # inspired by http://dcreager.net/2010/02/10/setuptools-git-version-numbers/
+ try:
+ print('Attempting to get version number from git...')
+- git = Popen(['git', 'describe', '--always', '--dirty'],
++ git = Popen(['/usr/bin/false', 'describe', '--always', '--dirty'],
+ stdout=PIPE, stderr=sys.stderr)
+ if git.wait() != 0:
+ raise OSError
+@@ -85,7 +85,6 @@ setup(
+ name='citeproc-py',
+ version=__version__,
+ cmdclass = dict(build_py=custom_build_py, develop=custom_develop),
+- packages=find_packages(),
+ package_data={PACKAGE: ['data/locales/*.xml',
+ 'data/schema/*.rng',
+ 'data/styles/*.csl']},
diff --git a/textproc/py-citeproc-py/pkg-descr b/textproc/py-citeproc-py/pkg-descr
new file mode 100644
index 000000000000..2ce352c7a4e1
--- /dev/null
+++ b/textproc/py-citeproc-py/pkg-descr
@@ -0,0 +1,7 @@
+Python implementation of the Citation Style Language (CSL). It is currently
+far from complete, and may just be experiment.
+
+The goal is a Python CSL implementation that includes a good test foundation,
+and is easy to integrate into different contexts.
+
+WWW: https://github.com/bdarcus/citeproc-py