# Copyright 2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ SRC_URI="http://www.llnl.gov/CASC/sundials/download/sundials_ser.tar.gz" DESCRIPTION="SUNDIALS (SUite of Nonlinear and DIfferential/ALgebraic equation Solvers)" HOMEPAGE="http://www.llnl.gov/CASC/sundials/" LICENSE="BSD" IUSE="fortran mpi" DEPEND="mpi? ( sys-cluster/lam-mpi )" # gcc and lam-mpi must be built with USE=fortran SLOT="0" KEYWORDS="~x86" S="${WORKDIR}/sundials" src_compile() { local fconf if useq fortran; then fconf="F77=g77" else fconf=" " fi econf \ ${fconf} \ `use_enable shared` \ || die "econf failed" emake || die "emake failed" } pkg_postinst() { einfo "Please register your use of this package at http://www.llnl.gov/CASC/sundials/download/get_sundials_reg.html" } Reproducible: Always Steps to Reproduce: 1. 2. 3. Actual Results: This is an ebuild for emerging Sundials. Compiled like a charm :) Sorry for inlining it Please test and consider inclusion under app-sci. Sorry for inling the ebuild in the details, I didn't know how to attach it.
Created attachment 45962 [details] sundials
Created attachment 46864 [details] ebuild for sundails Replace original ebuild, now also works for installing. Needs to be made standard conformant, and needs to exploit fortran.eclass. Any help appreciated, thanks.
The last ebuild here is using "addwrite /usr/lib". You really, *really*, *REALLY* do not want to do that. Short version: doing "make install" as root by hand is about as safe and featureful as this ebuild. Longer version: it means the install phase will write directly to /usr/lib instead of to the staging area in /var/tmp/portage (known as ${D} in the ebuild), meaning portage will not be aware of the files written there, will not stop the build from overwriting existing files (through collision-protect) and will not ever unmerge those files. Do not do this. Fix the ebuild and/or build process to install into ${D}.
Created attachment 103860 [details] Ebuild for sundials 2.3.0 Haven't tested with the matlab USE flag or with sundialsTB as I useneither. The other USE flags ('shared', 'fortran', 'mpi') seem to work. The underlying structureof the build and the package has changed somewhat from 2.2.0 to 2.3.0, so this ebuild can't be simply backported to 2.2.0 AFAIK
Version 2.4.0 is out. If there is still a request on this bug, please drop a line.
Hey Justin, I'd like to have an ebuild for 2.4.0
Apparently in as sci-libs/sundials.