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

commit:     f194a5bb98593d06f9db8109b4da9ce5b369fe3d
Author:     Jauhien Piatlicki <piatlicki <AT> gmail <DOT> com>
AuthorDate: Fri Dec 13 12:28:08 2013 +0000
Commit:     Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Fri Dec 13 12:28:08 2013 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=f194a5bb

sci-physics/tauola: version bump (1.1.4)

---
 sci-physics/tauola/ChangeLog                       |  6 ++
 .../tauola/files/tauola-1.1.4-makefile.patch       | 12 ++++
 sci-physics/tauola/tauola-1.1.4.ebuild             | 69 ++++++++++++++++++++++
 3 files changed, 87 insertions(+)

diff --git a/sci-physics/tauola/ChangeLog b/sci-physics/tauola/ChangeLog
index dfcbc89..6bc3c4f 100644
--- a/sci-physics/tauola/ChangeLog
+++ b/sci-physics/tauola/ChangeLog
@@ -2,6 +2,12 @@
 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+*tauola-1.1.4 (13 Dec 2013)
+
+  13 Dec 2013; Jauhien Piatlicki <piatlicki@gmail.com> +tauola-1.1.4.ebuild,
+  +files/tauola-1.1.4-makefile.patch:
+  version bump
+
 *tauola-9999 (22 Nov 2013)
 *tauola-1.1.3 (22 Nov 2013)
 

