summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /sci-libs/cmpfit
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
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 <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'sci-libs/cmpfit')
-rw-r--r--sci-libs/cmpfit/Manifest1
-rw-r--r--sci-libs/cmpfit/cmpfit-1.2.ebuild39
-rw-r--r--sci-libs/cmpfit/metadata.xml12
3 files changed, 52 insertions, 0 deletions
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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>sci</herd>
+<longdescription lang="en">
+ 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.
+</longdescription>
+</pkgmetadata>