aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authorolivierd <olivierd@FreeBSD.org>2013-07-25 01:42:09 +0800
committerolivierd <olivierd@FreeBSD.org>2013-07-25 01:42:09 +0800
commit6248ffc7d66ce41e3c9862dedebabb756acaf737 (patch)
treefc0f405fb734e69d2da6420b998a751dba14dc40 /textproc
parent87abd651824404dc800e710371fc91dc681745ff (diff)
downloadfreebsd-ports-gnome-6248ffc7d66ce41e3c9862dedebabb756acaf737.tar.gz
freebsd-ports-gnome-6248ffc7d66ce41e3c9862dedebabb756acaf737.tar.zst
freebsd-ports-gnome-6248ffc7d66ce41e3c9862dedebabb756acaf737.zip
- Update to 0.11
- Add new option, PYGMENTS (syntax highlighting) to enable code directive - Fix symlinks during reinstall stage [1] - Fix pkg-plist with Python3 [2] PR: 179273 [1] PR: 180339 [2] Submitted by: nemysis [1] Reviewed by: gblach@ [2]
Diffstat (limited to 'textproc')
-rw-r--r--textproc/py-docutils/Makefile22
-rw-r--r--textproc/py-docutils/distinfo4
-rw-r--r--textproc/py-docutils/pkg-plist6
3 files changed, 27 insertions, 5 deletions
diff --git a/textproc/py-docutils/Makefile b/textproc/py-docutils/Makefile
index a7556bb24246..e3724a56e410 100644
--- a/textproc/py-docutils/Makefile
+++ b/textproc/py-docutils/Makefile
@@ -3,7 +3,7 @@
#
PORTNAME= docutils
-PORTVERSION= 0.10
+PORTVERSION= 0.11
CATEGORIES= textproc python
MASTER_SITES= SF \
CHEESESHOP
@@ -15,13 +15,29 @@ COMMENT= Python Documentation Utilities
USE_PYTHON= yes
USE_PYDISTUTILS= yes
+OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options
+OPTIONS_DEFINE= PYGMENTS
+PYGMENTS_DESC= Syntax highlighting
+
BIN_SCRIPTS= rst2html.py rst2s5.py rst2latex.py rst2xetex.py \
rst2man.py rst2xml.py rst2pseudoxml.py rstpep2html.py \
rst2odt.py rst2odt_prepstyles.py
+.include <bsd.port.options.mk>
+
+.include <bsd.port.pre.mk>
+
+.if ${PORT_OPTIONS:MPYGMENTS}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pygments>=1.6:${PORTSDIR}/textproc/py-pygments
+.endif
+
+.if ${PYTHON_REL} >= 320
+.include "${PORTSDIR}/devel/py-virtualenv/files/py3k-fix-pkg-plist.inc"
+.endif
+
post-install:
.for script in ${BIN_SCRIPTS}
- @cd ${PREFIX}/bin && ${LN} -s ${script} ${script:C/\.py//}
+ @cd ${PREFIX}/bin && ${LN} -sf ${script} ${script:C/\.py//}
.endfor
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/textproc/py-docutils/distinfo b/textproc/py-docutils/distinfo
index e7ffdbd03a53..002c43e78dbc 100644
--- a/textproc/py-docutils/distinfo
+++ b/textproc/py-docutils/distinfo
@@ -1,2 +1,2 @@
-SHA256 (docutils-0.10.tar.gz) = 370624e61b6773da2f2fb17cc2a4eaea4bb596c3585d13f75ff193c1c738603e
-SIZE (docutils-0.10.tar.gz) = 1602552
+SHA256 (docutils-0.11.tar.gz) = 9af4166adf364447289c5c697bb83c52f1d6f57e77849abcccd6a4a18a5e7ec9
+SIZE (docutils-0.11.tar.gz) = 1611755
diff --git a/textproc/py-docutils/pkg-plist b/textproc/py-docutils/pkg-plist
index 210c1bd4391d..975852c892a4 100644
--- a/textproc/py-docutils/pkg-plist
+++ b/textproc/py-docutils/pkg-plist
@@ -48,6 +48,9 @@ bin/rstpep2html.py
%%PYTHON_SITELIBDIR%%/docutils/languages/cs.py
%%PYTHON_SITELIBDIR%%/docutils/languages/cs.pyc
%%PYTHON_SITELIBDIR%%/docutils/languages/cs.pyo
+%%PYTHON_SITELIBDIR%%/docutils/languages/da.py
+%%PYTHON_SITELIBDIR%%/docutils/languages/da.pyc
+%%PYTHON_SITELIBDIR%%/docutils/languages/da.pyo
%%PYTHON_SITELIBDIR%%/docutils/languages/de.py
%%PYTHON_SITELIBDIR%%/docutils/languages/de.pyc
%%PYTHON_SITELIBDIR%%/docutils/languages/de.pyo
@@ -190,6 +193,9 @@ bin/rstpep2html.py
%%PYTHON_SITELIBDIR%%/docutils/parsers/rst/languages/cs.py
%%PYTHON_SITELIBDIR%%/docutils/parsers/rst/languages/cs.pyc
%%PYTHON_SITELIBDIR%%/docutils/parsers/rst/languages/cs.pyo
+%%PYTHON_SITELIBDIR%%/docutils/parsers/rst/languages/da.py
+%%PYTHON_SITELIBDIR%%/docutils/parsers/rst/languages/da.pyc
+%%PYTHON_SITELIBDIR%%/docutils/parsers/rst/languages/da.pyo
%%PYTHON_SITELIBDIR%%/docutils/parsers/rst/languages/de.py
%%PYTHON_SITELIBDIR%%/docutils/parsers/rst/languages/de.pyc
%%PYTHON_SITELIBDIR%%/docutils/parsers/rst/languages/de.pyo