-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sci-physics/{oneloop,cuttools,openloops}: add {3.6, 1.8.2, 2.1.2} #1267
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Alexander Puck Neuwirth <alexander@neuwirth-informatik.de>
Do I understand correctly that this bundles a modified version of a dependency? In this case I would say it depends on which modifications they made and how many. If the changes are generally useful I think we can patch the dependency in its own package. Otherwise I think the bundled dependency should be in SRC_URI. |
Signed-off-by: Alexander Puck Neuwirth <alexander@neuwirth-informatik.de>
Signed-off-by: Alexander Puck Neuwirth <alexander@neuwirth-informatik.de>
Signed-off-by: Alexander Puck Neuwirth <alexander@neuwirth-informatik.de>
I guess I'll add the other stuff here too, so one can explicitly check that it works with the final package. |
Signed-off-by: Alexander Puck Neuwirth <alexander@neuwirth-informatik.de>
Signed-off-by: Alexander Puck Neuwirth <alexander@neuwirth-informatik.de>
Signed-off-by: Alexander Puck Neuwirth <alexander@neuwirth-informatik.de>
Signed-off-by: Alexander Puck Neuwirth <alexander@neuwirth-informatik.de>
Signed-off-by: Alexander Puck Neuwirth <alexander@neuwirth-informatik.de>
Signed-off-by: Alexander Puck Neuwirth <alexander@neuwirth-informatik.de>
Signed-off-by: Alexander Puck Neuwirth <alexander@neuwirth-informatik.de>
use dummy && cp "${FILESDIR}"/mpnumdummy.f90 src/cts/mpnumdummy.f90 | ||
use dummy && sed -i 's/CTS =/CTS = mpnumdummy.o/' src/makefile |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These should || die
, so we need a proper if statement here.
src_compile() { | ||
emake -j1 FFLAGS="${FFLAGS} -I${ESYSROOT}/usr/include -fPIC -std=legacy" | ||
tc-export AR CXX | ||
cd includects |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cd includects | |
cd includects || die |
${AR} -x libcts.a | ||
${CXX} -shared *.o -o lib${PN}.so |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
${AR} -x libcts.a | |
${CXX} -shared *.o -o lib${PN}.so | |
${AR} -x libcts.a || die | |
${CXX} ${CXXFLAGS} -shared *.o -o lib${PN}.so || die |
BDEPEND=" | ||
virtual/fortran | ||
" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fortran-2.eclass
:P
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am going to patch that now into my pkgcheck... or maybe event PR it to pkgcheck 🤔
|
||
src_prepare() { | ||
default | ||
mv openloops.cfg.tmpl openloops.cfg |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mv openloops.cfg.tmpl openloops.cfg | |
mv openloops.cfg.tmpl openloops.cfg || die |
cat << EOF >> openloops.cfg || die | ||
compile_libraries = rambo trred | ||
link_libraries = $(usev collier) $(usev cuttools) | ||
ccflags = ${CFLAGS} | ||
cxxflags = ${CXXFLAGS} | ||
f_flags = ${FFLAGS} -I${ESYSROOT}/usr/include/ -I${ESYSROOT}/usr/include/cuttools -lcollier | ||
link_flags = ${LDFLAGS} -I${ESYSROOT}/usr/include/ -I${ESYSROOT}/usr/include/cuttools -lcollier | ||
cc = $(tc-getCC) | ||
cxx = $(tc-getCXX) | ||
fortran_compiler = $(tc-getFC) | ||
process_src_dir = ${EPREFIX}/opt/${MY_P}/process_src/ | ||
process_obj_dir = ${EPREFIX}/opt/${MY_P}/process_obj/ | ||
process_lib_dir = ${EPREFIX}/opt/${MY_P}/proclib/ | ||
release = $PV | ||
import_env = @all | ||
EOF |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here you can also use -EOF
instead so you can use indentation
Co-authored-by: Andrew Nowa Ammerlaan <andrewammerlaan@gentoo.org>
Co-authored-by: Andrew Nowa Ammerlaan <andrewammerlaan@gentoo.org>
At least two imminent bigger problems here (before I clean it up further):
How does Gentoo typically handle these (rare science mess) cases?