From owner-svn-ports-all@freebsd.org Sun Dec 27 02:31:01 2020 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 9BCA94CA4D2; Sun, 27 Dec 2020 02:31:01 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4D3Pn1441vz3Hb8; Sun, 27 Dec 2020 02:31:01 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 7ECFD1F4D3; Sun, 27 Dec 2020 02:31:01 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 0BR2V1bp047961; Sun, 27 Dec 2020 02:31:01 GMT (envelope-from yuri@FreeBSD.org) Received: (from yuri@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 0BR2V1xW047960; Sun, 27 Dec 2020 02:31:01 GMT (envelope-from yuri@FreeBSD.org) Message-Id: <202012270231.0BR2V1xW047960@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: yuri set sender to yuri@FreeBSD.org using -f From: Yuri Victorovich Date: Sun, 27 Dec 2020 02:31:01 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r559333 - head/science/wannier90 X-SVN-Group: ports-head X-SVN-Commit-Author: yuri X-SVN-Commit-Paths: head/science/wannier90 X-SVN-Commit-Revision: 559333 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Dec 2020 02:31:01 -0000 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@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