[Midnightbsd-cvs] mports [16569] trunk/devel: add py-yaml port.
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sat Aug 23 08:58:22 EDT 2014
Revision: 16569
http://svnweb.midnightbsd.org/mports/?rev=16569
Author: laffer1
Date: 2014-08-23 08:58:20 -0400 (Sat, 23 Aug 2014)
Log Message:
-----------
add py-yaml port.
Modified Paths:
--------------
trunk/devel/Makefile
Added Paths:
-----------
trunk/devel/py-yaml/
trunk/devel/py-yaml/Makefile
trunk/devel/py-yaml/distinfo
trunk/devel/py-yaml/pkg-descr
trunk/devel/py-yaml/pkg-plist
Modified: trunk/devel/Makefile
===================================================================
--- trunk/devel/Makefile 2014-08-23 12:54:27 UTC (rev 16568)
+++ trunk/devel/Makefile 2014-08-23 12:58:20 UTC (rev 16569)
@@ -397,6 +397,7 @@
SUBDIR += py-subversion
SUBDIR += py-termcolor
SUBDIR += py-xdg
+SUBDIR += py-yaml
SUBDIR += qca
SUBDIR += qgit
SUBDIR += qjson
Added: trunk/devel/py-yaml/Makefile
===================================================================
--- trunk/devel/py-yaml/Makefile (rev 0)
+++ trunk/devel/py-yaml/Makefile 2014-08-23 12:58:20 UTC (rev 16569)
@@ -0,0 +1,41 @@
+# $MidnightBSD$
+
+PORTNAME= yaml
+PORTVERSION= 3.11
+CATEGORIES= devel python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTNAME= PyYAML-${PORTVERSION}
+
+MAINTAINER= ports at MidnightBSD.org
+COMMENT= Python YAML parser
+
+LICENSE= mit
+
+OPTIONS_DEFINE= LIBYAML EXAMPLES
+LIBYAML_DESC= Use textproc/libyaml for faster parsing
+
+USE_PYTHON= yes
+USE_PYDISTUTILS= yes
+PYDISTUTILS_AUTOPLIST= yes
+
+EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
+
+.include <bsd.port.pre.mk>
+
+.if ${PORT_OPTIONS:MEXAMPLES}
+post-install:
+ @(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}/)
+.endif
+
+.if ${PORT_OPTIONS:MLIBYAML}
+PYDISTUTILS_SETUP+= --with-libyaml
+PYDISTUTILS_BUILD_TARGET= build_ext
+PYDISTUTILS_BUILDARGS+= --include-dirs=${LOCALBASE}/include \
+ --library-dirs=${LOCALBASE}/lib
+LIB_DEPENDS+= libyaml.so:${PORTSDIR}/textproc/libyaml
+.else
+PYDISTUTILS_SETUP+= --without-libyaml
+.endif
+
+.include <bsd.port.post.mk>
Added: trunk/devel/py-yaml/distinfo
===================================================================
--- trunk/devel/py-yaml/distinfo (rev 0)
+++ trunk/devel/py-yaml/distinfo 2014-08-23 12:58:20 UTC (rev 16569)
@@ -0,0 +1,2 @@
+SHA256 (PyYAML-3.11.tar.gz) = c36c938a872e5ff494938b33b14aaa156cb439ec67548fcab3535bb78b0846e8
+SIZE (PyYAML-3.11.tar.gz) = 248685
Added: trunk/devel/py-yaml/pkg-descr
===================================================================
--- trunk/devel/py-yaml/pkg-descr (rev 0)
+++ trunk/devel/py-yaml/pkg-descr 2014-08-23 12:58:20 UTC (rev 16569)
@@ -0,0 +1,16 @@
+PyYAML is a YAML parser and emitter for the Python programming language.
+
+PyYAML features :
+ * a complete YAML 1.1 parser. In particular, PyYAML can parse all examples
+ from the specification. The parsing algorithm is simple enough to be a
+ reference for YAML parser implementors.
+ * Unicode support including UTF-8/UTF-16 input/output and \u escape
+ sequences.
+ * low-level event-based parser and emitter API (like SAX).
+ * high-level API for serializing and deserializing native Python objects
+ (like DOM or pickle).
+ * support for all types from the YAML types repository. A simple extension
+ API is provided.
+ * relatively sensible error messages.
+
+WWW: http://pyyaml.org
Added: trunk/devel/py-yaml/pkg-plist
===================================================================
--- trunk/devel/py-yaml/pkg-plist (rev 0)
+++ trunk/devel/py-yaml/pkg-plist 2014-08-23 12:58:20 UTC (rev 16569)
@@ -0,0 +1,7 @@
+%%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%%
More information about the Midnightbsd-cvs
mailing list