blob: 4cad85519be1fc54a9805d87d78d0c7494937b56 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
PORTNAME= yoda
DISTVERSION= 1.9.0
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
USES= compiler:c++11-lang gmake libtool
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
OPTIONS_DEFINE= 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"
PYTHON_BROKEN= Fails with "Error: 'lib/python2.7/site-packages/yoda/plotting.pyc' is referring to /usr/ports/science/yoda/work/stage"
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libYODA.so
post-install-PYTHON-on:
@${MKDIR} ${STAGEDIR}${PREFIX}/share/bash-completion/completions
@${MV} ${STAGEDIR}${PREFIX}/share/${PORTNAME:tu}/yoda-completion ${STAGEDIR}${PREFIX}/share/bash-completion/completions/
post-install-PYTHON-off:
@${RM} -r ${STAGEDIR}${PREFIX}/share/${PORTNAME:tu}
.include <bsd.port.mk>
|