[66958] trunk/dports/science

ryandesign at macports.org ryandesign at macports.org
Mon Apr 26 15:18:16 PDT 2010


Revision: 66958
          http://trac.macports.org/changeset/66958
Author:   ryandesign at macports.org
Date:     2010-04-26 15:18:12 -0700 (Mon, 26 Apr 2010)
Log Message:
-----------
pythia: new port, version 8.135; see #24613

Added Paths:
-----------
    trunk/dports/science/pythia/
    trunk/dports/science/pythia/Portfile
    trunk/dports/science/pythia/files/
    trunk/dports/science/pythia/files/patch-cxx.diff

Added: trunk/dports/science/pythia/Portfile
===================================================================
--- trunk/dports/science/pythia/Portfile	                        (rev 0)
+++ trunk/dports/science/pythia/Portfile	2010-04-26 22:18:12 UTC (rev 66958)
@@ -0,0 +1,58 @@
+# $Id$
+
+PortSystem          1.0
+
+name                pythia
+conflicts           libevent
+version             8.135
+set my_version      [strsed ${version} g/\\.//]
+categories          science
+platforms           darwin
+maintainers         gmail.com:mattiafrancescomoro
+license             LGPLv2.1
+description         Generator of high-energy physics events
+long_description    PYTHIA is a program for the generation of high-energy physics events, \
+                    i.e. for the description of collisions at high energies between elementary particles \
+                    such as e+, e-, p and pbar in various combinations. It contains theory and models for \
+                    a number of physics aspects, including hard and soft interactions, parton distributions, \
+                    initial- and final-state parton showers, multiple interactions, fragmentation and decay. \
+                    It is largely based on original research, but also borrows many formulae and other \
+                    knowledge from the literature.
+
+homepage            http://home.thep.lu.se/~torbjorn/Pythia.html
+master_sites        http://home.thep.lu.se/~torbjorn/pythia8/
+
+distname            ${name}${my_version}
+extract.suffix      .tgz
+
+checksums           md5     5843543118f82dc1316f687138eb4628 \
+                    sha1    40e56df0f7479d47753d20f0821f344065edbf4e \
+                    rmd160  eecbd48ab03477de92b532bbf9a2c928255810a3
+
+universal_variant   no
+
+patchfiles          patch-cxx.diff
+
+configure.pre_args
+configure.args      --enable-shared
+configure.env       CXX=${configure.cxx}
+
+build.args          CC=${configure.cc} \
+                    CXX=${configure.cxx}
+
+post-build {
+    foreach dylib {libpythia8.dylib liblhapdfdummy.dylib} {
+        system "install_name_tool -id ${prefix}/lib/${dylib} ${worksrcpath}/lib/${dylib}"
+    }
+}
+
+destroot {
+    xinstall -W ${worksrcpath}/lib libpythia8.dylib liblhapdfdummy.dylib ${destroot}${prefix}/lib
+    xinstall -W ${worksrcpath}/lib/archive liblhapdfdummy.a libpythia8.a ${destroot}${prefix}/lib
+    eval xinstall -m 644 [glob ${worksrcpath}/include/*.h] ${destroot}${prefix}/include
+}
+
+livecheck.type      regex
+livecheck.version   ${my_version}
+livecheck.url       [lindex ${master_sites} 0]
+livecheck.regex     ${name}(\\d+)${extract.suffix}


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

Added: trunk/dports/science/pythia/files/patch-cxx.diff
===================================================================
--- trunk/dports/science/pythia/files/patch-cxx.diff	                        (rev 0)
+++ trunk/dports/science/pythia/files/patch-cxx.diff	2010-04-26 22:18:12 UTC (rev 66958)
@@ -0,0 +1,22 @@
+--- configure	2010-01-07 11:58:06.000000000 -0600
++++ configure	2010-04-26 14:13:26.000000000 -0500
+@@ -122,7 +122,7 @@
+ #
+ export ARCH0="`uname`"
+ export ARCH=${ARCH0}
+-export theGcc=`g++ --version | head -n 1 | awk '{print$3}' | awk -F . '{print $1}'`
++export theGcc=`${CXX} --version | head -n 1 | awk '{print$3}' | awk -F . '{print $1}'`
+ if [ ${theGcc} = 4 ]; then
+   export ARCH=${ARCH}-gcc4
+ fi
+--- examples/configure	2010-01-07 11:58:06.000000000 -0600
++++ examples/configure	2010-04-26 14:13:08.000000000 -0500
+@@ -118,7 +118,7 @@
+ #
+ export ARCH0="`uname`"
+ export ARCH=${ARCH0}
+-export theGcc=`g++ --version | head -n 1 | awk '{print$3}' | awk -F . '{print $1}'`
++export theGcc=`${CXX} --version | head -n 1 | awk '{print$3}' | awk -F . '{print $1}'`
+ if [ ${theGcc} = 4 ]; then
+   export ARCH=${ARCH}-gcc4
+ fi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100426/26f50252/attachment.html>


More information about the macports-changes mailing list