sci-libs/med: package migration from ::science overlay
authorMatthias Maier <tamiko@gentoo.org>
Mon, 5 Aug 2019 05:40:59 +0000 (00:40 -0500)
committerMatthias Maier <tamiko@gentoo.org>
Mon, 5 Aug 2019 06:51:18 +0000 (01:51 -0500)
 * version bump
 * new upsteam website and repo
 * EAPI=7
 * fixup installation

Package-Manager: Portage-2.3.70, Repoman-2.3.16
Signed-off-by: Matthias Maier <tamiko@gentoo.org>
sci-libs/med/Manifest [new file with mode: 0644]
sci-libs/med/med-4.0.0.ebuild [new file with mode: 0644]
sci-libs/med/metadata.xml [new file with mode: 0644]

diff --git a/sci-libs/med/Manifest b/sci-libs/med/Manifest
new file mode 100644 (file)
index 0000000..cec3ed3
--- /dev/null
@@ -0,0 +1 @@
+DIST med-4.0.0.tar.gz 47849098 BLAKE2B 0bc6710f7b5156e09962e3125349573989429e614a203f649843f00dea06217040ebee70e481eed9c0dd304cb7d167efcd216c3600f6954a74f262cc845fff63 SHA512 2840437010481fc5f12a56e3282f8ca5e94df541899e2b511756702f86d0f87dbf2f6e086d8e591e2bd370d8f4bab8089e7f7f939fea16354a23e2b5a4d96cd7
diff --git a/sci-libs/med/med-4.0.0.ebuild b/sci-libs/med/med-4.0.0.ebuild
new file mode 100644 (file)
index 0000000..721d217
--- /dev/null
@@ -0,0 +1,48 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit eutils flag-o-matic
+
+DESCRIPTION="Modeling and Exchange of Data library"
+HOMEPAGE="https://www.salome-platform.org/user-section/about/med"
+SRC_URI="https://files.salome-platform.org/Salome/other/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="mpi"
+
+RDEPEND="
+       ${PYTHON_DEPS}
+       >=sci-libs/hdf5-1.10.5[mpi=]
+       mpi? ( virtual/mpi )
+"
+
+DEPEND="
+       ${DEPEND}
+"
+
+src_prepare() {
+       default
+       append-cppflags -DH5_USE_16_API
+}
+
+src_configure() {
+       local myconf=(
+               --docdir="/usr/share/doc/${PF}"
+               --disable-python
+       )
+
+       econf "${myconf[@]}"
+}
+
+src_install() {
+       default
+
+       mv "${ED}"/usr/$(get_libdir)/libmed3.settings \
+               "${ED}"/usr/share/doc/${PF}/ || die "mv failed"
+
+       rm -rf "${ED}"/usr/include/2.3.6 || die "rm failed"
+}
diff --git a/sci-libs/med/metadata.xml b/sci-libs/med/metadata.xml
new file mode 100644 (file)
index 0000000..dd66d18
--- /dev/null
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+       <maintainer type="person">
+               <email>tamiko@gentoo.org</email>
+               <name>Matthias Maier</name>
+       </maintainer>
+       <maintainer type="project">
+               <email>sci@gentoo.org</email>
+               <name>Gentoo Science Project</name>
+       </maintainer>
+</pkgmetadata>