[108071] trunk/dports/science/iAIDA/Portfile

mojca at macports.org mojca at macports.org
Fri Jul 12 03:30:28 PDT 2013


Revision: 108071
          https://trac.macports.org/changeset/108071
Author:   mojca at macports.org
Date:     2013-07-12 03:30:28 -0700 (Fri, 12 Jul 2013)
Log Message:
-----------
iAIDA: upgrade to 1.1.2, cmake-based build from github, new maintainers (#39610), fixes #39675

Modified Paths:
--------------
    trunk/dports/science/iAIDA/Portfile

Modified: trunk/dports/science/iAIDA/Portfile
===================================================================
--- trunk/dports/science/iAIDA/Portfile	2013-07-12 05:55:23 UTC (rev 108070)
+++ trunk/dports/science/iAIDA/Portfile	2013-07-12 10:30:28 UTC (rev 108071)
@@ -1,21 +1,27 @@
+# -*- 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           cmake 1.0
+PortGroup           github 1.0
 
+github.setup        apfeiffer1 iAIDA 1.1.2 iAIDA-
+
 name                iAIDA
-version             1.0.22
 categories          science
-maintainers         pd.infn.it:cristiano.fontana
+maintainers         mojca gmail.com:apfeiffer1 openmaintainer
 license             LGPL-3
 description         An implementation in C++ of the AIDA Abstract Interfaces for Data Analysis
 long_description    iAIDA is an implementation in C++ of the AIDA Abstract Interfaces for Data Analysis, a set of interfaces designed for data analysis.
 homepage            http://iaida.dynalias.net/
 platforms           darwin
-extract.suffix      .tgz
-master_sites        sourceforge:iaida
+# alternative download sites
+# extract.suffix      .tgz
+# master_sites        sourceforge:iaida
+# master_sites        http://iaida.dynalias.net/downloads/
 
-checksums           rmd160  fc7b97410ca75c11ed43a350b3e6c2e124ecbe8d \
-                    sha256  6c1e55a141dbc431252174eb897114201859ce01f5aebb3f83984561dbb3cb61
+checksums           rmd160  9df31ae94cfa5578ee5887b233f8e27787677a16 \
+                    sha256  f816823de3d663ad509c84c1a89297bbc344eadaf049dd62b41ab6fa446b5432
 
 depends_lib         port:aida \
                     port:grace \
@@ -25,39 +31,11 @@
                     port:expat \
                     port:zlib
 
-universal_variant   no
+configure.dir       ${workpath}/build
+build.dir           ${configure.dir}
 
-post-patch {
-
-    reinplace "s:-install_name @PREFIX_DIR@/lib/:-install_name ${prefix}/lib/:g" ${worksrcpath}/src/Makefile.in
-
-    foreach d {"" /examples /include /src /tests} {
-        reinplace "s:@PREFIX_DIR@:${destroot}${prefix}:g" ${worksrcpath}${d}/Makefile.in
-    }
+post-extract {
+    file mkdir ${configure.dir}
 }
 
-configure.args      --with-grace=${prefix} \
-                    --with-boost=${prefix} \
-                    --with-aida=${prefix}/include
-
-build.args          CXX=${configure.cxx}
-
-post-build {
-    system "cd ${worksrcpath}/examples && make ${build.args}"
-    system "cd ${worksrcpath}/tests && make ${build.args}"
-
-    foreach f {examples/Makefile examples/Makefile.in tests/Makefile tests/Makefile.in tests/runTests.py tests/runTests.py.in} {
-        reinplace "s:../bin/aida-config:aida-config:g" ${worksrcpath}/${f}
-    }
-
-    foreach f {tests/runTests.py tests/runTests.py.in} {
-        reinplace "s:logFile = entry+'.log':logFile = '/tmp/'+entry+'.log':g" ${worksrcpath}/${f}
-    }
-}
-
-post-destroot {
-    xinstall -d ${destroot}${prefix}/share/${name}
-    file copy ${worksrcpath}/examples ${worksrcpath}/tests ${destroot}${prefix}/share/${name}
-
-    file copy ${worksrcpath}/src ${destroot}${prefix}/src/${name}
-}
+configure.post_args ${worksrcpath}/${name}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130712/74a2d487/attachment.html>


More information about the macports-changes mailing list