diff --git a/sci-physics/tauola/files/tauola-1.1.4-makefile.patch b/sci-physics/tauola/files/tauola-1.1.4-makefile.patch
new file mode 100644
index 0000000..e62d768
--- /dev/null
+++ b/sci-physics/tauola/files/tauola-1.1.4-makefile.patch
@@ -0,0 +1,12 @@
+--- Makefile
++++ Makefile
+@@ -38,8 +38,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/tauola-1.1.4.ebuild b/sci-physics/tauola/tauola-1.1.4.ebuild
new file mode 100644
index 0000000..5967050
--- /dev/null
+++ b/sci-physics/tauola/tauola-1.1.4.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}/${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 -j1
+	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/, sci-physics/tauola/files/
@ 2024-06-27 12:21 Alexander Puck Neuwirth
  0 siblings, 0 replies; 2+ messages in thread
From: Alexander Puck Neuwirth @ 2024-06-27 12:21 UTC (permalink / raw
  To: gentoo-commits

commit:     c00c3966a7b556235042f75038aa7507a61e8063
Author:     Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT> de>
AuthorDate: Tue May  7 20:06:23 2024 +0000
Commit:     Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT> de>
CommitDate: Thu Jun 27 12:20:28 2024 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=c00c3966

sci-physics/tauola: update EAPI 7 -> 8

Co-authored-by: Andrew Nowa Ammerlaan <andrewammerlaan <AT> gentoo.org>
Signed-off-by: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik.de>

 ...tauola-1.1.8-tau-spinner-makefile-install.patch | 22 ++++++
 sci-physics/tauola/metadata.xml                    | 13 +++-
 sci-physics/tauola/tauola-1.1.8-r1.ebuild          | 80 ++++++++++++++++++++++
 3 files changed, 113 insertions(+), 2 deletions(-)

diff --git a/sci-physics/tauola/files/tauola-1.1.8-tau-spinner-makefile-install.patch b/sci-physics/tauola/files/tauola-1.1.8-tau-spinner-makefile-install.patch
new file mode 100644
index 000000000..2d93959c5
--- /dev/null
+++ b/sci-physics/tauola/files/tauola-1.1.8-tau-spinner-makefile-install.patch
@@ -0,0 +1,22 @@
+--- a/Makefile	2020-01-28 18:43:43.000000000 +0100
++++ b/Makefile	2024-05-07 21:51:01.306908458 +0200
+@@ -48,7 +48,7 @@
+ 	mkdir -p $(DESTDIR)/$(PREFIX)/include/Tauola
+ 	install -m 644  include/Tauola/* $(DESTDIR)/$(PREFIX)/include/Tauola/.
+ 	mkdir -p $(DESTDIR)/$(LIBDIR)
+-	install lib/*so.$(LIB_VER) $(DESTDIR)/$(LIBDIR)/
++	install lib/*so.* $(DESTDIR)/$(LIBDIR)/
+ 	install lib/*a $(DESTDIR)/$(LIBDIR)/
+ 	cp -P lib/*so $(DESTDIR)/$(LIBDIR)/
+ 
+--- a/TauSpinner/Makefile	2024-05-07 21:57:58.542875180 +0200
++++ b/TauSpinner/Makefile	2024-05-07 21:58:42.993509785 +0200
+@@ -52,7 +52,7 @@
+ 
+ libTauSpinner: $(TAU_SPINNER_OBJECTS)
+ 	ar cr lib/$(LIB_TAU_SPINNER_A) $(TAU_SPINNER_OBJECTS)
+-	$(LD) $(LDFLAGS) $(SOFLAGS) $(TAU_SPINNER_OBJECTS) -o lib/$(LIB_TAU_SPINNER_SO).$(LIB_VER)
++	$(LD) $(LDFLAGS) $(SOFLAGS) $(TAU_SPINNER_OBJECTS) -o lib/$(LIB_TAU_SPINNER_SO).$(LIB_VER)  -Wl,-soname,$(LIB_TAU_SPINNER_SO)
+ 	ln -sf $(LIB_TAU_SPINNER_SO).$(LIB_VER) lib/$(LIB_TAU_SPINNER_SO)
+ 
+ clean:

diff --git a/sci-physics/tauola/metadata.xml b/sci-physics/tauola/metadata.xml
index b0f8228f8..fcbc9de77 100644
--- a/sci-physics/tauola/metadata.xml
+++ b/sci-physics/tauola/metadata.xml
@@ -2,14 +2,23 @@
 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
 	<maintainer type="person">
-		<email>piatlicki@gmail.com</email>
+		<email>alexander@neuwirth-informatik.de</email>
+		<name>Alexander Puck Neuwirth</name>
 	</maintainer>
 	<maintainer type="project">
 		<email>sci-physics@gentoo.org</email>
 		<name>Gentoo Physics Project</name>
 	</maintainer>
+
+	<longdescription lang="en">
+	TAUOLA is a program that simulates the decays of polarized tau leptons, which are elementary particles that belong to the lepton family. Tau leptons are heavier than electrons and muons, and they can decay into various final states, such as hadrons, leptons, and neutrinos. TAUOLA can generate Monte Carlo events for tau lepton decays, taking into account the polarization, spin correlations, and radiative corrections. TAUOLA can also model anomalous and lepton flavor violating decays, which are beyond the standard model of particle physics. 
+	</longdescription>
 	<use>
-		<flag name="hepmc">Compile <pkg>sci-physics/hepmc</pkg> interface</flag>
+		<flag name="hepmc"> Compile with <pkg>sci-physics/hepmc</pkg> version 2 interface </flag>
+		<flag name="hepmc2"> Compile with <pkg>sci-physics/hepmc</pkg> version 2 interface </flag>
+		<flag name="hepmc3"> Compile with <pkg>sci-physics/hepmc</pkg> version 3 interface </flag>
+		<flag name="pythia"> Compile with <pkg>sci-physics/pythia</pkg> connection </flag>
+		<flag name="lhapdf"> Compile with <pkg>sci-physics/lhapdf</pkg> connection </flag>
 		<flag name="tau-spinner">Compile with TauSpinner library</flag>
 	</use>
 </pkgmetadata>

diff --git a/sci-physics/tauola/tauola-1.1.8-r1.ebuild b/sci-physics/tauola/tauola-1.1.8-r1.ebuild
new file mode 100644
index 000000000..0e2b3fc3a
--- /dev/null
+++ b/sci-physics/tauola/tauola-1.1.8-r1.ebuild
@@ -0,0 +1,80 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit fortran-2
+
+MY_PN="TAUOLA"
+MY_P=${MY_PN}.${PV}
+
+DESCRIPTION="Tau decay Monte Carlo generator"
+HOMEPAGE="http://tauolapp.web.cern.ch/"
+SRC_URI="https://tauolapp.web.cern.ch/resources/${MY_P}/${MY_P}.tar.gz"
+S="${WORKDIR}/${MY_PN}"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+hepmc3 +lhapdf doc examples hepmc2 pythia tau-spinner"
+REQUIRED_USE=" || ( hepmc2 hepmc3 ) tau-spinner? ( lhapdf )"
+
+RDEPEND="
+	hepmc2? ( sci-physics/hepmc:2=[-cm(-),gev(+)] )
+	hepmc3? ( sci-physics/hepmc:3=[-cm(-),gev(+)] )
+	pythia? ( sci-physics/pythia:8= )
+	lhapdf? ( sci-physics/lhapdf )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+	doc? (
+		app-text/doxygen[dot]
+		app-text/ghostscript-gpl
+		app-text/texlive
+	)
+"
+
+PATCHES=(
+	"${FILESDIR}"/${PN}-1.1.8-tau-spinner-makefile-install.patch
+)
+
+src_configure() {
+	econf \
+		$(use_with lhapdf) \
+		$(use_with tau-spinner) \
+		$(use_with pythia pythia8 "${EPREFIX}/usr") \
+		$(use_with hepmc2 hepmc "${EPREFIX}/usr") \
+		$(use_with hepmc3 hepmc3 "${EPREFIX}/usr") \
+		--without-mc-tester
+	# weird autoconf + Makefile
+	cat <<-EOF >> make.inc || die
+	LDFLAGS += ${LDFLAGS}
+	CFLAGS += ${CFLAGS}
+	FFLAGS += ${FFLAGS}
+	EOF
+}
+
+src_compile() {
+	emake -j1
+
+	if use doc; then
+		cd "${S}/documentation/doxy_documentation" || die
+		default
+		cd "${S}/documentation/latex_documentation" || die
+		default
+	fi
+}
+
+src_install() {
+	emake DESTDIR="${D}" install
+
+	if use doc; then
+		dodoc documentation/doxy_documentation/html/*
+		dodoc documentation/latex_documentation/*.pdf
+	fi
+
+	if use examples; then
+		dodoc -r examples
+		docinto tau-spinner && dodoc -r TauSpinner/examples
+	fi
+}


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

end of thread, other threads:[~2024-06-27 12:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-13 15:31 [gentoo-commits] proj/sci:master commit in: sci-physics/tauola/, sci-physics/tauola/files/ Justin Lecher
  -- strict thread matches above, loose matches on Subject: below --
2024-06-27 12:21 Alexander Puck Neuwirth

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