Skip to content

Commit

Permalink
sci-physics/openloops: add pplla_ew
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Puck Neuwirth <alexander@neuwirth-informatik.de>
  • Loading branch information
APN-Pucky committed Dec 16, 2024
1 parent 733d1a3 commit 792b974
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
1 change: 1 addition & 0 deletions sci-physics/openloops/Manifest
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
DIST OpenLoops-OpenLoops-2.1.3.tar.bz2 3769562 BLAKE2B ddb664a7310662e2d0891e31870d614c191b0248f1b4c8816d4f33b6709005eea7435fda73c354092a28d55a0b106ec9358fb4e4a7a6ed592d61208ff5334e85 SHA512 a5ae2431506f8e169c42dd1d5fa3db70b4e2d62dfa744041fcd61d8554daba0700d453e9198e50a3e85cb3f196277c0f011fb408fd5913cd6a1c42ed71bb9d51
DIST pplla_ew-0a26af9a.tar.bz2 1512376 BLAKE2B 363ff99624248ad24824272f6a3ced26b32d597880d70344dce2690a6eaf451e05ca76eeaafa6b36ba1deebe09f429dccdc774b52b778f9c824426d65ed28dfe SHA512 2858ae591eb372a26597f842d0ed3bf90fdb27e883db3a968e7c449fc569ec6fa28ecef11e4a6f9626596d9a391aff7a4f744bf46faa17b146958c3e09cc9a8a
DIST ppllj-a3a36918.tar.bz2 475014 BLAKE2B b73022c23c082637eb2658fafab716eb749b87de5304ef6672552e7bbbb637a915d0f29c4dee352d9d6f18af7c4139047405bf031bf3986e7353fe73ac82903c SHA512 7ffb11b8910782a9316b86388a2de2d7ce7b9fdc2742bec8065f22a143cf1c988447480d10a629c4b820d5d8b1248bc10eab78560cd51b22fd3fe4a23b596b99
DIST pplljj-93a6e3f7.tar.bz2 2472469 BLAKE2B e4d22ff93ffcd3eaf2583ddfd107d75ecfca5abbcfc125d305f0a149b11b2c3784be95f3d2b473f7aee6c9819863f01bfbf3cd4b06dae8ed2ec6542f6acb1a62 SHA512 d52ee86f8b7aa5e6a339b82e0e6bd30eff5e6666ad3b1d33bc4c1122ef77dd986836abcc70b7936f10f66bd65e29dc938221da45c9654fcab2340085200c523a
DIST pplnj_ckm-4d8743c.tar.bz2 399934 BLAKE2B dbbc0f9d832c9d1758bdf7166b1936c8ecb48053981d2f96fc7ba0bd4a740515863d6b07ab4a1ec1c88cc267787f9ee061ebfc812c4f457fa4a9d135f6df64e2 SHA512 fc4e5797412951a9144bda5856d14aec9d0d4b2f4a89d9afd2d97573149498d76cdc92b9b96915b7ebd318656d44ad9c3bfa0bd14dbb2bb871f665613156075e
Expand Down
1 change: 1 addition & 0 deletions sci-physics/openloops/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
<flag name="collier">Build with collier</flag>
<flag name="extra">Build libs with extra</flag>
<flag name="cuttools">Build with cuttools</flag>
<flag name="pplla-ew">Build pp to lla process with EW corrections</flag>
<flag name="ppllj">Build pp to llj process</flag>
<flag name="pplljj">Build pp to lljj process</flag>
<flag name="pplnj-ckm">Build pp to lnj process with ckm matrix</flag>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,14 @@ SRC_URI="
pplljj? ( ${COMMON_URI}/pplljj/-/archive/93a6e3f7/pplljj-93a6e3f7.tar.bz2 )
pplnj-ckm? ( ${COMMON_URI}/pplnj_ckm/-/archive/4d8743c/pplnj_ckm-4d8743c.tar.bz2 )
pplnjj-ckm? ( ${COMMON_URI}/pplnjj_ckm/-/archive/d3d5302/pplnjj_ckm-d3d5302.tar.bz2 )
pplla-ew? ( ${COMMON_URI}/pplla_ew/-/archive/0a26af9a/pplla_ew-0a26af9a.tar.bz2 )
"
S="${WORKDIR}/${MY_PN}-${MY_P}"

LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64"
IUSE="+collier +cuttools +extra ppllj pplljj pplnj-ckm pplnjj-ckm"
IUSE="+collier +cuttools +extra pplla-ew ppllj pplljj pplnj-ckm pplnjj-ckm"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"

RDEPEND="
Expand Down Expand Up @@ -78,7 +79,7 @@ src_prepare() {

src_compile() {
escons --cache-disable
for OLPROC in ppllj pplljj pplnj_ckm pplnjj_ckm; do
for OLPROC in pplla_ew ppllj pplljj pplnj_ckm pplnjj_ckm; do
if use ${OLPROC//_/-}; then
# move downloaded files to src
mkdir -p "${S}/process_src/${OLPROC}" || die
Expand All @@ -92,7 +93,7 @@ src_compile() {
cat <<-EOF >> openloops.cfg || die
process_src_dir = ${EPREFIX}/opt/${MY_P}/process_src/
process_obj_dir = ${EPREFIX}/opt/${MY_P}/process_obj/
process_lib_dir = ${EPREFIX}/usr/$(get_libdir)/
process_lib_dir = ${EPREFIX}/opt/${MY_P}/proclib/
EOF
}

Expand All @@ -106,16 +107,13 @@ src_install() {
cd ../lib || die
dolib.so libolcommon.so* libopenloops.so* librambo.so* libtrred.so*

cd .. || die
# install processes
if [ -d "../proclib" ]; then
cd ../proclib || die
dolib.so *.so
# also install the process info files
insinto /usr/$(get_libdir)/
doins *.info
if [ -d "./proclib" ]; then
mv proclib "${ED}/opt/${MY_P}/" || die
fi

cd ../lib_src/olcommon/mod || die
cd ./lib_src/olcommon/mod || die
doheader *.mod
cd ../../openloops/mod || die
doheader *.mod
Expand All @@ -135,5 +133,5 @@ src_install() {

pkg_postinst() {
elog "Install processes with openloops libinstall."
elog "They are installed in ${EPREFIX}/usr/$(get_libdir)/."
elog "They are installed in ${EPREFIX}/opt/${MY_P}/proclib/."
}

0 comments on commit 792b974

Please sign in to comment.