From owner-svn-ports-head@freebsd.org Mon Sep 3 04:09:02 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 206E4FD5DE2; Mon, 3 Sep 2018 04:09:02 +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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C5D3873A71; Mon, 3 Sep 2018 04:09: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 BB4E222CC1; Mon, 3 Sep 2018 04:09: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 w83491x6049531; Mon, 3 Sep 2018 04:09:01 GMT (envelope-from yuri@FreeBSD.org) Received: (from yuri@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w83490v4049527; Mon, 3 Sep 2018 04:09:00 GMT (envelope-from yuri@FreeBSD.org) Message-Id: <201809030409.w83490v4049527@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: yuri set sender to yuri@FreeBSD.org using -f From: Yuri Victorovich Date: Mon, 3 Sep 2018 04:09:00 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r478841 - in head/science: . wannier90 wannier90/files X-SVN-Group: ports-head X-SVN-Commit-Author: yuri X-SVN-Commit-Paths: in head/science: . wannier90 wannier90/files X-SVN-Commit-Revision: 478841 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Sep 2018 04:09:02 -0000 Author: yuri Date: Mon Sep 3 04:09:00 2018 New Revision: 478841 URL: https://svnweb.freebsd.org/changeset/ports/478841 Log: New port: science/wannier90: Maximally-localized Wannier functions (MLWFs) and Wannier90 Added: head/science/wannier90/ head/science/wannier90/Makefile (contents, props changed) head/science/wannier90/distinfo (contents, props changed) head/science/wannier90/files/ head/science/wannier90/files/patch-src_Makefile.2 (contents, props changed) head/science/wannier90/pkg-descr (contents, props changed) Modified: head/science/Makefile Modified: head/science/Makefile ============================================================================== --- head/science/Makefile Mon Sep 3 02:52:34 2018 (r478840) +++ head/science/Makefile Mon Sep 3 04:09:00 2018 (r478841) @@ -263,6 +263,7 @@ SUBDIR += v_sim SUBDIR += vmd SUBDIR += voro++ + SUBDIR += wannier90 SUBDIR += xcrysden SUBDIR += xdrawchem SUBDIR += xfce4-equake-plugin Added: head/science/wannier90/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/science/wannier90/Makefile Mon Sep 3 04:09:00 2018 (r478841) @@ -0,0 +1,37 @@ +# $FreeBSD$ + +PORTNAME= wannier90 +DISTVERSION= 2.1.0 +CATEGORIES= science +MASTER_SITES= http://www.wannier.org/code/ + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Maximally-localized Wannier functions (MLWFs) and Wannier90 + +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/LICENSE + +LIB_DEPENDS= libblas.so:math/blas \ + liblapack.so:math/lapack + +USES= fortran gmake +USE_LDCONFIG= yes + +MAKE_ARGS= FCOPTS="-fPIC -O3" + +PLIST_FILES= bin/postw90.x \ + bin/w90chk2chk.x \ + bin/wannier90.x \ + lib/libwannier.so + +post-patch: + @${REINPLACE_CMD} 's|F90 = gfortran|&${GCC_DEFAULT}|' ${WRKSRC}/config/make.inc.gfort + @${RLN} ${WRKSRC}/config/make.inc.gfort ${WRKSRC}/make.inc + +do-install: +.for p in wannier90.x postw90.x w90chk2chk.x + ${INSTALL_PROGRAM} ${WRKSRC}/${p} ${STAGEDIR}${PREFIX}/bin/${p} +.endfor + ${INSTALL_LIB} ${WRKSRC}/libwannier.so ${STAGEDIR}${PREFIX}/lib + +.include Added: head/science/wannier90/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/science/wannier90/distinfo Mon Sep 3 04:09:00 2018 (r478841) @@ -0,0 +1,3 @@ +TIMESTAMP = 1535941251 +SHA256 (wannier90-2.1.0.tar.gz) = ee90108d4bc4aa6a1cf16d72abebcb3087cf6c1007d22dda269eb7e7076bddca +SIZE (wannier90-2.1.0.tar.gz) = 57264711 Added: head/science/wannier90/files/patch-src_Makefile.2 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/science/wannier90/files/patch-src_Makefile.2 Mon Sep 3 04:09:00 2018 (r478841) @@ -0,0 +1,20 @@ +--- src/Makefile.2.orig 2017-01-11 22:15:31 UTC ++++ src/Makefile.2 +@@ -12,7 +12,7 @@ OBJS2 = wannier_lib.o + OBJS_POST = ws_distance.o parameters.o kmesh.o io.o comms.o utility.o get_oper.o constants.o \ + postw90_common.o wan_ham.o spin.o dos.o berry.o kpath.o kslice.o boltzwann.o geninterp.o + +-LIBRARY = ../../libwannier.a ++LIBRARY = ../../libwannier.so + + POSTDIR = ../postw90/ + +@@ -74,7 +74,7 @@ endif + libs: $(LIBRARY) + + $(LIBRARY): $(OBJS) $(OBJS2) +- $(AR) $(ARFLAGS) $(LIBRARY) $(OBJS2) $(OBJS) ++ $(CC) $(LDFLAGS) -shared -o $(LIBRARY) -Wl,-soname,libwannier.so $(OBJS2) $(OBJS) + + clean: + rm -f *.o *.mod *.MOD *.obj Added: head/science/wannier90/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/science/wannier90/pkg-descr Mon Sep 3 04:09:00 2018 (r478841) @@ -0,0 +1,4 @@ +The computer program that calculates maximally-localized Wannier functions +(MLWFs) and Wannier90 for quantum chemistry and physics fields. + +WWW: http://www.wannier.org/