[116080] trunk/dports/science

macsforever2000 at macports.org macsforever2000 at macports.org
Fri Jan 17 09:57:03 PST 2014


Revision: 116080
          https://trac.macports.org/changeset/116080
Author:   macsforever2000 at macports.org
Date:     2014-01-17 09:57:03 -0800 (Fri, 17 Jan 2014)
Log Message:
-----------
demeter: New port.

Added Paths:
-----------
    trunk/dports/science/demeter/
    trunk/dports/science/demeter/Portfile
    trunk/dports/science/demeter/files/
    trunk/dports/science/demeter/files/patch-DocBuilder-Artemis.pm.diff
    trunk/dports/science/demeter/files/patch-DocBuilder-Athena.pm.diff

Added: trunk/dports/science/demeter/Portfile
===================================================================
--- trunk/dports/science/demeter/Portfile	                        (rev 0)
+++ trunk/dports/science/demeter/Portfile	2014-01-17 17:57:03 UTC (rev 116080)
@@ -0,0 +1,95 @@
+# -*- 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
+PortGroup           perl5 1.0
+PortGroup           github 1.0
+
+# Need to use perl 5.16 because p5.12-wx does not work. But make the perl version easy to change.
+set perl-version    5.16
+perl5.branches      ${perl-version}
+
+name                demeter
+version             0.9.18.2
+
+categories          science
+platforms           darwin
+license             Permissive
+maintainers         macsforever2000 openmaintainer
+
+description         Demeter is a comprehensive system for processing and analyzing X-ray Absorption Spectroscopy data.
+
+long_description    Demeter is a comprehensive system for processing and analyzing X-ray Absorption Spectroscopy data.
+
+homepage            http://bruceravel.github.com/demeter/
+master_sites        https://github.com/bruceravel/demeter/archive/
+
+distname            ${version}
+worksrcdir          ${name}-${version}
+
+checksums           rmd160  002f5ec90aacb0a103f8bd5f77872917003b0949 \
+                    sha256  4cac8067e3d8d62678192c42554b42771baad4299175b9c6693b225055efade6
+
+depends_build-append \
+                    port:p${perl-version}-file-touch \
+                    port:p${perl-version}-image-size \
+                    port:p${perl-version}-pod-projectdocs \
+                    port:p${perl-version}-ppi \
+                    port:p${perl-version}-ppi-html \
+                    port:p${perl-version}-syntax-highlight-perl \
+                    port:p${perl-version}-template-toolkit
+
+depends_lib-append  port:ifeffit \
+                    port:p${perl-version}-archive-zip \
+                    port:p${perl-version}-capture-tiny \
+                    port:p${perl-version}-chemistry-elements \
+                    port:p${perl-version}-config-ini \
+                    port:p${perl-version}-const-fast \
+                    port:p${perl-version}-datetime \
+                    port:p${perl-version}-encoding-fixlatin \
+                    port:p${perl-version}-file-copy-recursive \
+                    port:p${perl-version}-file-countlines \
+                    port:p${perl-version}-file-monitor-lite \
+                    port:p${perl-version}-graph \
+                    port:p${perl-version}-graphics-gnuplotif \
+                    port:p${perl-version}-html-parser \
+                    port:p${perl-version}-ifeffit \
+                    port:p${perl-version}-math-combinatorics \
+                    port:p${perl-version}-math-derivative \
+                    port:p${perl-version}-math-spline \
+                    port:p${perl-version}-moose \
+                    port:p${perl-version}-moosex-aliases \
+                    port:p${perl-version}-moosex-singleton \
+                    port:p${perl-version}-moosex-strictconstructor \
+                    port:p${perl-version}-moosex-types \
+                    port:p${perl-version}-pdl \
+                    port:p${perl-version}-pdl-stats \
+                    port:p${perl-version}-pod-pom \
+                    port:p${perl-version}-ppi \
+                    port:p${perl-version}-regexp-assemble \
+                    port:p${perl-version}-regexp-common \
+                    port:p${perl-version}-soap-lite \
+                    port:p${perl-version}-spreadsheet-writeexcel \
+                    port:p${perl-version}-statistics-descriptive \
+                    port:p${perl-version}-string-random \
+                    port:p${perl-version}-term-sk \
+                    port:p${perl-version}-term-twiddle \
+                    port:p${perl-version}-text-template \
+                    port:p${perl-version}-tree-simple \
+                    port:p${perl-version}-want \
+                    port:p${perl-version}-wx \
+                    port:p${perl-version}-yaml-tiny
+
+patchfiles          patch-DocBuilder-Artemis.pm.diff \
+                    patch-DocBuilder-Athena.pm.diff
+
+post-patch {
+    reinplace "s|@@PERL-VERSION@@|${perl-version}|g" ${worksrcpath}/DocBuilder/Artemis.pm
+    reinplace "s|@@PERL-VERSION@@|${perl-version}|g" ${worksrcpath}/DocBuilder/Athena.pm
+}
+
+configure.cmd       perl Build.PL
+configure.args      --destdir ${destroot}
+
+build.cmd           ./Build
+build.target        install


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

