summaryrefslogtreecommitdiff
path: root/sci-libs/minuit
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /sci-libs/minuit
reinit the tree, so we can have metadata
Diffstat (limited to 'sci-libs/minuit')
-rw-r--r--sci-libs/minuit/Manifest8
-rw-r--r--sci-libs/minuit/files/minuit-5.27.02-asneeded.patch38
-rw-r--r--sci-libs/minuit/metadata.xml15
-rw-r--r--sci-libs/minuit/minuit-5.34.14.ebuild74
4 files changed, 135 insertions, 0 deletions
diff --git a/sci-libs/minuit/Manifest b/sci-libs/minuit/Manifest
new file mode 100644
index 000000000000..944e13f5d624
--- /dev/null
+++ b/sci-libs/minuit/Manifest
@@ -0,0 +1,8 @@
+AUX minuit-5.27.02-asneeded.patch 1180 SHA256 e097534dc55e1725f0e9e48c0904396a61835edc8a8c9b124836a2a6bdf5aebf SHA512 d5be2d60a39f3b7b2bf1afbf29a3fbc2d6d559c2be38141dc4871809a45b53ffbdbc12e39c6f887811c447b0e6c5ef47a32e4976cb78fa00d1b92b3ba3dd0e9a WHIRLPOOL ab103f3d16d7f8689874161896ee823029e570ff9e299e723a82bdb170d39039d0eefa2a7c78fc1497ad86ffe1e6506d7fdd44a674c2ea04da3702687364638e
+DIST minuit-5.34.14.tar.gz 510005 SHA256 2ca9a283bbc315064c0a322bc4cb74c7e8fd51f9494f7856e5159d0a0aa8c356 SHA512 96e520e0f9454f57a9529662612f444f60bcf63d21b7950b832cf3c670ee407ae78c9ffaf34eee728c0b68a4e39c347ea69121b4a51f1b2d33fd2176db88f720 WHIRLPOOL 921a290b176de9d53cec4c4aa11f05e1e202af93e2a401099e28234e5fb1204cccd16789428e02b8cbd8e8c4d0b9088d16e4d90708eab92903237cbc6821165e
+DIST mntutorial.pdf 263735 SHA256 a72207746c548f4b468b147c27552b4a1bc9762df2a19f9cb0f9ec297899ef07 SHA512 27d6fdc85fa190cd8e4e22d9ccac543005878718e24ececfbc1236266f50759390daf7ff50859dcfae18562a655955846460a56deeb4d44f23e77a629b1cddb1 WHIRLPOOL 29a77b3990d71c9e51ec55cb1e3a4e84d92f842a63453c23a62027e0bfec0b5f1279d24be192a98affb657d980bb1b13dae49cdadf2cfe29ad60c3bb0ea2f24e
+DIST mnusersguide.pdf 260072 SHA256 cffef5faa1c4d6ac589d4bd40ea474302f55fab47ab2e711b37f1183870fb206 SHA512 6ed46923a798de7b1e5d9eb556684ece53fb85b57b18f4fd847de9f83251461fa69f841418272337e5284e061760c96798913b3f8e1d718a35a86f6e702d269b WHIRLPOOL c51ab4a9cc00b449e9bb8069ab4c3e19341bd25baa49053b0686d59f36e3a877769aed1cf88b303b6db8b2e2d34f72970fad821af963165a3c22e7aa54e05bb9
+EBUILD minuit-5.34.14.ebuild 1523 SHA256 a9955aae9c3677243745df3adcf9215baa757212a446051039d3a68987618d2b SHA512 470456544525b642da2b42123f4054006237a134ebeb76f07eae375312a7c627080825f81fcc841462bc61e976735fde120c282c9460baee429459fbc7d94d3c WHIRLPOOL b26824b9204db88ed7d55c7db359d2636f886be15067cd7f38c94059d3e4ff689590206f045ba807291ad106137a042834631c3d874daff2e3fcefe1c6339ac4
+MISC ChangeLog 2466 SHA256 6e22263f946eac69f5db987473b81e524c47e29d5584c514704e1f6afb862e97 SHA512 6a67cf4fe872f73730763bda3cceee3762e8c7298dfc8f2728a820f213cc02d337f534e95790b155082dbd9e8fc1343517fd0e5015198fcdc5e96cc1c59c756e WHIRLPOOL 9d4ff3c6fea3bc2264ac3a28df9f73417fde42c0401abf2361012763b8ab2ed49ff105f2ba5bbd445b9206fc29c1873db58c3f96bd80ae2fb6b71b1c50d24006
+MISC ChangeLog-2015 2850 SHA256 c13c913252a6f7cb23b031e34738a49e947fb3c220496d48998ed300388b40a7 SHA512 9299c93d4bb8c2e1b85f79f51e3b70895254a92d897ccdee720304e5df7352b426eb1373239eff725711b4444aaacb01395a978813124b3a9e49d9c34361b47a WHIRLPOOL a7025ad0ed628e750ea6b6ac803b4b3aca88c87fda36d48ef557312c9fd1663305665411d74768366e6a1f550478c1de76b4d3dcd1128abe8c53b70c9abfeeef
+MISC metadata.xml 618 SHA256 2c5265727976c0bb4d7b1af6f53cc34df207b6755beeeb4c2da858043f59c05f SHA512 4f0d43ab313f083fb79b4a6fef506caafdad61e09cb321f005b8dc35bde642d44a533e8bab42eb229bb4faf67c12f61deebf2ba1deac855b6a78e7db78c853e8 WHIRLPOOL 0f898c11ab5f10c00fdd31a8980d8eee28b2577a222f5fbf2530a4a93f371d535ccd525d0c57353604bb90a7296f13a79c4d7336424043e17bfe9527eb8c0906
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..e808a928f5e6
--- /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
+
+--- a/configure.in
++++ b/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
+--- a/src/Makefile.am
++++ b/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..114115b4b53a
--- /dev/null
+++ b/sci-libs/minuit/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>sci@gentoo.org</email>
+ <name>Gentoo Science Project</name>
+</maintainer>
+<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.34.14.ebuild b/sci-libs/minuit/minuit-5.34.14.ebuild
new file mode 100644
index 000000000000..433d7e2663a2
--- /dev/null
+++ b/sci-libs/minuit/minuit-5.34.14.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools
+
+DESCRIPTION="A C++ physics analysis tool for function minimization"
+HOMEPAGE="https://seal.web.cern.ch/seal/snapshot/work-packages/mathlibs/minuit/"
+SRC_URI="
+ http://www.cern.ch/mathlibs/sw/${PV//./_}/${PN^}2/${PN^}2-5.34.14.tar.gz -> ${P}.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}/${PN^}2-${PV}"
+
+PATCHES=( "${FILESDIR}"/${PN}-5.27.02-asneeded.patch )
+
+src_prepare() {
+ default
+ rm config/m4/ac_openmp.m4 || die
+ mv configure.{in,ac} || die
+
+ AT_M4DIR="config/m4" eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable static-libs static) \
+ $(use_enable openmp)
+}
+
+src_compile() {
+ default
+ use doc && emake docs
+}
+
+src_test() {
+ emake check
+
+ cd test/MnTutorial || die
+ local t
+ for t in test_*; do
+ ./${t} || die "${t} failed"
+ done
+}
+
+src_install() {
+ if use doc; then
+ # remove doxygen junk
+ find doc/html \( -iname '*.map' -o -iname '*.md5' \) -delete || die
+ HTML_DOCS=( doc/html/. )
+ dodoc "${DISTDIR}"/mn{usersguide,tutorial}.pdf
+ fi
+ default
+
+ docinto examples
+ dodoc test/MnTutorial/*.{h,cxx}
+ docompress -x /usr/share/doc/${PF}/examples
+
+ if ! use static-libs; then
+ find "${D}" -name '*.la' -delete || die
+ fi
+}