Hi attached should be a couple of ebuild scripts for the sci lib scotch this seems to be one of the things bundled with the code aster source and it may be useful in other cases version 4.0.1 appears to be the one bundled with code aster version 5.0.5 is the one downloadable from the scotch site
Created attachment 152387 [details] /sci-libs/scotch/scotch-4.0.1.ebuild this one is bundled with code aster the source isn't downloadble from the main scotch page so I had to set it to download the code aster source instead to get a copy
Created attachment 152389 [details] /sci-libs/scotch/scotch-5.0.5.ebuild this is the one downloadable from the main scotch site
- yacc (via sys-devel/bison) and flex are given by the system set, so they do not need to be stated and I guess they're not needed at runtime, right!? - if you want to state them, depend on bison, not yacc - ${S} and ${D} quoted, please. - use emake, instead make - on 64 bit, libraries go into /usr/lib64, do dodir "/usr/$(get_libdir)" etc.
Created attachment 152753 [details] /sci-libs/scotch/scotch-4.0.1.ebuild changes made
Created attachment 152755 [details] /sci-libs/scotch/scotch-5.0.5.ebuild changes made
i think I've made all te changes mentioned above let me know if I've missed anything (the install script installs into /usr/lib even under amd64 like I'm using, so I had to create a symlink as part of the ebuild)
Created attachment 200407 [details] scotch-5.1.6 version bump This is a versions bump for scotch. Included the patches from debian. Changed EAPI=2, installed more needed headers and dynamic libraries.
Created attachment 200408 [details, diff] Makefile.inc
Created attachment 200409 [details, diff] metis-header.patch
Created attachment 200410 [details, diff] mmkt-typo.patch
Created attachment 200411 [details, diff] shared-libs.patch
gcc -g -O3 -I. -fPIC -DCOMMON_FILE_COMPRESS_GZ -DCOMMON_PTHREAD -DCOMMON_RANDOM_FIXED_SEED -DSCOTCH_RENAME -DSCOTCH_PTHREAD -c mesh.c -o mesh.o library_mesh_order_f.c:57:20: error: scotch.h: No such file or directory library_mesh_order_f.c:66: error: expected ')' before '*' token library_mesh_order_f.c:66: error: expected ')' before '*' token library_mesh_order_f.c:66: error: expected ')' before '*' token library_mesh_order_f.c:66: error: expected ')' before '*' token library_mesh_order_f.c:66: error: expected ')' before '*' token Doesn't compile here out of the box ...
(In reply to comment #12) > gcc -g -O3 -I. -fPIC -DCOMMON_FILE_COMPRESS_GZ -DCOMMON_PTHREAD > -DCOMMON_RANDOM_FIXED_SEED -DSCOTCH_RENAME -DSCOTCH_PTHREAD -c mesh.c -o mesh.o > library_mesh_order_f.c:57:20: error: scotch.h: No such file or directory > > Doesn't compile here out of the box ... > For me it does. Could you please post the complete build log, at least the starting of the log file?
Created attachment 202017 [details] scotch-5.1.6 new version Seemed to be a problem with parallel make. So restricted to -j1, hope that solves the problem.
+ 03 Sep 2009; Patrick Lauer <patrick@gentoo.org> +scotch-5.1.6.ebuild, + +files/Makefile.inc, +files/metis-header.patch, +files/mmkt-typo.patch, + +files/shared-libs.patch, +metadata.xml: + Initial import of scotch, dependency of OpenFoam. Ebuild by Richard + Westwell and Oliver Borm. Fixes #220823