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

commit:     2e072cd3972e514ef986aa23f0170cd487273990
Author:     Jauhien Piatlicki <piatlicki <AT> gmail <DOT> com>
AuthorDate: Fri Nov 22 16:16:51 2013 +0000
Commit:     Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Fri Nov 22 16:16:51 2013 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=2e072cd3

sci-physics/tauola: new ebuild added

---
 profiles/package.mask                              |  1 +
 sci-physics/tauola/ChangeLog                       | 12 ++++
 .../tauola/files/tauola-1.1.3-makefile.patch       | 12 ++++
 .../files/tauola-1.1.3-tau-spinner-makefile.patch  | 11 ++++
 sci-physics/tauola/metadata.xml                    | 17 +++++
 sci-physics/tauola/tauola-1.1.3.ebuild             | 69 ++++++++++++++++++++
 sci-physics/tauola/tauola-9999.ebuild              | 75 ++++++++++++++++++++++
 7 files changed, 197 insertions(+)

diff --git a/profiles/package.mask b/profiles/package.mask
index 306ba64..1fee51b 100644
--- a/profiles/package.mask
+++ b/profiles/package.mask
@@ -56,6 +56,7 @@
 >=sys-cluster/nullmpi-9999
 >=sci-physics/espresso-9999
 >=sci-physics/espresso++-9999
+>=sci-physics/tauola-9999
 ~sci-chemistry/gromacs-4.5.9999
 ~sci-chemistry/gromacs-4.6.9999
 ~sci-chemistry/gromacs-9999

diff --git a/sci-physics/tauola/ChangeLog b/sci-physics/tauola/ChangeLog
new file mode 100644
index 0000000..dfcbc89
--- /dev/null
+++ b/sci-physics/tauola/ChangeLog
@@ -0,0 +1,12 @@
+# ChangeLog for sci-physics/tauola
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*tauola-9999 (22 Nov 2013)
+*tauola-1.1.3 (22 Nov 2013)
+
+  22 Nov 2013; Jauhien Piatlicki <piatlicki@gmail.com> +tauola-1.1.3.ebuild,
+  +tauola-9999.ebuild, +files/tauola-1.1.3-makefile.patch,
+  +files/tauola-1.1.3-tau-spinner-makefile.patch, +metadata.xml:
+  ebuild added
+

