2021-03-23 14:48:36 +01:00
|
|
|
# Copyright 1999-2021 Gentoo Authors
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
# Keep in mind that PN = scilab-bin
|
|
|
|
|
|
|
|
EAPI=7
|
|
|
|
|
2021-03-23 15:19:07 +01:00
|
|
|
inherit xdg
|
|
|
|
|
2021-03-23 14:48:36 +01:00
|
|
|
DESCRIPTION="Scientific software package for numerical computations"
|
|
|
|
HOMEPAGE="https://www.scilab.org/"
|
|
|
|
SRC_URI="https://www.scilab.org/download/${PV}/scilab-${PV}.bin.linux-x86_64.tar.gz -> ${P}.tar.gz"
|
|
|
|
|
|
|
|
RESTRICT="mirror test"
|
|
|
|
LICENSE="GPL-2"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="-* ~amd64"
|
|
|
|
|
2021-03-23 15:19:07 +01:00
|
|
|
RDEPEND="
|
|
|
|
sci-mathematics/scilab-bin
|
|
|
|
"
|
2021-03-23 14:48:36 +01:00
|
|
|
|
|
|
|
S="${WORKDIR}/scilab-${PV}"
|
|
|
|
|
|
|
|
QA_PREBUILT="*"
|
|
|
|
QA_PRESTRIPPED="${QA_PREBUILT}"
|
|
|
|
|
|
|
|
src_install() {
|
2021-03-23 15:23:31 +01:00
|
|
|
local d
|
|
|
|
for d in ACKNOWLEDGEMENTS COPYING *.md
|
2021-03-23 14:48:36 +01:00
|
|
|
do
|
|
|
|
dodoc "${d}" && rm "${d}"
|
|
|
|
done
|
|
|
|
|
|
|
|
mkdir -p "${D}/usr/bin" || die
|
2021-03-23 15:19:07 +01:00
|
|
|
mkdir -p "${D}/usr/share" || die
|
2021-03-23 14:48:36 +01:00
|
|
|
mkdir -p "${D}/opt/${PN}" || die
|
|
|
|
|
2021-03-23 15:19:07 +01:00
|
|
|
cp -R ./share/applications "${D}/usr/share" || die
|
|
|
|
cp -R ./share/icons "${D}/usr/share" || die
|
|
|
|
|
2021-03-23 14:48:36 +01:00
|
|
|
mv * "${D}/opt/${PN}" || die
|
|
|
|
|
|
|
|
pushd "${D}/usr/bin" >/dev/null || die
|
2021-03-23 15:23:31 +01:00
|
|
|
ln -s ../../opt/"${PN}"/bin/* . || die
|
2021-03-23 14:48:36 +01:00
|
|
|
popd || die
|
|
|
|
}
|