Added: trunk/dports/science/demeter/files/patch-DocBuilder-Artemis.pm.diff
===================================================================
--- trunk/dports/science/demeter/files/patch-DocBuilder-Artemis.pm.diff	                        (rev 0)
+++ trunk/dports/science/demeter/files/patch-DocBuilder-Artemis.pm.diff	2014-01-17 17:57:03 UTC (rev 116080)
@@ -0,0 +1,28 @@
+--- DocBuilder/Artemis.pm.orig	2013-03-28 15:00:02.000000000 -0600
++++ DocBuilder/Artemis.pm	2013-04-26 09:40:46.000000000 -0600
+@@ -72,14 +72,14 @@
+   print "  configuring bin directory\n" if ($self->verbose);
+   foreach my $b (qw(build)) { # tex texbw pod mobile
+     unlink File::Spec->catfile('bin', $b);
+-    system("tpage --define installdir=$id bin/$b.tt > bin/$b");
++    system("tpage-@@PERL-VERSION@@ --define installdir=$id bin/$b.tt > bin/$b");
+     chmod 0755, File::Spec->catfile('bin', $b);
+   };
+ 
+   print "  configuring etc directory\n" if ($self->verbose);
+   foreach my $b (qw(ttree)) { #  ttree_tex ttree_texbw ttree_pod ttree_mobile
+     unlink File::Spec->catfile('etc', $b);
+-    system("tpage --define installdir=$id etc/$b.tt > etc/$b.cfg");
++    system("tpage-@@PERL-VERSION@@ --define installdir=$id etc/$b.tt > etc/$b.cfg");
+   };
+ 
+   print "  copying map and version templates\n" if ($self->verbose);
+@@ -104,7 +104,7 @@
+   my $id = cwd;
+   my $verbose = q{};
+   $verbose = "--verbose", if ($self->verbose);
+-  system("ttree -f $id/etc/ttree.cfg --relative --trim $verbose");
++  system("ttree-@@PERL-VERSION@@ -f $id/etc/ttree.cfg --relative --trim $verbose");
+   chdir $here;
+ };
+ 

Added: trunk/dports/science/demeter/files/patch-DocBuilder-Athena.pm.diff
===================================================================
--- trunk/dports/science/demeter/files/patch-DocBuilder-Athena.pm.diff	                        (rev 0)
+++ trunk/dports/science/demeter/files/patch-DocBuilder-Athena.pm.diff	2014-01-17 17:57:03 UTC (rev 116080)
@@ -0,0 +1,28 @@
+--- DocBuilder/Athena.pm.orig	2013-03-28 15:00:02.000000000 -0600
++++ DocBuilder/Athena.pm	2013-04-26 09:40:44.000000000 -0600
+@@ -72,14 +72,14 @@
+   print "  configuring bin directory\n" if ($self->verbose);
+   foreach my $b (qw(build)) { # tex texbw pod mobile
+     unlink File::Spec->catfile('bin', $b);
+-    system("tpage --define installdir=$id bin/$b.tt > bin/$b");
++    system("tpage-@@PERL-VERSION@@ --define installdir=$id bin/$b.tt > bin/$b");
+     chmod 0755, File::Spec->catfile('bin', $b);
+   };
+ 
+   print "  configuring etc directory\n" if ($self->verbose);
+   foreach my $b (qw(ttree)) { #  ttree_tex ttree_texbw ttree_pod ttree_mobile
+     unlink File::Spec->catfile('etc', $b);
+-    system("tpage --define installdir=$id etc/$b.tt > etc/$b.cfg");
++    system("tpage-@@PERL-VERSION@@ --define installdir=$id etc/$b.tt > etc/$b.cfg");
+   };
+ 
+   print "  copying map and version templates\n" if ($self->verbose);
+@@ -104,7 +104,7 @@
+   my $id = cwd;
+   my $verbose = q{};
+   $verbose = "--verbose", if ($self->verbose);
+-  system("ttree -f $id/etc/ttree.cfg --relative --trim $verbose");
++  system("ttree-@@PERL-VERSION@@ -f $id/etc/ttree.cfg --relative --trim $verbose");
+   chdir $here;
+ };
+ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140117/1237c22f/attachment-0001.html>


More information about the macports-changes mailing list