Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 74356 - sci-libs/sundials ebuild request
Summary: sci-libs/sundials ebuild request
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL: https://computation.llnl.gov/casc/sun...
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2004-12-14 03:37 UTC by janjan
Modified: 2019-03-01 15:56 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
sundials (sundials-2.0.ebuild,841 bytes, text/plain)
2004-12-14 03:40 UTC, janjan
Details
ebuild for sundails (sundials-2.0.ebuild,1.04 KB, text/plain)
2004-12-25 08:20 UTC, janjan
Details
Ebuild for sundials 2.3.0 (sundials-2.3.0.ebuild,1.64 KB, text/plain)
2006-12-12 06:37 UTC, James Dominy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description janjan 2004-12-14 03:37:16 UTC
# 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.
Comment 1 janjan 2004-12-14 03:40:42 UTC
Created attachment 45962 [details]
sundials
Comment 2 janjan 2004-12-25 08:20:37 UTC
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.
Comment 3 Marien Zwart (RETIRED) gentoo-dev 2006-12-04 10:36:38 UTC
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}.
Comment 4 James Dominy 2006-12-12 06:37:26 UTC
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
Comment 5 Justin Lecher (RETIRED) gentoo-dev 2010-06-22 11:55:00 UTC
Version 2.4.0 is out. If there is still a request on this bug, please drop a line.
Comment 6 aaaa 2011-04-27 07:03:07 UTC
Hey Justin,
I'd like to have an ebuild for 2.4.0
Comment 7 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-03-01 15:56:05 UTC
Apparently in as sci-libs/sundials.