diff options
author | pav <pav@FreeBSD.org> | 2008-12-18 00:43:35 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2008-12-18 00:43:35 +0800 |
commit | 01b9448d3d03d5ed4b0f5034d388d1cc135b1762 (patch) | |
tree | 6197ef4b4cf85e00d9722f58a5507c72b14af337 /devel | |
parent | c818fd98779b8fbc3aaf1a5d256c9530ff844ef6 (diff) | |
download | freebsd-ports-graphics-01b9448d3d03d5ed4b0f5034d388d1cc135b1762.tar.gz freebsd-ports-graphics-01b9448d3d03d5ed4b0f5034d388d1cc135b1762.tar.zst freebsd-ports-graphics-01b9448d3d03d5ed4b0f5034d388d1cc135b1762.zip |
- Update to 3.06
- Add a knob to build libYAML bindings (defaults to off)
PR: ports/128992
Submitted by: Yi-Jheng Lin <yzlin@cs.nctu.edu.tw>
Approved by: maintainer timeout (28 days)
Diffstat (limited to 'devel')
-rw-r--r-- | devel/py-yaml/Makefile | 33 | ||||
-rw-r--r-- | devel/py-yaml/distinfo | 6 | ||||
-rw-r--r-- | devel/py-yaml/pkg-plist | 8 |
3 files changed, 42 insertions, 5 deletions
diff --git a/devel/py-yaml/Makefile b/devel/py-yaml/Makefile index be9b896dedc..1a42ab1acbb 100644 --- a/devel/py-yaml/Makefile +++ b/devel/py-yaml/Makefile @@ -7,7 +7,7 @@ # PORTNAME= yaml -PORTVERSION= 3.05 +PORTVERSION= 3.06 CATEGORIES= devel python MASTER_SITES= http://pyyaml.org/download/pyyaml/ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -16,8 +16,37 @@ DISTNAME= PyYAML-${PORTVERSION} MAINTAINER= neal@nelson.name COMMENT= Python YAML parser +OPTIONS= YAML "Enable LibYAML binding" Off + USE_PYTHON= yes USE_PYDISTUTILS= yes PYDISTUTILS_PKGNAME= PyYAML -.include <bsd.port.mk> +# bypass infrastructure bug +OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options + +EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME} + +.if !defined(NOPORTEXAMPLES) +post-install: + @(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${EXAMPLESDIR}/) +.endif + +.include <bsd.port.pre.mk> + +.if defined(WITH_YAML) +PYSETUP= setup.py --with-libyaml +PYDISTUTILS_BUILD_TARGET= build_ext +PYDISTUTILS_BUILDARGS+= --include-dirs=${LOCALBASE}/include \ + --library-dirs=${LOCALBASE}/lib + +LIB_DEPENDS+= yaml-0.1:${PORTSDIR}/textproc/libyaml + +PLIST_SUB+= YAML="" +.else +PYSETUP= setup.py --without-libyaml + +PLIST_SUB+= YAML="@comment " +.endif + +.include <bsd.port.post.mk> diff --git a/devel/py-yaml/distinfo b/devel/py-yaml/distinfo index dbc033f3510..b38757539cd 100644 --- a/devel/py-yaml/distinfo +++ b/devel/py-yaml/distinfo @@ -1,3 +1,3 @@ -MD5 (PyYAML-3.05.tar.gz) = 04ebb924a571cfb26d8143069068ce86 -SHA256 (PyYAML-3.05.tar.gz) = 27b69bf6f1452e8f41577646ddfe78f9528a437409927d5d543bc97d75e27a03 -SIZE (PyYAML-3.05.tar.gz) = 87136 +MD5 (PyYAML-3.06.tar.gz) = 3d3c92528f1547756c9e1d80d7d905c7 +SHA256 (PyYAML-3.06.tar.gz) = 8fdc65554131bef72265afa0781f61dcced0066b9fb4eddc22364d0bc68017e9 +SIZE (PyYAML-3.06.tar.gz) = 93512 diff --git a/devel/py-yaml/pkg-plist b/devel/py-yaml/pkg-plist index 62bad24a63f..f2ffdac49eb 100644 --- a/devel/py-yaml/pkg-plist +++ b/devel/py-yaml/pkg-plist @@ -1,3 +1,4 @@ +%%YAML%%%%PYTHON_SITELIBDIR%%/_yaml.so %%PYTHON_SITELIBDIR%%/yaml/__init__.py %%PYTHON_SITELIBDIR%%/yaml/__init__.pyc %%PYTHON_SITELIBDIR%%/yaml/__init__.pyo @@ -50,3 +51,10 @@ %%PYTHON_SITELIBDIR%%/yaml/tokens.pyc %%PYTHON_SITELIBDIR%%/yaml/tokens.pyo @dirrm %%PYTHON_SITELIBDIR%%/yaml +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/pygments-lexer/yaml.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/pygments-lexer/example.yaml +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/yaml-highlight/yaml_hl.cfg +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/yaml-highlight/yaml_hl.py +%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/yaml-highlight +%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/pygments-lexer +%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%% |