commit:     93b4daf0a8da5b799169e1a765299b0c26cbc903
Author:     Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
AuthorDate: Sun Jan 11 13:40:30 2015 +0000
Commit:     Christoph Junghans <ottxor <AT> gentoo <DOT> org>
CommitDate: Sun Jan 11 13:40:30 2015 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=93b4daf0

Revert "Remove matio from overlay, newer versions in tree"
sci-mathematics/scilab depoends on '<sci-libs/matio-1.5'

This reverts commit d566a1159399a15e9a81c8e154f076f3058091d1.

---
 sci-libs/matio/ChangeLog                         | 39 ++++++++++++++++++++
 sci-libs/matio/files/matio-1.3.4-autotools.patch | 29 +++++++++++++++
 sci-libs/matio/matio-1.3.4.ebuild                | 47 ++++++++++++++++++++++++
 sci-libs/matio/metadata.xml                      |  9 +++++
 4 files changed, 124 insertions(+)

diff --git a/sci-libs/matio/ChangeLog b/sci-libs/matio/ChangeLog
new file mode 100644
index 0000000..620f108
--- /dev/null
+++ b/sci-libs/matio/ChangeLog
@@ -0,0 +1,39 @@
+# ChangeLog for sci-libs/matio
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+  21 Jun 2011; Justin Lecher <[email protected]> matio-1.3.4.ebuild:
+  Added fortran-2.eclass support
+
+*matio-1.3.4 (10 Aug 2010)
+
+  10 Aug 2010; Sébastien Fabbro <[email protected]> -matio-1.3.3.ebuild,
+  -files/matio-1.3.3-makefile.patch, +matio-1.3.4.ebuild,
+  +files/matio-1.3.4-autotools.patch:
+  Version bump. Ebuild modernisation. Disabling doc generation (bug #330237)
+
+*matio-1.3.3 (22 Jan 2009)
+
+  22 Jan 2009; Sébastien Fabbro <[email protected]>
+  +sci-libs/matio/files/matio-1.3.3-makefile.patch,
+  sci-astronomy/scamp/metadata.xml, sci-libs/matio/metadata.xml,
+  sci-mathematics/gap/metadata.xml:
+  Version bump
+
+*matio-1.3.1 (20 Sep 2006)
+
+  20 Sep 2006; Andrey Grozin <[email protected]>
+  +matio-1.3.1.ebuild, -matio-1.3.0.ebuild, -files/matio-1.1.4.patch:
+  version bump, now at sourceforge
+
+*matio-1.3.0 (28 August 2006)
+
+  28 August 2006; Andrey Grozin <[email protected]>
+  +matio-1.3.0.ebuild, -matio-1.1.4.ebuild:
+  version bump
+
+*matio-1.1.4 (16 June 2006)
+
+  16 June 2006; Andrey Grozin <[email protected]>
+  +metadata.xml, +matio-1.1.4.ebuild, +files/matio-1.1.4.patch:
+  Initial import.

diff --git a/sci-libs/matio/files/matio-1.3.4-autotools.patch 
b/sci-libs/matio/files/matio-1.3.4-autotools.patch
new file mode 100644
index 0000000..c9e6a04
--- /dev/null
+++ b/sci-libs/matio/files/matio-1.3.4-autotools.patch
@@ -0,0 +1,29 @@
+--- configure.ac.orig  2010-08-10 20:36:52.000000000 +0100
++++ configure.ac       2010-08-10 20:39:03.000000000 +0100
+@@ -5,7 +5,7 @@
+ AC_INIT([MATIO],[1.3.4],[[email protected]],[])
+ AC_CONFIG_SRCDIR([src/matio.h])
+ AC_CONFIG_AUX_DIR(config)
+-AC_CONFIG_MACRO_DIR([m4])
++
+ dnl AM_INIT_AUTOMAKE([-no-undefined])
+ AM_INIT_AUTOMAKE
+ AM_MAINTAINER_MODE
+--- src/Makefile.am.orig       2010-08-10 20:31:41.000000000 +0100
++++ src/Makefile.am    2010-08-10 20:34:44.000000000 +0100
+@@ -17,6 +17,7 @@
+ lib_LTLIBRARIES     = libmatio.la
+ libmatio_la_SOURCES = snprintf.c endian.c io.c $(ZLIB_SRC) read_data.c \
+                       mat5.c mat4.c mat.c
++libmatio_la_LIBADD  = $(ZLIB_LIBS)
+ 
+ if ENABLE_FORTRAN
+     AM_FCFLAGS             = -I. -I$(top_builddir)/src/fortran
+@@ -25,6 +26,7 @@
+     noinst_HEADERS        += fortran/create.f90 fortran/read_data.f90 \
+                              fortran/write_data.f90 fortran/write.f90
+     libmatio_la_SOURCES   += fortran/matio_internal.c fortran/matio.f90
++$(top_builddir)/src/matio.mod: libmatio.la
+ endif
+ 
+ dosubst = sed -e 's,[@]PACKAGE[@],$(PACKAGE),g' \

diff --git a/sci-libs/matio/matio-1.3.4.ebuild 
b/sci-libs/matio/matio-1.3.4.ebuild
new file mode 100644
index 0000000..5f948f6
--- /dev/null
+++ b/sci-libs/matio/matio-1.3.4.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=3
+inherit autotools eutils fortran-2
+
+DESCRIPTION="Library for reading and writing matlab files"
+HOMEPAGE="http://sourceforge.net/projects/matio/";
+SLOT="0"
+LICENSE="LGPL-2.1"
+KEYWORDS="~amd64 ~x86"
+# disabling (until fix) doxygen doc generation
+IUSE="examples fortran static-libs"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+#DEPEND="doc? ( app-doc/doxygen virtual/latex-base )"
+RDEPEND=""
+
+src_prepare() {
+       epatch "${FILESDIR}"/${P}-autotools.patch
+       eautoreconf
+}
+
+src_configure() {
+       econf \
+               --docdir="${EPREFIX}/usr/share/doc/${PF}" \
+               --enable-shared \
+               --disable-test \
+               $(use_enable fortran) \
+               $(use_enable doc docs) \
+               $(use_enable static-libs static)
+}
+
+src_install() {
+       emake DESTDIR="${D}" install || die "emake install failed"
+       dodoc README ChangeLog
+       #if use doc; then
+       #       insinto /usr/share/doc/${PF}
+       #       doins -r doxygen/html || die
+       #fi
+       if use examples; then
+               insinto /usr/share/doc/${PF}/examples
+               doins test/test* || die
+               insinto /usr/share/${PN}
+               doins share/test* || die
+       fi
+}

diff --git a/sci-libs/matio/metadata.xml b/sci-libs/matio/metadata.xml
new file mode 100644
index 0000000..7e65648
--- /dev/null
+++ b/sci-libs/matio/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+<herd>sci</herd>
+<longdescription lang="en">
+  matio is an ISO C library (with a limited Fortran 90 interface) for
+  reading and writing Matlab MAT files.
+</longdescription>
+</pkgmetadata>

Reply via email to