[64127] trunk/dports/science

macsforever2000 at macports.org macsforever2000 at macports.org
Mon Feb 22 14:59:58 PST 2010


Revision: 64127
          http://trac.macports.org/changeset/64127
Author:   macsforever2000 at macports.org
Date:     2010-02-22 14:59:54 -0800 (Mon, 22 Feb 2010)
Log Message:
-----------
New port: miriad. (#21618)

Added Paths:
-----------
    trunk/dports/science/miriad/
    trunk/dports/science/miriad/Portfile

Added: trunk/dports/science/miriad/Portfile
===================================================================
--- trunk/dports/science/miriad/Portfile	                        (rev 0)
+++ trunk/dports/science/miriad/Portfile	2010-02-22 22:59:54 UTC (rev 64127)
@@ -0,0 +1,113 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem       1.0
+
+name             miriad
+set relver       4.1.1
+set tardate      20091018
+version          ${relver}.${tardate}
+platforms        darwin
+categories       science
+maintainers      newton.cx:peter
+description      MIRIAD, an analysis package for radio astronomical data
+long_description MIRIAD, the Multichannel Imaging, Reconstruction, Analysis, \
+                 and Display package, is a suite of tools for analyzing radio \
+                 astronomical observations, from raw data to imaging.
+homepage         http://astro.berkeley.edu/~pkwill/miriad-macport/
+
+# The license to MIRIAD is somewhat indeterminate, since it has had
+# many contributors working at many academic institutions with various
+# copyright assignment and licensing policies. It's pretty important
+# to straighten this out at some point.
+
+license          unknown
+
+# Versioning information. Miriad releases are very infrequent, so
+# our ports will be based on distributions made from CVS snapshots.
+# We add a sub-version number based on the snapshot date to
+# distinguish things.
+
+# Files
+
+master_sites http://astro.berkeley.edu/~pkwill/miriad-macport/
+#distfiles    ${name}-${version}.tar.gz
+checksums    sha1 345422e25fef4f8343d7b7f2b42d5e2c33b3bd88
+
+# We need Fortran support, which the Apple version of GCC doesn't offer.
+# So we force the use of a specified MacPorts-built GCC.
+
+set compilerport  gcc43
+set compilerident macports-gcc-4.3
+
+depends_build     port:${compilerport}
+depends_lib       lib:libXaw:xorg-libXaw
+
+# The XCode 3.0 linker has a bug that prevents successful execution of
+# Miriad tasks. Older versions work, but hopefully not many people have
+# them installed anymore so we can just use the portgroup.
+
+PortGroup             xcodeversion 1.0
+
+minimum_xcodeversions {7 3.1}
+
+# We've hacked in the tarball date into the version number, so
+# we to tell the build system what directory to the files in the
+# tarball actually live in.
+
+worksrcdir      ${name}-${relver}
+
+# I'm writing the Portfile and I use the ATA, so the default telescope
+# is the ATA too. Privileges of maintainership.
+
+set defaultscope ata
+set thescope ${defaultscope}
+
+# Configure settings. Keep the binaries out of ${prefix}/bin to avoid
+# possible conflicts. The automiriad scripts will deal with this correctly
+# anyway.
+
+configure.args  --prefix=${prefix} \
+                --bindir=${prefix}/libexec/miriad \
+                --with-telescope=${defaultscope}
+configure.compiler ${compilerident}
+
+# The telescope configuration is important, so make sure the user is
+# notified of which setup is being used
+
+pre-configure {
+    ui_msg "Configuring MIRIAD with telescope parameter of \"${thescope}\"."
+    ui_msg "Consult the port variants to use a different setting. The default"
+    ui_msg "is \"${defaultscope}\". If there's no variant for you desired"
+    ui_msg "telescope, contact the port maintainer and one will be quickly added."
+}
+
+# Little helpful message. We could consider adding a patch to install
+# a little program named "use_miriad" or something that would do the
+# .profile munging automatically, but I don't want to worry about having
+# to get that right.
+
+notes "MIRIAD programs are not in your \$PATH by default." \
+      "You need to run 'source ${prefix}/lib/miriad/automiriad.sh' to set up" \
+      "your shell environment to use MIRIAD. (Source ${prefix}/lib/miriad/automiriad.csh" \
+      "if you use csh or tcsh.) You can put this command in your .profile" \
+      "or other shell initialization files to have your shells automatically" \
+      "set up to use MIRIAD."
+
+# Variants. We can easily add more telescope variants as requested.
+
+variant carma description {Use buffer sizes appropriate to CARMA data} {
+    set thescope carma
+    configure.args-delete --with-telescope=${defaultscope}
+    configure.args-append --with-telescope=${thescope}
+}
+
+variant debug description {Build with debugging support -- tasks will be very slow} {
+    configure.optflags -g -O0
+    configure.args-append --enable-warnings
+}
+
+variant docs description {Build documentation PDFs -- depends on many ports} {
+    depends_build-append port:texlive port:latex2html port:transfig port:gnuplot
+    configure.args-append --enable-docs
+}


Property changes on: trunk/dports/science/miriad/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100222/09ad9c64/attachment.html>


More information about the macports-changes mailing list