From 56bd759df1d0c750a065b8c845e93d5dfa6b549d Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Sat, 8 Aug 2015 13:49:04 -0700 Subject: proj/gentoo: Initial commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson X-Thanks: Alec Warner - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring - wrote much python to improve cvs2svn X-Thanks: Rich Freeman - validation scripts X-Thanks: Patrick Lauer - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed --- sci-libs/cmpfit/Manifest | 1 + sci-libs/cmpfit/cmpfit-1.2.ebuild | 39 +++++++++++++++++++++++++++++++++++++++ sci-libs/cmpfit/metadata.xml | 12 ++++++++++++ 3 files changed, 52 insertions(+) create mode 100644 sci-libs/cmpfit/Manifest create mode 100644 sci-libs/cmpfit/cmpfit-1.2.ebuild create mode 100644 sci-libs/cmpfit/metadata.xml (limited to 'sci-libs/cmpfit') diff --git a/sci-libs/cmpfit/Manifest b/sci-libs/cmpfit/Manifest new file mode 100644 index 000000000000..9d576f8bbbd5 --- /dev/null +++ b/sci-libs/cmpfit/Manifest @@ -0,0 +1 @@ +DIST cmpfit-1.2.tar.gz 30431 SHA256 4b90521d8fe7614e6ce1455aa77ee6eea397acfcdc870019e4351055a0ee0697 SHA512 232a39538396f166efd9c7a9fc687e0ac8fd3090f871f54fb0c131a1ed02cc05a60904894d853d8eb76d88e70a1fbab4bce3ad0b5990408c77d5a6028a3b466c WHIRLPOOL 0cf0eed9e1e1f60ce9a37afffba02155fef5a6bc4ca1b4833bdf1e776d2e01a6b9335f4bf260f311a96ae9e350e92e2e6451003c95ec9789f5fa4df2647b095b diff --git a/sci-libs/cmpfit/cmpfit-1.2.ebuild b/sci-libs/cmpfit/cmpfit-1.2.ebuild new file mode 100644 index 000000000000..b0ed5d973a6e --- /dev/null +++ b/sci-libs/cmpfit/cmpfit-1.2.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit toolchain-funcs + +DESCRIPTION="MINPACK-1 Least Squares Fitting Library in C" +HOMEPAGE="http://www.physics.wisc.edu/~craigm/idl/cmpfit.html" +SRC_URI="http://www.physics.wisc.edu/~craigm/idl/down/${P}.tar.gz" + +LICENSE="public-domain minpack" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="static-libs" + +src_compile() { + if use static-libs; then + $(tc-getCC) ${CFLAGS} -c mpfit.c || die + $(tc-getAR) cr mpfit.a mpfit.o || die + fi + $(tc-getCC) ${CFLAGS} -fPIC -c mpfit.c -o mpfit.so|| die "compilation failed" + $(tc-getCC) ${LDFLAGS} -shared -Wl,-soname=libmpfit.so mpfit.so -lm -o libmpfit.so || die +} + +src_test() { + $(tc-getCC) ${CFLAGS} testmpfit.c -L. -lmpfit -lm -o testmpfit || die + LD_LIBRARY_PATH=.:${LD_LIBRARY_PATH} ./testmpfit || die +} + +src_install() { + dolib.so libmpfit.so + use static-libs && dolib.a libmpfit.a + insinto /usr/include + doins mpfit.h + + dodoc README DISCLAIMER +} diff --git a/sci-libs/cmpfit/metadata.xml b/sci-libs/cmpfit/metadata.xml new file mode 100644 index 000000000000..549aa60ca56b --- /dev/null +++ b/sci-libs/cmpfit/metadata.xml @@ -0,0 +1,12 @@ + + + +sci + + MPFIT uses the Levenberg-Marquardt technique to solve the + least-squares problem. In its typical use, MPFIT will be used to fit + a user-supplied function (the "model") to user-supplied data points + (the "data") by adjusting a set of parameters. MPFIT is based upon + MINPACK-1 (LMDIF.F) by More' and collaborators. + + -- cgit v1.2.3-65-gdbad