Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 125772 - New ebuild sci-libs/spooles-2.2
Summary: New ebuild sci-libs/spooles-2.2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Default Assignee for New Packages
URL: http://www.netlib.org/linalg/spooles/...
Whiteboard: [sci overlay]
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2006-03-10 16:02 UTC by Peter Gustafson
Modified: 2011-03-05 18:26 UTC (History)
3 users (show)

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


Attachments
Draft ebuild for spooles.2.2 (spooles-2.2.ebuild,972 bytes, text/plain)
2006-03-10 16:04 UTC, Peter Gustafson
Details
Patch file for gentoo specific changes to the Makefile. (2.2-Makefile.patch,1.52 KB, text/plain)
2006-03-10 16:06 UTC, Peter Gustafson
Details
spooles-2.2.ebuild (spooles-2.2.ebuild,1.27 KB, text/plain)
2008-05-22 22:35 UTC, Peter Gustafson
Details
2.2-Make.inc.patch (2.2-Make.inc.patch,1.72 KB, text/plain)
2008-05-22 22:36 UTC, Peter Gustafson
Details
2.2-Make.inc.MPI.patch (2.2-Make.inc.MPI.patch,314 bytes, patch)
2008-05-22 22:36 UTC, Peter Gustafson
Details | Diff
2.2-makefile.MPI.patch (2.2-makefile.MPI.patch,292 bytes, patch)
2008-05-22 22:37 UTC, Peter Gustafson
Details | Diff
2.2-makefile.MT.patch (2.2-makefile.MT.patch,292 bytes, patch)
2008-05-22 22:37 UTC, Peter Gustafson
Details | Diff
reworked ebuild for sci-libs/spooles-2.2 (spooles-2.2.ebuild,1.12 KB, text/plain)
2008-10-15 08:26 UTC, Oliver Borm
Details
makefiles patch from the debian project (spooles-2.2_makefiles.patch,1.82 KB, patch)
2008-10-15 08:28 UTC, Oliver Borm
Details | Diff
shared-libs patch from the debian project (spooles-2.2_shared-libs.patch,1.24 KB, patch)
2008-10-15 08:30 UTC, Oliver Borm
Details | Diff
I2Ohash 64bit patch from the debian project (spooles-2.2_I2Ohash-64bit.patch,1.01 KB, patch)
2008-10-15 08:34 UTC, Oliver Borm
Details | Diff
spooles-2.2_MPI.patch (spooles-2.2_MPI.patch,184 bytes, patch)
2008-10-15 08:36 UTC, Oliver Borm
Details | Diff
spooles-2.2_MT.patch (spooles-2.2_MT.patch,184 bytes, patch)
2008-10-15 08:37 UTC, Oliver Borm
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Gustafson 2006-03-10 16:02:38 UTC
Hi,

SPOOLES is a library for solving sparse real and complex linear systems of equations, written in the C language using object oriented design. 

This should go to the gentoo science team.

I've created an ebuild, my first, which needs serious review.  However, it would be great if this package could be added.  It is a requirement for another package (CalculiX) I would like to see added.  I'll link to that bug request when finished.

Pete
Comment 1 Peter Gustafson 2006-03-10 16:04:23 UTC
Created attachment 81879 [details]
Draft ebuild for spooles.2.2

This needs review.  Particularly install location.
Comment 2 Peter Gustafson 2006-03-10 16:06:14 UTC
Created attachment 81880 [details]
Patch file for gentoo specific changes to the Makefile.
Comment 3 Peter Gustafson 2006-03-10 16:22:39 UTC
Here is the bug I submitted with a proposed ebuild for Calculix, a program which uses this library.
http://bugs.gentoo.org/show_bug.cgi?id=125773

I've also submitted an ebuild for the pre and post processor:
http://bugs.gentoo.org/show_bug.cgi?id=125775

Note the ebuild for spooles puts the library in /usr/lib/spooles/2.2/

Pete
Comment 4 Peter Gustafson 2008-05-22 22:35:04 UTC
Created attachment 154005 [details]
spooles-2.2.ebuild

Updated to allow threaded or MPI solver
Comment 5 Peter Gustafson 2008-05-22 22:36:13 UTC
Created attachment 154007 [details]
2.2-Make.inc.patch
Comment 6 Peter Gustafson 2008-05-22 22:36:48 UTC
Created attachment 154009 [details, diff]
2.2-Make.inc.MPI.patch
Comment 7 Peter Gustafson 2008-05-22 22:37:12 UTC
Created attachment 154011 [details, diff]
2.2-makefile.MPI.patch
Comment 8 Peter Gustafson 2008-05-22 22:37:42 UTC
Created attachment 154013 [details, diff]
2.2-makefile.MT.patch
Comment 9 Sébastien Fabbro (RETIRED) gentoo-dev 2008-05-23 14:21:32 UTC
Hi Peter,

First, thanks for your contributions.
Here are a few comments to start with.

>IUSE="mpi threaded"

You might want to use threads instead of threaded, which already exists.

>	cd ${WORKDIR}

Missing quotes. Run repoman full to catch trivial issues.

>	make lib || die

Use emake as much as you can.

>	dodir /usr/lib/spooles/2.2

Use $(get_libdir) from multilib eclass instead of lib.

>	insinto /usr/lib/spooles/2.2/
>	doins *
[snip]
>	use mpi && doins ./MPI/src/spoolesMPI.a
>	use threaded && doins ./MT/src/spoolesMT.a
[snip]
>	##Kludge I know there is a better way.
>	##Copy the working directory files.
>	for all in `ls -F |grep /`;
>	do dodir /usr/lib/spooles/2.2/$all;
>	insinto /usr/lib/spooles/2.2/$all;
>	doins $all/*;
>	done

Install libs with dolib and in /usr/$(get_libdir) and includes in /usr/include
unless there are many libaries to install.

Actually looking at the source, it is a package which could really benefit from autoolization, and it does not seem too hard to produce the configure.ac and Makefile.am files.
See our autotoolization of the arpack as an example.


Comment 10 Oliver Borm 2008-10-15 08:26:23 UTC
Created attachment 168522 [details]
reworked ebuild for sci-libs/spooles-2.2
Comment 11 Oliver Borm 2008-10-15 08:28:00 UTC
Created attachment 168524 [details, diff]
makefiles patch from the debian project
Comment 12 Oliver Borm 2008-10-15 08:30:26 UTC
Created attachment 168526 [details, diff]
shared-libs patch from the debian project
Comment 13 Oliver Borm 2008-10-15 08:34:50 UTC
Created attachment 168528 [details, diff]
I2Ohash 64bit patch from the debian project
Comment 14 Oliver Borm 2008-10-15 08:36:26 UTC
Created attachment 168530 [details, diff]
spooles-2.2_MPI.patch
Comment 15 Oliver Borm 2008-10-15 08:37:00 UTC
Created attachment 168532 [details, diff]
spooles-2.2_MT.patch
Comment 16 Oliver Borm 2008-10-15 14:41:22 UTC
This new ebuild is now in the science overlay:

http://overlays.gentoo.org/proj/science/browser/overlay/sci-libs/spooles/spooles-2.2.ebuild
Comment 17 Sébastien Fabbro (RETIRED) gentoo-dev 2011-03-05 18:26:20 UTC
now in main tree.