diff options
author | yuri <yuri@FreeBSD.org> | 2018-09-10 13:53:46 +0800 |
---|---|---|
committer | yuri <yuri@FreeBSD.org> | 2018-09-10 13:53:46 +0800 |
commit | f5ccf8cb80e26e8437583f96e4272d06763354e4 (patch) | |
tree | 543b9170ef392688262b8e253ecc8b9cca7285dc /science | |
parent | 3eb7d5d6c81fc84453cb28dd76b150660ce35763 (diff) | |
download | freebsd-ports-gnome-f5ccf8cb80e26e8437583f96e4272d06763354e4.tar.gz freebsd-ports-gnome-f5ccf8cb80e26e8437583f96e4272d06763354e4.tar.zst freebsd-ports-gnome-f5ccf8cb80e26e8437583f96e4272d06763354e4.zip |
New port: science/msms: Program to efficiently compute molecular surfaces
Diffstat (limited to 'science')
-rw-r--r-- | science/Makefile | 1 | ||||
-rw-r--r-- | science/msms/Makefile | 41 | ||||
-rw-r--r-- | science/msms/distinfo-amd64 | 3 | ||||
-rw-r--r-- | science/msms/distinfo-i386 | 3 | ||||
-rw-r--r-- | science/msms/files/extract-license.awk | 21 | ||||
-rw-r--r-- | science/msms/pkg-descr | 8 |
6 files changed, 77 insertions, 0 deletions
diff --git a/science/Makefile b/science/Makefile index 4620c698a30c..102845ab9f0f 100644 --- a/science/Makefile +++ b/science/Makefile @@ -137,6 +137,7 @@ SUBDIR += mol2ps SUBDIR += mpb SUBDIR += mpqc + SUBDIR += msms SUBDIR += multiwfn SUBDIR += namd SUBDIR += ncs diff --git a/science/msms/Makefile b/science/msms/Makefile new file mode 100644 index 000000000000..59b85e32b6a2 --- /dev/null +++ b/science/msms/Makefile @@ -0,0 +1,41 @@ +# $FreeBSD$ + +PORTNAME= msms +DISTVERSIONPREFIX= v +DISTVERSION= 2.6.1 +CATEGORIES= science +MASTER_SITES= http://mgltools.scripps.edu/downloads/tars/releases/MSMSRELEASE/REL${DISTVERSION}/ +DISTNAME= ${PORTNAME}_${ARCH_MSMS_DIST}Linux2_${DISTVERSION} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Program to efficiently compute molecular surfaces + +LICENSE= MSMS_LICENSE +LICENSE_NAME= MSMS License +LICENSE_FILE= ${WRKSRC}/license.txt +LICENSE_PERMS= no-auto-accept no-dist-mirror no-pkg-mirror # No redistribution is allowed. + +ONLY_FOR_ARCHS= amd64 i386 +ONLY_FOR_ARCHS_REASON= Binaries available only for ${ONLY_FOR_ARCHS}. + +RESTRICTED= No commercial use, only for use by individuals + +NO_WRKSUBDIR= yes +NO_BUILD= yes + +ARCH_MSMS_DIST= ${ARCH:S/amd64/i86_64/:S/i386/i86/} +ARCH_MSMS_FILE= ${ARCH:S/amd64/x86_64/:S/i386/i86/} + +DISTINFO_FILE= ${MASTERDIR}/distinfo-${ARCH} + +PLIST_FILES= bin/${PORTNAME} \ + man/man1/${PORTNAME}.1.gz + +post-extract: + @${AWK} -f ${FILESDIR}/extract-license.awk < ${WRKSRC}/README > ${LICENSE_FILE} + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME}.${ARCH_MSMS_FILE}Linux2.${DISTVERSION}${ARCH:S/amd64/.staticgcc/:S/${ARCH}//} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} + ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1 + +.include <bsd.port.mk> diff --git a/science/msms/distinfo-amd64 b/science/msms/distinfo-amd64 new file mode 100644 index 000000000000..f0b22d028e90 --- /dev/null +++ b/science/msms/distinfo-amd64 @@ -0,0 +1,3 @@ +TIMESTAMP = 1536557816 +SHA256 (msms_i86_64Linux2_2.6.1.tar.gz) = 5f0ca50360b5938e74c538e0399d582abc4a40ef4cf410e66f31a1f91e6e3e1f +SIZE (msms_i86_64Linux2_2.6.1.tar.gz) = 593147 diff --git a/science/msms/distinfo-i386 b/science/msms/distinfo-i386 new file mode 100644 index 000000000000..3dccf5c247a7 --- /dev/null +++ b/science/msms/distinfo-i386 @@ -0,0 +1,3 @@ +TIMESTAMP = 1536557847 +SHA256 (msms_i86Linux2_2.6.1.tar.gz) = ab4f9e60df6fe18a5ac05550bf074b287792638a818a047697ead049d8737caf +SIZE (msms_i86Linux2_2.6.1.tar.gz) = 112762 diff --git a/science/msms/files/extract-license.awk b/science/msms/files/extract-license.awk new file mode 100644 index 000000000000..c702a5f0dc4e --- /dev/null +++ b/science/msms/files/extract-license.awk @@ -0,0 +1,21 @@ + +BEGIN { in_licence = 0 } + +{ + if (!in_licence && $2 == "LICENSE") { + in_licence = 1 + print prev_line + del_count = 1 + } else if (in_licence) { + if ($1 == "############################################################################") { + del_count = del_count+1 + if (del_count > 2) + in_licence = 0 + } + } + + if (in_licence) + print $0 + + prev_line = $0 +} diff --git a/science/msms/pkg-descr b/science/msms/pkg-descr new file mode 100644 index 000000000000..e7b6f2264c74 --- /dev/null +++ b/science/msms/pkg-descr @@ -0,0 +1,8 @@ +MSMS computes, for a given probe radius, the reduced surface of a set of +spheres. An analytical description of the solvent excluded surface is +computed from the reduced surface. Special attention is paid to the proper +handling of self-intersecting parts of the surface called singularities. +This analytical model of the solvent excluded surface can be triangulated +with a user specified vertex density. + +WWW: http://mgltools.scripps.edu/downloads#msms |