From 994d80f0f918e35a554b64fbfbe03c9ebcf4e48f Mon Sep 17 00:00:00 2001 From: Nils Freydank Date: Thu, 23 Apr 2020 15:15:17 +0200 Subject: [PATCH] sci-mathematics/scilab-bin: Add new ebuild version 6.1.0 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Manifest-Sign-Key: 00EFD31F1B60D5DBADB831C1C0ECE6960E54475B Signed-off-by: Nils Freydank --- sci-mathematics/scilab-bin/Manifest | 23 +++++ sci-mathematics/scilab-bin/metadata.xml | 12 +++ .../scilab-bin/scilab-bin-6.1.0.ebuild | 99 +++++++++++++++++++ 3 files changed, 134 insertions(+) create mode 100644 sci-mathematics/scilab-bin/Manifest create mode 100644 sci-mathematics/scilab-bin/metadata.xml create mode 100644 sci-mathematics/scilab-bin/scilab-bin-6.1.0.ebuild diff --git a/sci-mathematics/scilab-bin/Manifest b/sci-mathematics/scilab-bin/Manifest new file mode 100644 index 0000000..a92dd72 --- /dev/null +++ b/sci-mathematics/scilab-bin/Manifest @@ -0,0 +1,23 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + +DIST scilab-bin-6.1.0-amd64.tar.gz 252985998 BLAKE2B a80b82438f6af4b00465e2501914e0b5c50de4d10773800b85fd0ee91a2c9c230d7fb3ccaa0e36028ffc91ce3269c02aeb99d5d9b731c991516eefe7a380f86e SHA512 4232ecfbcb7e3e2f14991fecc94411e0530053285b680eb1faccea18565bd238efa45a391904e1926982b5a1dd50cfbf3f2703db214cba09b8fab63d1f219346 +DIST scilab-bin-6.1.0-x86.tar.gz 255654950 BLAKE2B e7b15efb06c4095054942fcebdd41b354c93476fa63ac28c023d92b3589afaa9ae44f72d92f7b234a92893731afd12110b135f702ae96a2b035add4bb7de455c SHA512 93345f93364c171005d4cf90c7a2e8bb2ca968f62b6fc789d3084f3e2a01ef66b579edb5379eea7dc50a9a3c2c0ae31081cc29efe4df39beaa414b23eb5b2d9a +-----BEGIN PGP SIGNATURE----- + +iQKTBAEBCAB9FiEEcg3s4uUa4XE72XWQvF3CmYqtKyEFAl6hlMhfFIAAAAAALgAo +aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDcy +MERFQ0UyRTUxQUUxNzEzQkQ5NzU5MEJDNURDMjk5OEFBRDJCMjEACgkQvF3CmYqt +KyHKdw/+Kxtz3pY7wkogewUjXBN4jh1/EruR0lVB3kyMHAO1IkweaICnTuy3RC07 +me+U4RUKWRCCW8+FdoLk82g/WBIPW3bbOblukwGFsqiCPSzin8xqQcHZ+dLFw+lk +xJqwNMStrgLRmBXEEuqA932FstyoFVJ+6G8Hu0zUe+b9M4ceoZc6hN+esi6+0/AC +h3ItXATtPCxPX8kXS5Uv7a22YcJmoQBlRV2S3p0j2IP37HPo2+0n67uVvnutlvr/ +Oh/D1DCh6vHve2RLWLBZyL7QK+mFa5woBuQ3NZ52++QX7jcOBVF2pLEn5IQYLTCc +RGM6fG8xwMl66w3GUGpU6/HX8dN5OfkJhuJLVmJKQBGb7UxADZ3msfkECFMwYXyV +FQdJkWYJOslMJt8GSfZ3riNRQbg0jVXbb15MDd5sItE5OcO67ZKhz4mtpCMEM365 +68S+5co9j78yw0hbGuadzn2HC2sGkXAQE5PZ0071Gb/mnmntgXqv7Ap7mYQEG+Yc +O5sxEoQ88HJOzekNUEvWa1NXnBYDxgOR+PTKC/SxxGcVq2B/+pMk+LKR5GI8Xlvo +Xc+9UYdX2Iuibj+FvtutIx1qjvMU54JFvbzLNRmcAfO+gCrYrS4cBM1x078dYzlx +2CtQsIif+vpib6UmfCJsvARvp3mBSiQtN3plOmU+B7/Mq6xSQ4U= +=1LAJ +-----END PGP SIGNATURE----- diff --git a/sci-mathematics/scilab-bin/metadata.xml b/sci-mathematics/scilab-bin/metadata.xml new file mode 100644 index 0000000..a60644e --- /dev/null +++ b/sci-mathematics/scilab-bin/metadata.xml @@ -0,0 +1,12 @@ + + + + + holgersson@posteo.de + Nils Freydank + + + https://help.scilab.org/docs/6.1.0/en_US/CHANGES.html + https://bugzilla.scilab.org/ + + diff --git a/sci-mathematics/scilab-bin/scilab-bin-6.1.0.ebuild b/sci-mathematics/scilab-bin/scilab-bin-6.1.0.ebuild new file mode 100644 index 0000000..9875eba --- /dev/null +++ b/sci-mathematics/scilab-bin/scilab-bin-6.1.0.ebuild @@ -0,0 +1,99 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +DESCRIPTION="Open source software for numerical computation" +HOMEPAGE="https://scilab.org" +MY_PN="${PN/-bin/}" +SRC_URI=" + amd64? ( https://www.scilab.org/download/${PV}/${MY_PN}-${PV}.bin.linux-x86_64.tar.gz -> ${P}-amd64.tar.gz ) + x86? ( https://www.scilab.org/download/${PV}/${MY_PN}-${PV}.bin.linux-i686.tar.gz -> ${P}-x86.tar.gz ) +" +# GPL-2 since 6.0.0 according to scilab.org, BCL for the thirdparty JAVA deps +# and the old BSD plus CeCILL-2.1 licensing from versions < 6.0.0 remain. +LICENSE=" + BSD + || ( + GPL-2 + CeCILL-2.1 + ) + BCL-for-JAVA-SE +" +RESTRICT="mirror strip test" +SLOT="0" + +# Upstream provides precompiled binaries for both x86 arches, but the +# source code is also freely available, so for other arches source based +# packages might be of interest. +KEYWORDS="-* ~amd64 ~x86" +IUSE="" + +DEPEND="!sci-mathematics/scilab" +RDEPEND=" + ${DEPEND} + sys-libs/ncurses-compat +" +BDEPEND="" + +S="${WORKDIR}/${MY_PN}-${PV}" +DOCS=( ACKNOWLEDGEMENTS CHANGES.md README.md ) + +QA_PREBUILT=" + opt/${MY_PN}-${PV}/bin/* + opt/${MY_PN}-${PV}/lib/* + opt/${MY_PN}-${PV}/thirdparty/* +" + +src_prepare() { + # Adopt every entry to opt/ + sed -i "s#Exec=#Exec=/opt/${P}/bin/#" share/applications/*.desktop || die + + # Adopt the base dir of scilab. + sed -i "s#SCIBINARYBASE=$(pwd)#SCIBINARYBASE=/opt/${P}/#" bin/scilab || die + + # Appdata should not be installed anymore according to a QA warning. + rm -r share/appdata || die + + # Remove redundant information. Note that we explictly have our licenses + # in a separate licensing file. In case this is against any licensing + # condition please file a bug! + rm share/scilab/{ACKNOWLEDGEMENTS,CHANGES.md,COPYING,README.md} || die + rm COPYING || die + + default +} + +src_install() { + # Install the header files into /usr/include/scilab/. + doheader -r include/scilab + + # Install the actual binaries into /opt/${P}/bin/. + into /opt/${P}/ + dobin bin/* + rm -r bin || die + + # Install the library files into opt/${P}/lib/{scilab,thirdparty}/. + insinto /opt/${P}/lib/ + cd lib || die + doins -r scilab + doins -r thirdparty + cd ../ || die + rm -r lib || die + + # Install thirdparty java stuff into /opt/${P}/thirdparty/. + insinto "/opt/${P}/" + doins -r thirdparty + rm -r thirdparty || die + + # Install the scilab dir into /opt/${P}, but the rest of the files into + # /usr/ subdirectories for icons etc. Symlinks provide no real benefit here. + insinto "/opt/${P}/share" + doins -r share/scilab + + rm -r share/scilab || die + + insinto /usr/share + doins -r share/* + rm -r share || die +}