2016-10-23 09:21:53 +00:00
|
|
|
# Created by: Antoine Brodin <antoine@FreeBSD.org>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= maec
|
2017-01-22 13:40:52 +00:00
|
|
|
PORTVERSION= 4.1.0.13
|
2016-10-23 09:21:53 +00:00
|
|
|
CATEGORIES= security python
|
|
|
|
MASTER_SITES= CHEESESHOP
|
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
|
|
|
|
MAINTAINER= antoine@FreeBSD.org
|
|
|
|
COMMENT= Python library for parsing, manipulating, and generating MAEC content
|
|
|
|
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
|
|
|
|
|
2017-11-30 15:50:30 +00:00
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}lxml>=2.2.3:devel/py-lxml@${FLAVOR} \
|
|
|
|
${PYTHON_PKGNAMEPREFIX}cybox>=2.1.0.13:security/py-cybox@${FLAVOR} \
|
|
|
|
${PYTHON_PKGNAMEPREFIX}mixbox>=0.0.13:security/py-mixbox@${FLAVOR}
|
|
|
|
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nose>=0:devel/py-nose@${FLAVOR}
|
2016-10-23 09:21:53 +00:00
|
|
|
|
|
|
|
NO_ARCH= yes
|
2017-01-22 13:40:52 +00:00
|
|
|
USES= python
|
2016-10-23 09:21:53 +00:00
|
|
|
USE_PYTHON= distutils autoplist
|
2017-01-22 13:40:52 +00:00
|
|
|
USE_LOCALE= en_US.UTF-8
|
2016-10-23 09:21:53 +00:00
|
|
|
|
|
|
|
PORTDOCS= README.rst
|
|
|
|
PORTEXAMPLES= *
|
|
|
|
|
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
|
|
|
2017-01-22 13:40:52 +00:00
|
|
|
do-install-DOCS-on:
|
2016-10-23 09:21:53 +00:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
|
|
|
|
|
2017-01-22 13:40:52 +00:00
|
|
|
do-install-EXAMPLES-on:
|
2016-10-23 09:21:53 +00:00
|
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
|
|
|
|
do-test:
|
|
|
|
@(cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} nosetests-${PYTHON_VER})
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|