diff --git a/sci-libs/meschach/meschach-1.2b.ebuild b/sci-libs/meschach/meschach-1.2b.ebuild
index b7a301721c..5cf39ebceb 100644
--- a/sci-libs/meschach/meschach-1.2b.ebuild
+++ b/sci-libs/meschach/meschach-1.2b.ebuild
@@ -5,6 +5,9 @@ EAPI="7"
inherit autotools eutils
+MAJOR="$(ver_cut 1)"
+VERSION="$(ver_cut 1-2)"
+
DESCRIPTION="Meschach is a C-language library of routines for performing matrix computations."
HOMEPAGE="http://homepage.divms.uiowa.edu/~dstewart/meschach"
SRC_URI="http://cdn-fastly.deb.debian.org/debian/pool/main/m/meschach/${PN}_${PV}.orig.tar.gz \
@@ -13,8 +16,7 @@ http://cdn-fastly.deb.debian.org/debian/pool/main/m/meschach/${PN}_${PV}-14.debi
LICENSE="meschach"
SLOT="0"
KEYWORDS="~amd64"
-IUSE="complex +double float munroll old segmem sparse test unroll"
-RESTRICT="!test? ( test )"
+IUSE="complex +double float munroll old segmem sparse unroll"
REQUIRED_USE="
^^ ( double float )
"
@@ -24,6 +26,8 @@ PATCHES=(
"${WORKDIR}/debian/patches/${PN}_${PV}-13.configure.diff"
)
+DOCS=( README )
+
src_prepare() {
default
sed -i -- 's/CFLAGS = -O3 -fPIC/CFLAGS = @CFLAGS@ -fPIC/g' makefile.in
@@ -47,27 +51,30 @@ src_configure() {
}
src_compile() {
- emake DESTDIR="${D}" all
- use test && emake alltorture
+ emake vers="${VERSION}" DESTDIR="${D}" all
+ emake alltorture
}
src_install() {
- dolib.so libmeschach.so
- insinto /usr/include/meschach
+ ln -s "lib${PN}.so" "lib${PN}.so.${MAJOR}"
+ ln -s "lib${PN}.so.${MAJOR}" "lib${PN}.so.${VERSION}"
+
+ dolib.so "lib${PN}.so"
+ dolib.so "lib${PN}.so.${MAJOR}"
+ dolib.so "lib${PN}.so.${VERSION}"
+ insinto "/usr/include/${PN}"
doins *.h
- use test && dodir /usr/libexec/meschach
- use test && exeinto /usr/libexec/meschach
- use test && doexe iotort
- use test && doexe itertort
- use test && doexe macheps
- use test && doexe maxint
- use test && doexe memtort
- use test && doexe mfuntort
- use test && doexe sptort
- use test && doexe torture
- use test && doexe ztorture
- use test && insinto /usr/libexec/meschach
- use test && doins *.dat
+ exeinto "/usr/libexec/${PN}"
+ doexe iotort
+ doexe itertort
+ doexe macheps
+ doexe maxint
+ doexe memtort
+ doexe mfuntort
+ doexe sptort
+ doexe torture
+ doexe ztorture
+ insinto "/usr/share/${P}"
+ doins *.dat
dodoc -r DOC/.
- dodoc README
}
diff --git a/sci-libs/meschach/metadata.xml b/sci-libs/meschach/metadata.xml
index fc8c04d33f..fde1c14447 100644
--- a/sci-libs/meschach/metadata.xml
+++ b/sci-libs/meschach/metadata.xml
@@ -35,7 +35,6 @@ allocation/deallocation of memory.
build no longer supported functions
should be set if you are working with a machine or compiler that does not allow large arrays to be allocated. See README
incorporate sparse matrix functions
- build test programs
unroll low level loops on vectors