freebsd-ports/science/yoda/Makefile
2022-01-25 09:52:27 -08:00

45 lines
1.2 KiB
Makefile

PORTNAME= yoda
DISTVERSION= 1.9.4
CATEGORIES= science
MASTER_SITES= https://yoda.hepforge.org/downloads/
DISTNAME= ${PORTNAME:tu}-${DISTVERSION}
MAINTAINER= yuri@FreeBSD.org
COMMENT= Particle physics package with classes for data analysis, histogramming
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
TEST_DEPENDS= bash:shells/bash
USES= compiler:c++11-lang gmake libtool python:test shebangfix
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
SHEBANG_GLOB= *.py *.sh
TEST_TARGET= check # doesn't report summary in the end, see https://gitlab.com/hepcedar/yoda/-/issues/49
PLIST_SUB= VERSION=${PORTVERSION}
OPTIONS_DEFINE= PYTHON
OPTIONS_DEFAULT= PYTHON
OPTIONS_SUB= yes
PYTHON_USES= python shebangfix
PYTHON_USE= PYTHON=cython
PYTHON_CONFIGURE_ENABLE= pyext
PYTHON_MAKE_ENV= PYTHON_VERSION=${PYTHON_VER} PYTHON=${PYTHON_CMD}
PYTHON_VARS= SHEBANG_FILES="bin/${PORTNAME}* bin/aida2yoda bin/aida2flat bin/flat2yoda"
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libYODA.so
post-install-PYTHON-on:
@${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/${PORTNAME}/*.so
post-install-PYTHON-off:
@${RM} -r ${STAGEDIR}${PREFIX}/share/${PORTNAME:tu}
.include <bsd.port.mk>