* [gentoo-commits] proj/sci:master commit in: sci-physics/mc-tester/files/, sci-physics/mc-tester/, licenses/
@ 2013-12-02 13:12 Justin Lecher
0 siblings, 0 replies; only message in thread
From: Justin Lecher @ 2013-12-02 13:12 UTC (permalink / raw
To: gentoo-commits
commit: 314037b47d183c75fb24f87d41b0ebf972dd9645
Author: Jauhien Piatlicki (jauhien) <piatlicki <AT> gmail <DOT> com>
AuthorDate: Wed Nov 20 00:21:47 2013 +0000
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Wed Nov 20 00:21:47 2013 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=314037b4
sci-physics/mc-tester: ebuild added
---
licenses/CPC | 41 ++++++++++++++
sci-physics/mc-tester/ChangeLog | 11 ++++
.../files/mc-tester-1.25.0-compare.sh.patch | 20 +++++++
sci-physics/mc-tester/mc-tester-1.25.0.ebuild | 63 ++++++++++++++++++++++
sci-physics/mc-tester/metadata.xml | 16 ++++++
5 files changed, 151 insertions(+)
diff --git a/licenses/CPC b/licenses/CPC
new file mode 100644
index 0000000..d386afe
--- /dev/null
+++ b/licenses/CPC
@@ -0,0 +1,41 @@
+The CPC non-profit use licence agreement is an agreement between the
+author(s) of a program distributed by the CPC Program Library and the
+person who acquires it. By acquiring the program the person is
+agreeing to be bound by the terms of this agreement.
+
+ 1. This licence entitles the licensee (one person) and the
+ licensee's research group to obtain a copy of the source or
+ executable code and to use the acquired program for academic or
+ non-profit use within a research group; or, it entitles the
+ licensee (one company, organisation or computing centre) to
+ install the program and allow access to the executable code to
+ members of the licensee's organisation for academic or non-profit
+ use. No user or site will re-distribute the source code or
+ executable code to a third party in original or modified form
+ without the written permission of the author.
+
+ 2. Publications which result from using the acquired program will
+ reference the article in Computer Physics Communications which
+ describes the program.
+
+ 3. This licence does not permit any commercial (profit-making or
+ proprietary) use or re-licensing or re-distributions. Persons
+ interested in for-profit use should contact the author.
+
+ 4. To the extent permissible under applicable laws, no
+ responsibility is assumed and is hereby disclaimed by Elsevier for
+ any injury and/or damage to persons or property as a result of any
+ actual or alleged libelous statements, infringement of
+ intellectual property or privacy rights, or products liability,
+ whether resulting from negligence or otherwise, including without
+ limitation from any use or operation of any ideas, instructions,
+ procedures, products or methods contained in the material therein.
+ Access to this site is provided on an "as is" basis, and Elsevier
+ does not warrant that the information or software contained herein
+ is complete or accurate or free from error.
+
+ This information or software is provided by its creators or
+ authors as a service to Elsevier subscribers on an "as is" basis,
+ and if downloaded by the subscriber should be checked for defects
+ or viruses before being used. Unless noted otherwise, the creators
+ or authors retain copyright and other proprietary rights.
diff --git a/sci-physics/mc-tester/ChangeLog b/sci-physics/mc-tester/ChangeLog
new file mode 100644
index 0000000..e93c066
--- /dev/null
+++ b/sci-physics/mc-tester/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for sci-physics/mc-tester
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*mc-tester-1.25.0 (20 Nov 2013)
+
+ 20 Nov 2013; Jauhien Piatlicki (jauhien) <piatlicki@gmail.com>
+ +mc-tester-1.25.0.ebuild, +files/mc-tester-1.25.0-compare.sh.patch,
+ +metadata.xml:
+ Ebuild for sci-physics/mc-tester added
+
diff --git a/sci-physics/mc-tester/files/mc-tester-1.25.0-compare.sh.patch b/sci-physics/mc-tester/files/mc-tester-1.25.0-compare.sh.patch
new file mode 100644
index 0000000..3cf0e30
--- /dev/null
+++ b/sci-physics/mc-tester/files/mc-tester-1.25.0-compare.sh.patch
@@ -0,0 +1,20 @@
+--- analyze/compare.sh
++++ analyze/compare.sh
+@@ -6,13 +6,13 @@
+ #----------------------------------
+ # Change these variables
+ #----------------------------------
+-FILE1=mc-tester.root #first generation step file
+-FILE2=mc-tester2.root #second generation step file
+-MCTESTER_DIR= #location of MC-TESTER
++FILE1="${1}" #first generation step file
++FILE2="${2}" #second generation step file
++MCTESTER_DIR=/usr #location of MC-TESTER
+
+ #----------------------------------
+
+-MCTESTER_ANALYZE_DIR=${MCTESTER_DIR}/analyze
++MCTESTER_ANALYZE_DIR=${MCTESTER_DIR}/libexec/mc-tester/analyze
+ export MC_TESTER_LIBS_DIR=${MCTESTER_DIR}/lib
+
+ WORKING_DIR=`pwd`
diff --git a/sci-physics/mc-tester/mc-tester-1.25.0.ebuild b/sci-physics/mc-tester/mc-tester-1.25.0.ebuild
new file mode 100644
index 0000000..80fb6bc
--- /dev/null
+++ b/sci-physics/mc-tester/mc-tester-1.25.0.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+inherit eutils
+
+MYPN=MC-TESTER
+
+DESCRIPTION="A universal tool for comparisons of Monte Carlo predictions in High Energy Physics"
+HOMEPAGE="http://mc-tester.web.cern.ch/MC-TESTER/"
+SRC_URI="http://mc-tester.web.cern.ch/MC-TESTER/${MYPN}-${PV}.tar.gz"
+LICENSE="CPC GPL-2+"
+#HepMC interface is licensed under GPL, other code under CPC
+
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc examples hepmc"
+
+RDEPEND="sci-physics/root
+ hepmc? ( sci-physics/hepmc )
+"
+DEPEND="${RDEPEND}
+ doc? ( app-doc/doxygen )"
+
+S="${WORKDIR}/${MYPN}"
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-compare.sh.patch"
+}
+
+src_configure() {
+ econf \
+ --with-root="/usr" \
+ --without-Pythia8 \
+ $(use_with hepmc HepMC "/usr")
+}
+
+src_compile() {
+ emake
+ use doc && cd doc && make || die
+}
+
+src_install() {
+ emake PREFIX="${D}/usr" install
+ exeinto /usr/bin
+ newexe analyze/compare.sh mc-tester-compare
+ insinto /usr/libexec/${PN}/analyze
+ doins analyze/*.C analyze/*.tex
+
+ if use doc; then
+ dohtml doc/doxygenDocs/html/*
+ dodoc doc/{README*,USER-TESTS,tester.ps.gz}
+ fi
+
+ use examples && dodoc -r examples-*
+}
+
+pkg_postinst() {
+ elog "A script to perform an analysis step is installed as /usr/bin/mc-tester-compare"
+ elog "it takes two root files with generation results as command line arguments"
+}
diff --git a/sci-physics/mc-tester/metadata.xml b/sci-physics/mc-tester/metadata.xml
new file mode 100644
index 0000000..2edb7b2
--- /dev/null
+++ b/sci-physics/mc-tester/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+
+<herd>sci-physics</herd>
+<maintainer>
+ <email>piatlicki@gmail.com</email>
+</maintainer>
+
+<longdescription>
+ A universal tool for comparisons of Monte Carlo predictions in High Energy Physics
+</longdescription>
+<use>
+ <flag name="hepmc">Compile <pkg>sci-physics/hepmc</pkg> interface</flag>
+</use>
+</pkgmetadata>
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-12-02 13:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-02 13:12 [gentoo-commits] proj/sci:master commit in: sci-physics/mc-tester/files/, sci-physics/mc-tester/, licenses/ Justin Lecher
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox