Gentoo Archives: gentoo-commits

From: Justin Lecher <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-physics/mc-tester/files/, sci-physics/mc-tester/, licenses/
Date: Mon, 02 Dec 2013 13:12:40
Message-Id: 1384906907.314037b47d183c75fb24f87d41b0ebf972dd9645.jlec@gentoo
1 commit: 314037b47d183c75fb24f87d41b0ebf972dd9645
2 Author: Jauhien Piatlicki (jauhien) <piatlicki <AT> gmail <DOT> com>
3 AuthorDate: Wed Nov 20 00:21:47 2013 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Wed Nov 20 00:21:47 2013 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=314037b4
7
8 sci-physics/mc-tester: ebuild added
9
10 ---
11 licenses/CPC | 41 ++++++++++++++
12 sci-physics/mc-tester/ChangeLog | 11 ++++
13 .../files/mc-tester-1.25.0-compare.sh.patch | 20 +++++++
14 sci-physics/mc-tester/mc-tester-1.25.0.ebuild | 63 ++++++++++++++++++++++
15 sci-physics/mc-tester/metadata.xml | 16 ++++++
16 5 files changed, 151 insertions(+)
17
18 diff --git a/licenses/CPC b/licenses/CPC
19 new file mode 100644
20 index 0000000..d386afe
21 --- /dev/null
22 +++ b/licenses/CPC
23 @@ -0,0 +1,41 @@
24 +The CPC non-profit use licence agreement is an agreement between the
25 +author(s) of a program distributed by the CPC Program Library and the
26 +person who acquires it. By acquiring the program the person is
27 +agreeing to be bound by the terms of this agreement.
28 +
29 + 1. This licence entitles the licensee (one person) and the
30 + licensee's research group to obtain a copy of the source or
31 + executable code and to use the acquired program for academic or
32 + non-profit use within a research group; or, it entitles the
33 + licensee (one company, organisation or computing centre) to
34 + install the program and allow access to the executable code to
35 + members of the licensee's organisation for academic or non-profit
36 + use. No user or site will re-distribute the source code or
37 + executable code to a third party in original or modified form
38 + without the written permission of the author.
39 +
40 + 2. Publications which result from using the acquired program will
41 + reference the article in Computer Physics Communications which
42 + describes the program.
43 +
44 + 3. This licence does not permit any commercial (profit-making or
45 + proprietary) use or re-licensing or re-distributions. Persons
46 + interested in for-profit use should contact the author.
47 +
48 + 4. To the extent permissible under applicable laws, no
49 + responsibility is assumed and is hereby disclaimed by Elsevier for
50 + any injury and/or damage to persons or property as a result of any
51 + actual or alleged libelous statements, infringement of
52 + intellectual property or privacy rights, or products liability,
53 + whether resulting from negligence or otherwise, including without
54 + limitation from any use or operation of any ideas, instructions,
55 + procedures, products or methods contained in the material therein.
56 + Access to this site is provided on an "as is" basis, and Elsevier
57 + does not warrant that the information or software contained herein
58 + is complete or accurate or free from error.
59 +
60 + This information or software is provided by its creators or
61 + authors as a service to Elsevier subscribers on an "as is" basis,
62 + and if downloaded by the subscriber should be checked for defects
63 + or viruses before being used. Unless noted otherwise, the creators
64 + or authors retain copyright and other proprietary rights.
65
66 diff --git a/sci-physics/mc-tester/ChangeLog b/sci-physics/mc-tester/ChangeLog
67 new file mode 100644
68 index 0000000..e93c066
69 --- /dev/null
70 +++ b/sci-physics/mc-tester/ChangeLog
71 @@ -0,0 +1,11 @@
72 +# ChangeLog for sci-physics/mc-tester
73 +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
74 +# $Header: $
75 +
76 +*mc-tester-1.25.0 (20 Nov 2013)
77 +
78 + 20 Nov 2013; Jauhien Piatlicki (jauhien) <piatlicki@×××××.com>
79 + +mc-tester-1.25.0.ebuild, +files/mc-tester-1.25.0-compare.sh.patch,
80 + +metadata.xml:
81 + Ebuild for sci-physics/mc-tester added
82 +
83
84 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
85 new file mode 100644
86 index 0000000..3cf0e30
87 --- /dev/null
88 +++ b/sci-physics/mc-tester/files/mc-tester-1.25.0-compare.sh.patch
89 @@ -0,0 +1,20 @@
90 +--- analyze/compare.sh
91 ++++ analyze/compare.sh
92 +@@ -6,13 +6,13 @@
93 + #----------------------------------
94 + # Change these variables
95 + #----------------------------------
96 +-FILE1=mc-tester.root #first generation step file
97 +-FILE2=mc-tester2.root #second generation step file
98 +-MCTESTER_DIR= #location of MC-TESTER
99 ++FILE1="${1}" #first generation step file
100 ++FILE2="${2}" #second generation step file
101 ++MCTESTER_DIR=/usr #location of MC-TESTER
102 +
103 + #----------------------------------
104 +
105 +-MCTESTER_ANALYZE_DIR=${MCTESTER_DIR}/analyze
106 ++MCTESTER_ANALYZE_DIR=${MCTESTER_DIR}/libexec/mc-tester/analyze
107 + export MC_TESTER_LIBS_DIR=${MCTESTER_DIR}/lib
108 +
109 + WORKING_DIR=`pwd`
110
111 diff --git a/sci-physics/mc-tester/mc-tester-1.25.0.ebuild b/sci-physics/mc-tester/mc-tester-1.25.0.ebuild
112 new file mode 100644
113 index 0000000..80fb6bc
114 --- /dev/null
115 +++ b/sci-physics/mc-tester/mc-tester-1.25.0.ebuild
116 @@ -0,0 +1,63 @@
117 +# Copyright 1999-2013 Gentoo Foundation
118 +# Distributed under the terms of the GNU General Public License v2
119 +# $Header: $
120 +
121 +EAPI=5
122 +
123 +inherit eutils
124 +
125 +MYPN=MC-TESTER
126 +
127 +DESCRIPTION="A universal tool for comparisons of Monte Carlo predictions in High Energy Physics"
128 +HOMEPAGE="http://mc-tester.web.cern.ch/MC-TESTER/"
129 +SRC_URI="http://mc-tester.web.cern.ch/MC-TESTER/${MYPN}-${PV}.tar.gz"
130 +LICENSE="CPC GPL-2+"
131 +#HepMC interface is licensed under GPL, other code under CPC
132 +
133 +SLOT="0"
134 +KEYWORDS="~amd64 ~x86"
135 +IUSE="doc examples hepmc"
136 +
137 +RDEPEND="sci-physics/root
138 + hepmc? ( sci-physics/hepmc )
139 +"
140 +DEPEND="${RDEPEND}
141 + doc? ( app-doc/doxygen )"
142 +
143 +S="${WORKDIR}/${MYPN}"
144 +
145 +src_prepare() {
146 + epatch "${FILESDIR}/${P}-compare.sh.patch"
147 +}
148 +
149 +src_configure() {
150 + econf \
151 + --with-root="/usr" \
152 + --without-Pythia8 \
153 + $(use_with hepmc HepMC "/usr")
154 +}
155 +
156 +src_compile() {
157 + emake
158 + use doc && cd doc && make || die
159 +}
160 +
161 +src_install() {
162 + emake PREFIX="${D}/usr" install
163 + exeinto /usr/bin
164 + newexe analyze/compare.sh mc-tester-compare
165 + insinto /usr/libexec/${PN}/analyze
166 + doins analyze/*.C analyze/*.tex
167 +
168 + if use doc; then
169 + dohtml doc/doxygenDocs/html/*
170 + dodoc doc/{README*,USER-TESTS,tester.ps.gz}
171 + fi
172 +
173 + use examples && dodoc -r examples-*
174 +}
175 +
176 +pkg_postinst() {
177 + elog "A script to perform an analysis step is installed as /usr/bin/mc-tester-compare"
178 + elog "it takes two root files with generation results as command line arguments"
179 +}
180
181 diff --git a/sci-physics/mc-tester/metadata.xml b/sci-physics/mc-tester/metadata.xml
182 new file mode 100644
183 index 0000000..2edb7b2
184 --- /dev/null
185 +++ b/sci-physics/mc-tester/metadata.xml
186 @@ -0,0 +1,16 @@
187 +<?xml version="1.0" encoding="UTF-8"?>
188 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
189 +<pkgmetadata>
190 +
191 +<herd>sci-physics</herd>
192 +<maintainer>
193 + <email>piatlicki@×××××.com</email>
194 +</maintainer>
195 +
196 +<longdescription>
197 + A universal tool for comparisons of Monte Carlo predictions in High Energy Physics
198 +</longdescription>
199 +<use>
200 + <flag name="hepmc">Compile <pkg>sci-physics/hepmc</pkg> interface</flag>
201 +</use>
202 +</pkgmetadata>