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/minuit
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/minuit')
-rw-r--r--sci-libs/minuit/Manifest3
-rw-r--r--sci-libs/minuit/files/minuit-5.27.02-asneeded.patch38
-rw-r--r--sci-libs/minuit/metadata.xml12
-rw-r--r--sci-libs/minuit/minuit-5.28.00.ebuild60
4 files changed, 113 insertions, 0 deletions
diff --git a/sci-libs/minuit/Manifest b/sci-libs/minuit/Manifest
new file mode 100644
index 000000000000..907c10bd8d4a
--- /dev/null
+++ b/sci-libs/minuit/Manifest
@@ -0,0 +1,3 @@
+DIST Minuit2-5.28.00.tar.gz 471275 RMD160 9f2538b9881dbce6bc928b645702f2612b973fef SHA1 edb79806c99501cd2cef336608135ec5def29041 SHA256 c3d380b021f4f8e21cde9b73f7019a2aa94c4fcaf5af3f30151ef5f7bfcb23cb
+DIST mntutorial.pdf 263735 RMD160 4ef7806018a0ac43e322325ab9ea716268ac65cd SHA1 c32bdc4fb130ea8baa32e5dd79a7bc701b313110 SHA256 a72207746c548f4b468b147c27552b4a1bc9762df2a19f9cb0f9ec297899ef07
+DIST mnusersguide.pdf 260072 RMD160 d3809c8c7f0b105fef61f23c63708ff926853c37 SHA1 ac8b0b8464c8cfd2d02bbdb14e97be6271272259 SHA256 cffef5faa1c4d6ac589d4bd40ea474302f55fab47ab2e711b37f1183870fb206
diff --git a/sci-libs/minuit/files/minuit-5.27.02-asneeded.patch b/sci-libs/minuit/files/minuit-5.27.02-asneeded.patch
new file mode 100644
index 000000000000..b9b8b4b5bb5d
--- /dev/null
+++ b/sci-libs/minuit/files/minuit-5.27.02-asneeded.patch
@@ -0,0 +1,38 @@
+This OpenMP library finding code is from ImageMagick's configure.ac
+
+http://bugs.gentoo.org/314095
+
+--- configure.in
++++ configure.in
+@@ -44,6 +44,20 @@
+ CFLAGS="$CFLAGS $OPENMP_CFLAGS"
+ CXXFLAGS="$CXXFLAGS $OPENMP_CXXFLAGS"
+
++dnl Find OpenMP library
++GOMP_LIBS=''
++if test "$enable_openmp" != 'no'; then
++ if test "${GCC}" = "yes"; then
++ AC_CHECK_LIB(gomp,GOMP_parallel_start,GOMP_LIBS="-lgomp",,) # gcc
++ else
++ AC_CHECK_LIB(mtsk,sunw_mp_register_warn,GOMP_LIBS="-lmtsk",,) # solaris cc
++ AC_CHECK_LIB(xlsmp,_xlsmpFlush,GOMP_LIBS="-lxlsmp",,) # AIX xlc
++ AC_CHECK_LIB(mp,mp_destroy,GOMP_LIBS="-lmp",,) # SGI IRIX 6.5 MIPSpro C/C++
++ fi
++ LIBS="$GOMP_LIBS $LIBS"
++fi
++AC_SUBST(GOMP_LIBS)
++
+ dnl files to be generated
+ AC_OUTPUT(Makefile inc/Makefile inc/Minuit2/Makefile inc/Math/Makefile src/Makefile
+ doc/Doxyfile doc/Makefile test/Makefile test/MnSim/Makefile
+--- src/Makefile.am
++++ src/Makefile.am
+@@ -9,6 +9,8 @@
+ # The convenience library to be built.
+ lib_LTLIBRARIES = libMinuit2.la
+
++libMinuit2_la_LIBADD = $(GOMP_LIBS)
++
+ libMinuit2_la_SOURCES = \
+ AnalyticalGradientCalculator.cxx \
+ BasicMinimumError.cxx \
diff --git a/sci-libs/minuit/metadata.xml b/sci-libs/minuit/metadata.xml
new file mode 100644
index 000000000000..b4d71878b525
--- /dev/null
+++ b/sci-libs/minuit/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">
+ Minuit provides a C++ library for non-linear optimization,
+ and parameter error estimation. Widely used in High Energy Physics,
+ originally as a fortran library, it has been entirely re-written from
+ scratch in C++. It is now included in ROOT-5 and higher.
+ This is the stand-alone version, quick to build and use.
+</longdescription>
+</pkgmetadata>
diff --git a/sci-libs/minuit/minuit-5.28.00.ebuild b/sci-libs/minuit/minuit-5.28.00.ebuild
new file mode 100644
index 000000000000..2bf54f8a7bed
--- /dev/null
+++ b/sci-libs/minuit/minuit-5.28.00.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+inherit autotools eutils toolchain-funcs
+
+MY_PN=Minuit2
+
+DESCRIPTION="A C++ physics analysis tool for function minimization"
+HOMEPAGE="http://seal.web.cern.ch/seal/MathLibs/Minuit2/html/index.html"
+
+SRC_URI="http://seal.web.cern.ch/seal/MathLibs/${MY_PN}/${MY_PN}-${PV}.tar.gz
+ doc? ( http://seal.cern.ch/documents/minuit/mnusersguide.pdf
+ http://seal.cern.ch/documents/minuit/mntutorial.pdf )"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc openmp static-libs"
+DEPEND="doc? ( app-doc/doxygen )"
+RDEPEND=""
+
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-5.27.02-asneeded.patch
+ rm config/m4/ac_openmp.m4
+ AT_M4DIR="config/m4" eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable static-libs static) \
+ $(use_enable openmp)
+}
+
+src_compile() {
+ emake
+ use doc && emake docs
+}
+
+src_test() {
+ emake check
+ cd test/MnTutorial
+ local t
+ for t in test_*; do
+ ./${t} || die "${t} failed"
+ done
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ insinto /usr/share/doc/${PF}/MnTutorial
+ doins test/MnTutorial/*.{h,cxx}
+ if use doc; then
+ dodoc "${DISTDIR}"/mn*.pdf
+ dohtml -r doc/html/*
+ fi
+}