ad19abcbf4
Features: - API to create and manipulate SPDX documents. - Parse and create Tag/Value format SPDX files - Parse and create RDF format SPDX files WWW: https://github.com/spdx/tools-python PR: 229438 Submitted by: freebsd_ports@k-worx.org Sponsored by: iXsystems Inc.
36 lines
951 B
Makefile
36 lines
951 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= spdx-tools
|
|
DISTVERSION= 0.5.4
|
|
CATEGORIES= misc python
|
|
MASTER_SITES= CHEESESHOP
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= freebsd_ports@k-worx.org
|
|
COMMENT= Parses, validates and creates SPDX documents
|
|
|
|
LICENSE= APACHE20
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}ply>=0:devel/py-ply@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}rdflib>=0:textproc/py-rdflib@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}six>=0:devel/py-six@${PY_FLAVOR}
|
|
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}xmltodict>=0:devel/py-xmltodict@${PY_FLAVOR}
|
|
|
|
USES= python:2.7
|
|
USE_PYTHON= distutils autoplist
|
|
|
|
CONFLICTS_INSTALL= py??-spdx-*
|
|
NO_ARCH= yes
|
|
PORTEXAMPLES= *
|
|
|
|
OPTIONS_DEFINE= EXAMPLES
|
|
|
|
post-install-EXAMPLES-on:
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
${FIND} ${WRKSRC}/examples -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${EXAMPLESDIR} \;
|
|
|
|
do-test:
|
|
@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
|
|
|
|
.include <bsd.port.mk>
|