[91470] trunk/dports/science

jmr at macports.org jmr at macports.org
Mon Apr 2 13:11:35 PDT 2012


Revision: 91470
          https://trac.macports.org/changeset/91470
Author:   jmr at macports.org
Date:     2012-04-02 13:11:32 -0700 (Mon, 02 Apr 2012)
Log Message:
-----------
New port: libctl, Scheme/Guile-based scripting of scientific code (#29204)

Added Paths:
-----------
    trunk/dports/science/libctl/
    trunk/dports/science/libctl/Portfile
    trunk/dports/science/libctl/files/
    trunk/dports/science/libctl/files/guile16.diff

Added: trunk/dports/science/libctl/Portfile
===================================================================
--- trunk/dports/science/libctl/Portfile	                        (rev 0)
+++ trunk/dports/science/libctl/Portfile	2012-04-02 20:11:32 UTC (rev 91470)
@@ -0,0 +1,55 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem          1.0
+
+name                libctl
+version             3.1
+categories          science
+platforms           darwin
+license				GPL-2+
+
+maintainers         ece.pdx.edu:higginja
+
+description         Scheme/Guile-based scripting of scientific code.
+long_description    \
+	Libctl is a free Guile-based library implementing flexible control files \
+	for scientific simulations. It was written to support the MIT Photonic \
+	Bands and Meep software, but has proven useful in other programs too.
+
+homepage            http://ab-initio.mit.edu/wiki/index.php/Libctl
+master_sites        http://ab-initio.mit.edu/libctl/
+
+checksums           sha1    1b2fd33a4aac7e759fee5ce501d846753f4d93de \
+                    rmd160  b60182dcaab3abfa3b47eb67ace826c4d672e0c6
+
+depends_lib			port:guile16
+
+variant gcc43 conflicts gcc44 gcc45 gcc46 description {Compile with gcc 4.3} {
+    configure.compiler	macports-gcc-4.3
+    depends_lib-append	port:gcc43
+}
+
+variant gcc44 conflicts gcc43 gcc45 gcc46 description {Compile with gcc 4.4} {
+    configure.compiler	macports-gcc-4.4
+    depends_lib-append	port:gcc44
+}
+
+variant gcc45 conflicts gcc43 gcc44 gcc46 description {Compile with gcc 4.5} {
+    configure.compiler	macports-gcc-4.5
+    depends_lib-append	port:gcc45
+}
+
+variant gcc46 conflicts gcc43 gcc44 gcc45 description {Compile with gcc 4.6} {
+    configure.compiler	macports-gcc-4.6
+    depends_lib-append	port:gcc46
+}
+
+if {![variant_isset gcc43] && ![variant_isset gcc44] && ![variant_isset gcc46]} {
+    default_variants +gcc45
+}
+
+patchfiles			guile16.diff
+
+use_autoreconf		yes
+autoreconf.args		-fvi


Property changes on: trunk/dports/science/libctl/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/science/libctl/files/guile16.diff
===================================================================
--- trunk/dports/science/libctl/files/guile16.diff	                        (rev 0)
+++ trunk/dports/science/libctl/files/guile16.diff	2012-04-02 20:11:32 UTC (rev 91470)
@@ -0,0 +1,130 @@
+--- base/main.c.orig	2009-06-05 09:22:36.000000000 -0700
++++ base/main.c	2011-07-13 17:28:12.000000000 -0700
+@@ -30,7 +30,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
+-#include <guile/gh.h>
++#include <guile16/gh.h>
+ 
+ /* for basename and dirname functions */
+ #include <libgen.h>
+--- configure.ac.orig	2009-06-05 09:20:52.000000000 -0700
++++ configure.ac	2011-07-13 17:25:55.000000000 -0700
+@@ -51,18 +51,18 @@
+ 
+ # Find Guile library, flags, etcetera:
+ 
+-AC_CHECK_PROG(GUILE, guile, guile, unknown)
++AC_CHECK_PROG(GUILE, guile16, guile16, unknown)
+ if test x"$guile_ok" = xunknown; then
+ 	AC_MSG_ERROR([could not find guile program; check your PATH])
+ fi
+ AC_SUBST(GUILE)
+ 
+-AC_CHECK_PROG(GUILE_CONFIG, guile-config, guile-config, unknown)
++AC_CHECK_PROG(GUILE_CONFIG, guile16-config, guile16-config, unknown)
+ if test "x$GUILE_CONFIG" = "xunknown"; then
+ 	AC_CHECK_LIB(m, sqrt)
+ 	AC_CHECK_LIB(readline, readline)
+ 	AC_CHECK_LIB(dl, dlopen)
+-	AC_CHECK_LIB(guile, gh_eval_str)
++	AC_CHECK_LIB(guile16, gh_eval_str)
+ else
+ 	CPPFLAGS="$CPPFLAGS `$GUILE_CONFIG compile`"
+ 	LIBS="$LIBS `$GUILE_CONFIG link`"
+@@ -80,37 +80,37 @@
+ 
+ AC_MSG_CHECKING([for gh_load])
+ ok=yes
+-AC_TRY_LINK([#include <guile/gh.h>
++AC_TRY_LINK([#include <guile16/gh.h>
+ ], [gh_load(0);], [AC_DEFINE(HAVE_GH_LOAD, 1, [Define if we have gh_load.])], ok=no)
+ AC_MSG_RESULT($ok)
+ 
+ AC_MSG_CHECKING([for gh_bool2scm])
+ ok=yes
+-AC_TRY_LINK([#include <guile/gh.h>
++AC_TRY_LINK([#include <guile16/gh.h>
+ ], [gh_bool2scm(0);], [AC_DEFINE(HAVE_GH_BOOL2SCM, 1, [Define if we have gh_bool2scm])], ok=no)
+ AC_MSG_RESULT($ok)
+ 
+ AC_MSG_CHECKING([for gh_vector_ref])
+ ok=yes
+-AC_TRY_LINK([#include <guile/gh.h>
++AC_TRY_LINK([#include <guile16/gh.h>
+ ], [gh_vector_ref(0,0);], [AC_DEFINE(HAVE_GH_VECTOR_REF, 1, [Define if we have gh_vector_ref])], ok=no)
+ AC_MSG_RESULT($ok)
+ 
+ AC_MSG_CHECKING([for gh_list_ref])
+ ok=yes
+-AC_TRY_LINK([#include <guile/gh.h>
++AC_TRY_LINK([#include <guile16/gh.h>
+ ], [gh_list_ref(0,0);], [AC_DEFINE(HAVE_GH_LIST_REF, 1, [Define if we have gh_list_ref])], ok=no)
+ AC_MSG_RESULT($ok)
+ 
+ AC_MSG_CHECKING([for gh_length])
+ ok=yes
+-AC_TRY_LINK([#include <guile/gh.h>
++AC_TRY_LINK([#include <guile16/gh.h>
+ ], [gh_length(0);], [AC_DEFINE(HAVE_GH_LENGTH, 1, [Define if we have gh_length])], ok=no)
+ AC_MSG_RESULT($ok)
+ 
+ AC_MSG_CHECKING([for scm_flush_all_ports])
+ ok=yes
+-AC_TRY_LINK([#include <guile/gh.h>
++AC_TRY_LINK([#include <guile16/gh.h>
+ ], [scm_flush_all_ports();], [AC_DEFINE(HAVE_SCM_FLUSH_ALL_PORTS, 1, [Define if we have scm_flush_all_ports])], ok=no)
+ AC_MSG_RESULT($ok)
+ 
+@@ -118,7 +118,7 @@
+ 
+ AC_MSG_CHECKING([for SCM_COMPLEXP])
+ ok=yes
+-AC_TRY_LINK([#include <guile/gh.h>
++AC_TRY_LINK([#include <guile16/gh.h>
+ ], [SCM x; SCM_COMPLEXP(x);], [AC_DEFINE(HAVE_SCM_COMPLEXP, 1, [Define if we have SCM_COMPLEXP])], ok=no)
+ AC_MSG_RESULT($ok)
+ 
+@@ -126,7 +126,7 @@
+ ok=yes
+ AC_TRY_RUN([
+ #include <stdlib.h>
+-#include <guile/gh.h>
++#include <guile16/gh.h>
+ void main_entry(int argc, char *argv[])
+ {
+      gh_eval_str("(define foo 3.14159)");
+--- examples/example.c.orig	2009-06-05 09:22:36.000000000 -0700
++++ examples/example.c	2011-07-13 17:28:00.000000000 -0700
+@@ -29,7 +29,7 @@
+ 
+ #include <stdio.h>
+ #include <stdlib.h>
+-#include <guile/gh.h>
++#include <guile16/gh.h>
+ 
+ #include "ctl-io.h"
+ #include <ctlgeom.h>
+--- src/ctl.h.in.orig	2009-06-05 09:23:47.000000000 -0700
++++ src/ctl.h.in	2011-07-13 17:26:12.000000000 -0700
+@@ -22,7 +22,7 @@
+ #ifndef CTL_H
+ #define CTL_H
+ 
+-#include <guile/gh.h>
++#include <guile16/gh.h>
+ 
+ #ifdef __cplusplus
+ extern "C" {
+--- utils/gen-ctl-io.in.orig	2009-06-03 17:49:25.000000000 -0700
++++ utils/gen-ctl-io.in	2011-07-13 17:27:44.000000000 -0700
+@@ -97,7 +97,7 @@
+ #ifndef CTL_IO_H
+ #define CTL_IO_H
+ 
+-#include <guile/gh.h>
++#include <guile16/gh.h>
+ #include <ctl.h>
+ 
+ EOF
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120402/a2d9ac39/attachment.html>


More information about the macports-changes mailing list