# Created by: ijliao@FreeBSD.org # $FreeBSD$ PORTNAME= yaml PORTVERSION= 3.11 CATEGORIES= devel python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTNAME= PyYAML-${PORTVERSION} MAINTAINER= jpaetzel@FreeBSD.org COMMENT= Python YAML parser LICENSE= MIT OPTIONS_DEFINE= LIBYAML EXAMPLES LIBYAML_DESC= Use textproc/libyaml for faster parsing USES= python USE_PYTHON= distutils autoplist EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME} .include .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:textproc/libyaml .else PYDISTUTILS_SETUP+= --without-libyaml .endif .include