mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 23:52:59 -04:00
no need to add README to DOCS, it is already in default DOCS Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net>
83 lines
1.8 KiB
Bash
83 lines
1.8 KiB
Bash
# Copyright 1999-2020 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
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 \
|
|
http://cdn-fastly.deb.debian.org/debian/pool/main/m/meschach/${PN}_${PV}-14.debian.tar.xz"
|
|
|
|
LICENSE="meschach"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64"
|
|
|
|
IUSE="complex +double float munroll old segmem sparse unroll"
|
|
REQUIRED_USE="
|
|
^^ ( double float )
|
|
"
|
|
|
|
PATCHES=(
|
|
"${WORKDIR}/debian/patches/${PN}_${PV}-13.diff"
|
|
"${WORKDIR}/debian/patches/${PN}_${PV}-13.configure.diff"
|
|
)
|
|
|
|
src_prepare() {
|
|
default
|
|
sed -i -- 's/CFLAGS = -O3 -fPIC/CFLAGS = @CFLAGS@ -fPIC/g' makefile.in
|
|
use old && sed -i -- 's/all: shared static/all: oldpart shared static/g' makefile.in
|
|
mv configure.in configure.ac
|
|
eautoreconf
|
|
}
|
|
|
|
src_configure() {
|
|
myconf=(
|
|
$(use_with complex)
|
|
$(use_with double)
|
|
$(use_with float)
|
|
$(use_with munroll)
|
|
$(use_with segmem)
|
|
$(use_with sparse)
|
|
$(use_with unroll)
|
|
)
|
|
econf "${myconf[@]}"
|
|
}
|
|
|
|
src_compile() {
|
|
emake vers="${VERSION}" DESTDIR="${D}" all
|
|
emake alltorture
|
|
}
|
|
|
|
src_install() {
|
|
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
|
|
|
|
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/.
|
|
einstalldocs
|
|
}
|