public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/sci:master commit in: sci-physics/madgraph5/
@ 2025-06-03 13:38 Alexander Puck Neuwirth
  0 siblings, 0 replies; 2+ messages in thread
From: Alexander Puck Neuwirth @ 2025-06-03 13:38 UTC (permalink / raw
  To: gentoo-commits

commit:     bca638f1ec6c8a8df045ecc78ae3d7071221d99d
Author:     Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT> de>
AuthorDate: Tue Jun  3 13:37:56 2025 +0000
Commit:     Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT> de>
CommitDate: Tue Jun  3 13:37:56 2025 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=bca638f1

sci-physics/madgraph5: update HOMEPAGE

Signed-off-by: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik.de>

 sci-physics/madgraph5/madgraph5-3.5.8.ebuild | 5 ++++-
 sci-physics/madgraph5/metadata.xml           | 1 +
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/sci-physics/madgraph5/madgraph5-3.5.8.ebuild b/sci-physics/madgraph5/madgraph5-3.5.8.ebuild
index 4bf8aaff2..acfbff70a 100644
--- a/sci-physics/madgraph5/madgraph5-3.5.8.ebuild
+++ b/sci-physics/madgraph5/madgraph5-3.5.8.ebuild
@@ -13,7 +13,10 @@ MY_PN="MG5_aMC_v"
 MY_PF=${MY_PN}${MY_PV}
 
 DESCRIPTION="MadGraph5_aMC@NLO"
-HOMEPAGE="https://launchpad.net/mg5amcnlo"
+HOMEPAGE="
+	https://launchpad.net/mg5amcnlo
+	https://github.com/mg5amcnlo/mg5amcnlo
+"
 SRC_URI="https://launchpad.net/mg5amcnlo/$(ver_cut 1).0/$(ver_cut 1-2).x/+download/${MY_PN}${PV}.tar.gz -> ${MY_PNN}-${PV}.tar.gz"
 S="${WORKDIR}/${MY_PF}"
 

diff --git a/sci-physics/madgraph5/metadata.xml b/sci-physics/madgraph5/metadata.xml
index 8fc26f579..a352e5234 100644
--- a/sci-physics/madgraph5/metadata.xml
+++ b/sci-physics/madgraph5/metadata.xml
@@ -28,5 +28,6 @@
 	</use>
 	<upstream>
 		<remote-id type="launchpad">mg5amcnlo</remote-id>
+		<remote-id type="github">mg5amcnlo/mg5amcnlo</remote-id>
 	</upstream>
 </pkgmetadata>


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

* [gentoo-commits] proj/sci:master commit in: sci-physics/madgraph5/
@ 2025-06-03 13:38 Alexander Puck Neuwirth
  0 siblings, 0 replies; 2+ messages in thread
From: Alexander Puck Neuwirth @ 2025-06-03 13:38 UTC (permalink / raw
  To: gentoo-commits

commit:     9d17e52b424c5bbf8ddae2efd5886152c1cc9e2c
Author:     Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT> de>
AuthorDate: Tue Jun  3 13:36:19 2025 +0000
Commit:     Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT> de>
CommitDate: Tue Jun  3 13:36:19 2025 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=9d17e52b

sci-physics/madgraph5: add 3.5.8

Signed-off-by: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik.de>

 sci-physics/madgraph5/madgraph5-3.5.8.ebuild | 93 ++++++++++++++++++++++++++++
 1 file changed, 93 insertions(+)

diff --git a/sci-physics/madgraph5/madgraph5-3.5.8.ebuild b/sci-physics/madgraph5/madgraph5-3.5.8.ebuild
new file mode 100644
index 000000000..4bf8aaff2
--- /dev/null
+++ b/sci-physics/madgraph5/madgraph5-3.5.8.ebuild
@@ -0,0 +1,93 @@
+# Copyright 2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# does not escape strings properly, so no python3_12 for now
+PYTHON_COMPAT=( python3_{11..13} )
+inherit fortran-2 python-single-r1
+
+MY_PNN="MadGraph5"
+MY_PV=$(ver_rs 1-3 '_')
+MY_PN="MG5_aMC_v"
+MY_PF=${MY_PN}${MY_PV}
+
+DESCRIPTION="MadGraph5_aMC@NLO"
+HOMEPAGE="https://launchpad.net/mg5amcnlo"
+SRC_URI="https://launchpad.net/mg5amcnlo/$(ver_cut 1).0/$(ver_cut 1-2).x/+download/${MY_PN}${PV}.tar.gz -> ${MY_PNN}-${PV}.tar.gz"
+S="${WORKDIR}/${MY_PF}"
+
+LICENSE="UoI-NCSA"
+SLOT="3"
+KEYWORDS="~amd64"
+# TODO add pineapple, herwig, syscalc, pjfrym, pineappl
+IUSE="+hepmc2 +lhapdf +fastjet pythia collier thepeg" # td madanalysis5 ninja samurai golem95
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="
+	${PYTHON_DEPS}
+	sys-libs/zlib
+	sys-devel/gcc:*[fortran]
+	$(python_gen_cond_dep '
+		dev-python/numpy[${PYTHON_USEDEP}]
+	')
+	lhapdf? ( sci-physics/lhapdf[${PYTHON_SINGLE_USEDEP}] )
+	fastjet? ( sci-physics/fastjet[${PYTHON_SINGLE_USEDEP}] )
+	pythia? ( sci-physics/pythia:8=[examples] )
+	hepmc2? ( sci-physics/hepmc:2 )
+	collier? ( sci-physics/collier[static-libs] )
+	thepeg? (
+		sci-physics/thepeg[hepmc3(-),fastjet?,lhapdf?]
+	)
+"
+#   madanalysis5? ( sci-physics/madanalysis5 )
+#	td? ( sci-physics/topdrawer )
+#	ninja? ( sci-physics/ninja[static-libs] )
+#	samurai? ( sci-physics/samurai )
+#	golem95? ( sci-physics/golem95 )
+DEPEND="${RDEPEND}"
+
+PATCHES=( "${FILESDIR}"/cuttools.patch )
+
+src_unpack() {
+	# Perserve permissions
+	tar xvzf "${DISTDIR}/${MY_PNN}-${PV}.tar.gz" -C "${WORKDIR}" || die
+}
+
+src_configure() {
+	cat <<-EOF >> input/mg5_configuration.txt || die
+	$(usex lhapdf "lhapdf_py3 = ${EPREFIX}/usr/bin/lhapdf-config" "")
+	$(usex fastjet "fastjet = ${EPREFIX}/usr/bin/fastjet-config" "")
+	$(usex pythia "pythia8_path = ${EPREFIX}/usr" "")
+	$(usex hepmc2 "hepmc_path = ${EPREFIX}/usr" "")
+	$(usex collier "collier = ${EPREFIX}/usr/$(get_libdir)" "")
+	$(usex thepeg "thepeg_path = ${EPREFIX}/usr/$(get_libdir)" "")
+	auto_update = 0
+	EOF
+
+	#use ninja && echo "ninja = ${EPREFIX}/usr/$(get_libdir)" >> input/mg5_configuration.txt
+	#use samurai && echo "samurai = ${EPREFIX}/usr/$(get_libdir)" >> input/mg5_configuration.txt
+	#use golem95 && echo "golem = ${EPREFIX}/usr/$(get_libdir)" >> input/mg5_configuration.txt
+	#use td && echo "td_path = ${EPREFIX}/usr/bin/td" >> input/mg5_configuration.txt
+	#use madanalysis5 && echo "madanalysis5_path = ${EPREFIX}/opt/MadAnalysis5/" >> input/mg5_configuration.txt
+}
+
+src_compile() {
+	# MadGraph needs to generate `Template/LO/Source/make_opts` which is done
+	# automatically at startup.  This needs to be done during setup (or with root access)
+	echo "exit" > tmpfile || die
+	bin/mg5_aMC ./tmpfile || die
+	rm tmpfile || die
+}
+
+src_install() {
+	# symlink entrypoint
+	dosym ../../opt/${MY_PF}/bin/mg5_aMC /usr/bin/mg5_aMC3
+	dosym  ../opt/${MY_PF} /opt/"${MY_PNN}"
+	mv "${WORKDIR}/${MY_PF}" "${ED}/opt/" || die
+
+	# allow all users to modify mg directory
+	# as it changes it self
+	#fperms -R a=u /opt/${MY_PF}
+	#fperms a=u /opt/${MY_PF}
+}


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

end of thread, other threads:[~2025-06-03 13:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-03 13:38 [gentoo-commits] proj/sci:master commit in: sci-physics/madgraph5/ Alexander Puck Neuwirth
  -- strict thread matches above, loose matches on Subject: below --
2025-06-03 13:38 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