diff --git a/sci-physics/tauola/files/tauola-1.1.3-makefile.patch b/sci-physics/tauola/files/tauola-1.1.3-makefile.patch
new file mode 100644
index 0000000..5d41952
--- /dev/null
+++ b/sci-physics/tauola/files/tauola-1.1.3-makefile.patch
@@ -0,0 +1,12 @@
+--- Makefile
++++ Makefile
+@@ -36,8 +36,7 @@
+ 
+ install:
+ 	mkdir -p $(PREFIX)/include
+-	mkdir -p $(PREFIX)/include/Tauola
+-	cp include/Tauola/* $(PREFIX)/include/Tauola/.
++	cp -r include/* $(PREFIX)/include
+ 	mkdir -p $(PREFIX)/lib
+ 	cp lib/* $(PREFIX)/lib/.
+ 

diff --git a/sci-physics/tauola/files/tauola-1.1.3-tau-spinner-makefile.patch b/sci-physics/tauola/files/tauola-1.1.3-tau-spinner-makefile.patch
new file mode 100644
index 0000000..8b3474c
--- /dev/null
+++ b/sci-physics/tauola/files/tauola-1.1.3-tau-spinner-makefile.patch
@@ -0,0 +1,11 @@
+--- TauSpinner/Makefile
++++ TauSpinner/Makefile
+@@ -30,7 +30,7 @@
+ 
+ %.o: %.cxx
+ 	$(CC) $(CFLAGS) -c $< -o $@ -Iinclude \
+-	-I$(PREFIX)/include                   \
++	-I../include                   \
+ 	-I$(LHAPDFLOCATION)/include
+ 
+ %.o: %.f

diff --git a/sci-physics/tauola/metadata.xml b/sci-physics/tauola/metadata.xml
new file mode 100644
index 0000000..b4f9e77
--- /dev/null
+++ b/sci-physics/tauola/metadata.xml
@@ -0,0 +1,17 @@
+<?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>
+  tau decay Monte Carlo generator
+</longdescription>
+<use>
+  <flag name="hepmc">Compile <pkg>sci-physics/hepmc</pkg> interface</flag>
+  <flag name="tau-spinner">Compile with TauSpinner library</flag>
+</use>
+</pkgmetadata>

diff --git a/sci-physics/tauola/tauola-1.1.3.ebuild b/sci-physics/tauola/tauola-1.1.3.ebuild
new file mode 100644
index 0000000..1abb1a4
--- /dev/null
+++ b/sci-physics/tauola/tauola-1.1.3.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+inherit eutils
+
+MYPN=TAUOLA
+
+DESCRIPTION="tau decay Monte Carlo generator"
+HOMEPAGE="http://tauolapp.web.cern.ch/tauolapp/"
+SRC_URI="http://tauolapp.web.cern.ch/tauolapp/resources/${MYPN}.${PV}/${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 tau-spinner"
+
+RDEPEND="hepmc? ( sci-physics/hepmc )
+	tau-spinner? ( sci-physics/lhapdf )
+"
+DEPEND="${RDEPEND}
+	doc? ( app-doc/doxygen
+		app-text/ghostscript-gpl
+		app-text/texlive )
+"
+
+S="${WORKDIR}/${MYPN}"
+
+src_prepare() {
+	epatch "${FILESDIR}/${P}-makefile.patch" "${FILESDIR}/${P}-tau-spinner-makefile.patch"
+}
+
+src_configure() {
+	econf \
+		--without-mc-tester \
+		--without-pythia8 \
+		$(use_with hepmc hepmc "${EPREFIX}/usr") \
+		$(use_with tau-spinner) \
+		$(use_with tau-spinner lhapdf "${EPREFIX}/usr")
+}
+
+src_compile() {
+	emake
+	if use doc;
+	then
+		cd "${S}/documentation/doxy_documentation" || die
+		emake
+		cd "${S}/documentation/latex_documentation" || die
+		emake
+	fi
+}
+
+src_install() {
+	emake PREFIX="${D}/usr" install
+
+	if use doc; then
+		dohtml documentation/doxy_documentation/html/*
+		dodoc documentation/latex_documentation/Tauola_interface_design.pdf
+	fi
+
+	if use examples;
+	then
+		dodoc -r examples
+		use tau-spinner && docinto tau-spinner && dodoc -r TauSpinner/examples
+	fi
+}

diff --git a/sci-physics/tauola/tauola-9999.ebuild b/sci-physics/tauola/tauola-9999.ebuild
new file mode 100644
index 0000000..67bc2b6
--- /dev/null
+++ b/sci-physics/tauola/tauola-9999.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+inherit eutils
+
+MYPN=TAUOLA
+
+DESCRIPTION="tau decay Monte Carlo generator"
+HOMEPAGE="http://tauolapp.web.cern.ch/tauolapp/"
+SRC_URI=""
+LICENSE="CPC GPL-2+"
+#HepMC interface is licensed under GPL, other code under CPC
+
+SLOT="0"
+IUSE="doc examples hepmc tau-spinner"
+
+RDEPEND="hepmc? ( sci-physics/hepmc )
+	tau-spinner? ( sci-physics/lhapdf )
+"
+DEPEND="${RDEPEND}
+	net-misc/wget
+	doc? ( app-doc/doxygen
+		app-text/ghostscript-gpl
+		app-text/texlive )
+"
+
+S="${WORKDIR}/${MYPN}"
+
+src_unpack() {
+	#there is no public svn, just generated tarball, so fetch it
+	wget "http://tauolapp.web.cern.ch/tauolapp/resources/${MYPN}.development.version/${MYPN}.development.version.tar.gz" || die
+	unpack "./${MYPN}.development.version.tar.gz"
+}
+
+src_prepare() {
+	epatch "${FILESDIR}/${PN}-1.1.3-makefile.patch" "${FILESDIR}/${PN}-1.1.3-tau-spinner-makefile.patch"
+}
+
+src_configure() {
+	econf \
+		--without-mc-tester \
+		--without-pythia8 \
+		$(use_with hepmc hepmc "${EPREFIX}/usr") \
+		$(use_with tau-spinner) \
+		$(use_with tau-spinner lhapdf "${EPREFIX}/usr")
+}
+
+src_compile() {
+	emake
+	if use doc;
+	then
+		cd "${S}/documentation/doxy_documentation" || die
+		emake
+		cd "${S}/documentation/latex_documentation" || die
+		emake
+	fi
+}
+
+src_install() {
+	emake PREFIX="${D}/usr" install
+
+	if use doc; then
+		dohtml documentation/doxy_documentation/html/*
+		dodoc documentation/latex_documentation/Tauola_interface_design.pdf
+	fi
+
+	if use examples;
+	then
+		dodoc -r examples
+		use tau-spinner && docinto tau-spinner && dodoc -r TauSpinner/examples
+	fi
+}


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

* [gentoo-commits] proj/sci:master commit in: sci-physics/tauola/, profiles/, sci-physics/tauola/files/
@ 2014-09-04 16:12 Jauhien Piatlicki
  0 siblings, 0 replies; 2+ messages in thread
From: Jauhien Piatlicki @ 2014-09-04 16:12 UTC (permalink / raw
  To: gentoo-commits

commit:     ceab337d8cc8a44bc752be3a2d6a4842ff02c06e
Author:     Jauhien Piatlicki <jauhien <AT> gentoo <DOT> org>
AuthorDate: Thu Sep  4 16:11:19 2014 +0000
Commit:     Jauhien Piatlicki <jauhien <AT> gentoo <DOT> org>
CommitDate: Thu Sep  4 16:11:19 2014 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=ceab337d

sci-physics/tauola: fix doc building failure for 1.1.5

---
 profiles/package.use.mask                       |  4 ----
 sci-physics/tauola/ChangeLog                    |  4 ++++
 sci-physics/tauola/files/tauola-1.1.5-doc.patch | 11 +++++++++++
 sci-physics/tauola/tauola-1.1.5.ebuild          |  1 +
 4 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/profiles/package.use.mask b/profiles/package.use.mask
index 24d51f4..d309713 100644
--- a/profiles/package.use.mask
+++ b/profiles/package.use.mask
@@ -16,10 +16,6 @@
 ## =media-video/mplayer-0.90_pre5-r1 foo
 #
 
-# Jauhien Piatlicki <jauhien@gentoo.org> (03 sep 2014)
-# Building of docs fails for this version
-=sci-physics/tauola-1.1.5 doc
-
 # Justin Lecher <jlec@gntoo.org> (06 Jan 2014)
 # Missing dep dev-python/scikits-cuda
 sci-biology/mne-python cuda

diff --git a/sci-physics/tauola/ChangeLog b/sci-physics/tauola/ChangeLog
index f94bace..b3c0187 100644
--- a/sci-physics/tauola/ChangeLog
+++ b/sci-physics/tauola/ChangeLog
@@ -2,6 +2,10 @@
 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+  04 Sep 2014; Jauhien Piatlicki <jauhien@gentoo.org> tauola-1.1.5.ebuild,
+  +files/tauola-1.1.5-doc.patch:
+  fix doc building failure
+
 *tauola-1.1.5 (03 Sep 2014)
 
   03 Sep 2014; Jauhien Piatlicki <jauhien@gentoo.org> +tauola-1.1.5.ebuild:

diff --git a/sci-physics/tauola/files/tauola-1.1.5-doc.patch b/sci-physics/tauola/files/tauola-1.1.5-doc.patch
new file mode 100644
index 0000000..7dd4960
--- /dev/null
+++ b/sci-physics/tauola/files/tauola-1.1.5-doc.patch
@@ -0,0 +1,11 @@
+--- documentation/latex_documentation/Tauola_interface_design.tex
++++ documentation/latex_documentation/Tauola_interface_design.tex
+@@ -2652,6 +2652,7 @@
+         there is a mismatch in the {\tt TAUOLA} version number given,
+         but otherwise all information on the generated sample, 
+         as explained eg. in \cite{Jadach:1990mz,Jezabek:1991qp,Jadach:1993hs}, is printed correctly. 
++  }
+ \end{itemize}
+ 
+ 
+

diff --git a/sci-physics/tauola/tauola-1.1.5.ebuild b/sci-physics/tauola/tauola-1.1.5.ebuild
index cd7c854..beadaca 100644
--- a/sci-physics/tauola/tauola-1.1.5.ebuild
+++ b/sci-physics/tauola/tauola-1.1.5.ebuild
@@ -33,6 +33,7 @@ S="${WORKDIR}/${MYPN}"
 
 src_prepare() {
 	epatch \
+		"${FILESDIR}"/${P}-doc.patch \
 		"${FILESDIR}"/${PN}-1.1.4-makefile.patch \
 		"${FILESDIR}"/${PN}-1.1.3-tau-spinner-makefile.patch
 }


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

end of thread, other threads:[~2014-09-04 16:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-02 16:19 [gentoo-commits] proj/sci:master commit in: sci-physics/tauola/, profiles/, sci-physics/tauola/files/ Justin Lecher
  -- strict thread matches above, loose matches on Subject: below --
2014-09-04 16:12 Jauhien Piatlicki

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