svn commit: r559333 - head/science/wannier90
Yuri Victorovich
yuri at FreeBSD.org
Sun Dec 27 02:31:01 UTC 2020
Author: yuri
Date: Sun Dec 27 02:31:00 2020
New Revision: 559333
URL: https://svnweb.freebsd.org/changeset/ports/559333
Log:
science/wannier90: Fix registration of libwannier in ldconfig by adding the symlink; Add the 'test' target.
PR: 252162
Submitted by: thierry
Modified:
head/science/wannier90/Makefile
Modified: head/science/wannier90/Makefile
==============================================================================
--- head/science/wannier90/Makefile Sun Dec 27 02:28:28 2020 (r559332)
+++ head/science/wannier90/Makefile Sun Dec 27 02:31:00 2020 (r559333)
@@ -3,6 +3,7 @@
PORTNAME= wannier90
DISTVERSIONPREFIX= v
DISTVERSION= 3.1.0
+PORTREVISION= 1
CATEGORIES= science
MAINTAINER= yuri at FreeBSD.org
@@ -11,29 +12,36 @@ COMMENT= Maximally-localized Wannier functions (MLWFs)
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/LICENSE
-LIB_DEPENDS= libblas.so:math/blas \
- liblapack.so:math/lapack
-
-USES= fortran gmake
+USES= blaslapack:netlib fortran gmake python:test shebangfix
USE_GITHUB= yes
GH_ACCOUNT= wannier-developers
+SHEBANG_FILES= test-suite/run_tests test-suite/clean_tests \
+ test-suite/tools/fprettify-wrapper.py \
+ test-suite/testcode/bin/testcode.py \
+ test-suite/library-mode-test/compare_results.py \
+ utility/k_mapper.py utility/gw2wannier90.py
USE_LDCONFIG= yes
MAKE_ARGS= FCOPTS="-fPIC -O3"
+TEST_TARGET= tests # most tests using --numprocs=4 fail: https://github.com/wannier-developers/wannier90/issues/351
+
PLIST_FILES= bin/postw90.x \
bin/w90chk2chk.x \
bin/wannier90.x \
- lib/libwannier.so
+ lib/libwannier90.so \
+ lib/libwannier90.so.0
post-patch:
@${REINPLACE_CMD} 's|F90 = gfortran|&${GCC_DEFAULT}|' ${WRKSRC}/config/make.inc.gfort
@${RLN} ${WRKSRC}/config/make.inc.gfort ${WRKSRC}/make.inc
+ @${REINPLACE_CMD} 's|make|${GMAKE}|' ${WRKSRC}/test-suite/run_tests
do-install:
.for p in wannier90.x postw90.x w90chk2chk.x
${INSTALL_PROGRAM} ${WRKSRC}/${p} ${STAGEDIR}${PREFIX}/bin/${p}
.endfor
- ${INSTALL_LIB} ${WRKSRC}/src/obj/libwannier.so ${STAGEDIR}${PREFIX}/lib
+ ${INSTALL_LIB} ${WRKSRC}/src/obj/libwannier.so ${STAGEDIR}${PREFIX}/lib/libwannier90.so.0
+ ${LN} -sf libwannier90.so.0 ${STAGEDIR}${PREFIX}/lib/libwannier90.so
.include <bsd.port.mk>
More information about the svn-ports-head
mailing list