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/
Date: Mon, 02 Dec 2013 13:12:40
Message-Id: 1384985707.39aa9892238b3fc59b194b9a1a5b5b47e4079dac.jlec@gentoo
1 commit: 39aa9892238b3fc59b194b9a1a5b5b47e4079dac
2 Author: Jauhien Piatlicki (jauhien) <piatlicki <AT> gmail <DOT> com>
3 AuthorDate: Wed Nov 20 22:15:07 2013 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Wed Nov 20 22:15:07 2013 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=39aa9892
7
8 sci-physics/mc-tester: ebuild improvements, thanks to jlec
9
10 ---
11 .../mc-tester/files/mc-tester-1.25.0-compare.sh.patch | 12 +++++++++++-
12 sci-physics/mc-tester/mc-tester-1.25.0.ebuild | 14 ++++++++------
13 2 files changed, 19 insertions(+), 7 deletions(-)
14
15 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
16 index 3cf0e30..180dcb0 100644
17 --- a/sci-physics/mc-tester/files/mc-tester-1.25.0-compare.sh.patch
18 +++ b/sci-physics/mc-tester/files/mc-tester-1.25.0-compare.sh.patch
19 @@ -1,6 +1,6 @@
20 --- analyze/compare.sh
21 +++ analyze/compare.sh
22 -@@ -6,13 +6,13 @@
23 +@@ -6,13 +6,14 @@
24 #----------------------------------
25 # Change these variables
26 #----------------------------------
27 @@ -15,6 +15,16 @@
28
29 -MCTESTER_ANALYZE_DIR=${MCTESTER_DIR}/analyze
30 +MCTESTER_ANALYZE_DIR=${MCTESTER_DIR}/libexec/mc-tester/analyze
31 ++MCTESTER_DATA_DIR=${MCTESTER_DIR}/share/mc-tester
32 export MC_TESTER_LIBS_DIR=${MCTESTER_DIR}/lib
33
34 WORKING_DIR=`pwd`
35 +@@ -24,7 +25,7 @@
36 + cd $WORKING_DIR
37 +
38 + #copy base .tex file needed for booklet and create
39 +-cp ${MCTESTER_ANALYZE_DIR}/tester.tex ./
40 ++cp ${MCTESTER_DATA_DIR}/tester.tex ./
41 + latex tester.tex
42 + latex tester.tex
43 + latex tester.tex
44
45 diff --git a/sci-physics/mc-tester/mc-tester-1.25.0.ebuild b/sci-physics/mc-tester/mc-tester-1.25.0.ebuild
46 index 80fb6bc..43f835d 100644
47 --- a/sci-physics/mc-tester/mc-tester-1.25.0.ebuild
48 +++ b/sci-physics/mc-tester/mc-tester-1.25.0.ebuild
49 @@ -32,22 +32,24 @@ src_prepare() {
50
51 src_configure() {
52 econf \
53 - --with-root="/usr" \
54 + --with-root="${EPREFIX}/usr" \
55 --without-Pythia8 \
56 - $(use_with hepmc HepMC "/usr")
57 + $(use_with hepmc HepMC "${EPREFIX}/usr")
58 }
59
60 src_compile() {
61 emake
62 - use doc && cd doc && make || die
63 + use doc && cd doc && emake
64 }
65
66 src_install() {
67 emake PREFIX="${D}/usr" install
68 - exeinto /usr/bin
69 - newexe analyze/compare.sh mc-tester-compare
70 + newbin analyze/compare.sh mc-tester-compare
71 +
72 insinto /usr/libexec/${PN}/analyze
73 - doins analyze/*.C analyze/*.tex
74 + doins analyze/*.C
75 + insinto /usr/share/${PN}
76 + doins analyze/*.tex
77
78 if use doc; then
79 dohtml doc/doxygenDocs/html/*