public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/sci:master commit in: sci-physics/mc-tester/files/, sci-physics/mc-tester/
@ 2013-12-02 13:12 Justin Lecher
  0 siblings, 0 replies; 2+ messages in thread
From: Justin Lecher @ 2013-12-02 13:12 UTC (permalink / raw
  To: gentoo-commits

commit:     39aa9892238b3fc59b194b9a1a5b5b47e4079dac
Author:     Jauhien Piatlicki (jauhien) <piatlicki <AT> gmail <DOT> com>
AuthorDate: Wed Nov 20 22:15:07 2013 +0000
Commit:     Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Wed Nov 20 22:15:07 2013 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=39aa9892

sci-physics/mc-tester: ebuild improvements, thanks to jlec

---
 .../mc-tester/files/mc-tester-1.25.0-compare.sh.patch      | 12 +++++++++++-
 sci-physics/mc-tester/mc-tester-1.25.0.ebuild              | 14 ++++++++------
 2 files changed, 19 insertions(+), 7 deletions(-)

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
index 3cf0e30..180dcb0 100644
--- 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
@@ -1,6 +1,6 @@
 --- analyze/compare.sh
 +++ analyze/compare.sh
-@@ -6,13 +6,13 @@
+@@ -6,13 +6,14 @@
  #----------------------------------
  # Change these variables
  #----------------------------------
@@ -15,6 +15,16 @@
  
 -MCTESTER_ANALYZE_DIR=${MCTESTER_DIR}/analyze
 +MCTESTER_ANALYZE_DIR=${MCTESTER_DIR}/libexec/mc-tester/analyze
++MCTESTER_DATA_DIR=${MCTESTER_DIR}/share/mc-tester
  export MC_TESTER_LIBS_DIR=${MCTESTER_DIR}/lib
  
  WORKING_DIR=`pwd`
+@@ -24,7 +25,7 @@
+ cd $WORKING_DIR
+ 
+ #copy base .tex file needed for booklet and create
+-cp ${MCTESTER_ANALYZE_DIR}/tester.tex ./ 
++cp ${MCTESTER_DATA_DIR}/tester.tex ./ 
+ latex tester.tex
+ latex tester.tex 
+ latex tester.tex 

diff --git a/sci-physics/mc-tester/mc-tester-1.25.0.ebuild b/sci-physics/mc-tester/mc-tester-1.25.0.ebuild
index 80fb6bc..43f835d 100644
--- a/sci-physics/mc-tester/mc-tester-1.25.0.ebuild
+++ b/sci-physics/mc-tester/mc-tester-1.25.0.ebuild
@@ -32,22 +32,24 @@ src_prepare() {
 
 src_configure() {
 	econf \
-		--with-root="/usr" \
+		--with-root="${EPREFIX}/usr" \
 		--without-Pythia8 \
-		$(use_with hepmc HepMC "/usr")
+		$(use_with hepmc HepMC "${EPREFIX}/usr")
 }
 
 src_compile() {
 	emake
-	use doc && cd doc && make || die
+	use doc && cd doc && emake
 }
 
 src_install() {
 	emake PREFIX="${D}/usr" install
-	exeinto /usr/bin
-	newexe analyze/compare.sh mc-tester-compare
+	newbin analyze/compare.sh mc-tester-compare
+
 	insinto /usr/libexec/${PN}/analyze
-	doins analyze/*.C analyze/*.tex
+	doins analyze/*.C
+	insinto /usr/share/${PN}
+	doins analyze/*.tex
 
 	if use doc; then
 		dohtml doc/doxygenDocs/html/*


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] proj/sci:master commit in: sci-physics/mc-tester/files/, sci-physics/mc-tester/
@ 2021-03-03 15:39 Andrew Ammerlaan
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Ammerlaan @ 2021-03-03 15:39 UTC (permalink / raw
  To: gentoo-commits

commit:     6a99019c4da6610a402d95e133d556895e5d2ad7
Author:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
AuthorDate: Wed Mar  3 15:39:18 2021 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Wed Mar  3 15:39:18 2021 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=6a99019c

sci-physics/mc-tester: EAPI bump, add pythia flag

Package-Manager: Portage-3.0.16, Repoman-3.0.2
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net>

 .../files/mc-tester-1.25.0-compare.sh.patch        |  4 +--
 sci-physics/mc-tester/mc-tester-1.25.0.ebuild      | 40 +++++++++++-----------
 sci-physics/mc-tester/metadata.xml                 |  4 +--
 3 files changed, 23 insertions(+), 25 deletions(-)

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
index 180dcb029..bb8695fca 100644
--- 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
@@ -1,5 +1,5 @@
---- analyze/compare.sh
-+++ analyze/compare.sh
+--- a/analyze/compare.sh
++++ b/analyze/compare.sh
 @@ -6,13 +6,14 @@
  #----------------------------------
  # Change these variables

diff --git a/sci-physics/mc-tester/mc-tester-1.25.0.ebuild b/sci-physics/mc-tester/mc-tester-1.25.0.ebuild
index d651961b9..5a08d1b3e 100644
--- a/sci-physics/mc-tester/mc-tester-1.25.0.ebuild
+++ b/sci-physics/mc-tester/mc-tester-1.25.0.ebuild
@@ -1,48 +1,53 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
+EAPI=7
 
-inherit eutils
+MYPN="MC-TESTER"
 
-MYPN=MC-TESTER
+DOCS_BUILDER="doxygen"
+DOCS_DIR="doc"
+DOCS_DEPEND="media-gfx/graphviz"
+
+inherit docs
 
 DESCRIPTION="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
 
+#HepMC interface is licensed under GPL, other code under CPC
+LICENSE="CPC GPL-2+"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
-IUSE="doc examples hepmc"
+
+IUSE="examples hepmc pythia"
 
 RDEPEND="sci-physics/root:=
 	hepmc? ( sci-physics/hepmc )
+	pythia? ( sci-physics/pythia:8 )
 "
-DEPEND="${RDEPEND}
-	doc? ( app-doc/doxygen )"
+DEPEND="${RDEPEND}"
 
 S="${WORKDIR}/${MYPN}"
 
-src_prepare() {
-	epatch "${FILESDIR}/${P}-compare.sh.patch"
-}
+PATCHES=(
+	"${FILESDIR}/${P}-compare.sh.patch"
+)
 
 src_configure() {
 	econf \
 		--with-root="${EPREFIX}/usr" \
-		--without-Pythia8 \
+		$(use_with pythia Pythia8 "${EPREFIX}/usr") \
 		$(use_with hepmc HepMC "${EPREFIX}/usr")
 }
 
 src_compile() {
+	docs_compile
 	default
-	use doc && cd doc && default
 }
 
 src_install() {
-	emake PREFIX="${D}/usr" install
+	default
 	newbin analyze/compare.sh mc-tester-compare
 
 	insinto /usr/libexec/${PN}/analyze
@@ -50,11 +55,6 @@ src_install() {
 	insinto /usr/share/${PN}
 	doins analyze/*.tex
 
-	if use doc; then
-		dohtml doc/doxygenDocs/html/*
-		dodoc doc/{README*,USER-TESTS,tester.ps.gz}
-	fi
-
 	use examples && dodoc -r examples-*
 }
 

diff --git a/sci-physics/mc-tester/metadata.xml b/sci-physics/mc-tester/metadata.xml
index 53b89a9c9..521dff098 100644
--- a/sci-physics/mc-tester/metadata.xml
+++ b/sci-physics/mc-tester/metadata.xml
@@ -8,10 +8,8 @@
 		<email>sci-physics@gentoo.org</email>
 		<name>Gentoo Physics Project</name>
 	</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>
+		<flag name="pythia">Compile <pkg>sci-physics/pythiac</pkg> interface</flag>
 	</use>
 </pkgmetadata>


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-03-03 15:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-03 15:39 [gentoo-commits] proj/sci:master commit in: sci-physics/mc-tester/files/, sci-physics/mc-tester/ Andrew Ammerlaan
  -- strict thread matches above, loose matches on Subject: below --
2013-12-02 13:12 Justin Lecher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox