[143374] trunk/dports/science/gromacs/Portfile
dstrubbe at macports.org
dstrubbe at macports.org
Sat Dec 12 09:42:58 PST 2015
Revision: 143374
https://trac.macports.org/changeset/143374
Author: dstrubbe at macports.org
Date: 2015-12-11 09:52:24 -0800 (Fri, 11 Dec 2015)
Log Message:
-----------
gromacs: Replace subport gromacs-double by variant gromacs +double, since there doesn't seem any good reason to want them both installed at once, and the current support for doing so is broken anyway.
Modified Paths:
--------------
trunk/dports/science/gromacs/Portfile
Modified: trunk/dports/science/gromacs/Portfile
===================================================================
--- trunk/dports/science/gromacs/Portfile 2015-12-11 16:54:16 UTC (rev 143373)
+++ trunk/dports/science/gromacs/Portfile 2015-12-11 17:52:24 UTC (rev 143374)
@@ -32,8 +32,7 @@
depends_build-append \
port:pkgconfig
-# libxml2 actually needed?
-depends_lib-append port:libxml2
+depends_lib-append port:fftw-3-single port:libxml2
# FIXME: enable use of avx when appropriate, instead of just SSE
configure.args-append -DGMX_SIMD:STRING="SSE4.1" -DBUILD_TESTING:BOOL=ON -DGMX_X11:BOOL=ON
@@ -59,28 +58,21 @@
}
}
-if {${name} eq ${subport}} {
- depends_lib-append port:fftw-3-single
-
- livecheck.type regex
- livecheck.url ${homepage}Downloads
- livecheck.regex ${name}-(\[0-9.\]+)${extract.suffix}
-} else {
- livecheck.type none
+variant double description "Build in double precision" {
+ depends_lib-delete port:fftw-3-single
+ depends_lib-append port:fftw-3
+ configure.args-append --enable-double
}
subport ${name}-double {
- description-append (double-precision)
- long_description-append (double-precision)
-
- depends_lib-append port:${name} \
- port:fftw-3
-
- configure.args-append --enable-double
-
- post-destroot {
- # All the required files are provided by the single-precision 'gromacs' port. Delete everything that's not required.
- system "find \"${destroot}${prefix}\" -depth 1 -not -name lib -print0 | xargs -0 rm -rf"
- system "find \"${destroot}${prefix}\" -type f -not -iname '*_d' -a -not -name '*_d.*' -print0 | xargs -0 rm -rf"
+ replaced_by gromacs
+ PortGroup obsolete 1.0
+ revision 1
+ pre-fetch {
+ ui_warn "Subport 'gromacs-double' is replaced by variant 'gromacs +double'."
}
}
+
+livecheck.type regex
+livecheck.url ${homepage}Downloads
+livecheck.regex ${name}-(\[0-9.\]+)${extract.suffix}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151212/4d7a79e0/attachment.html>
More information about the macports-changes
mailing list