From: dkwo <dkwo@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] new package: mathematica
Date: Tue, 15 Feb 2022 15:01:41 +0100 [thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-35636@inbox.vuxu.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 579 bytes --]
There is a new pull request by dkwo against master on the void-packages repository
https://github.com/dkwo/void-packages mathematica
https://github.com/void-linux/void-packages/pull/35636
new package: mathematica
[ci skip]
This requires a proprietary script to run on x86_64, to be placed in ${FILESDIR}.
I'm not sure it is appropriate to have in the repos.
I welcome comments on possible stupid things I'm doing,
in case others have tried installing Wolfram Mathematica through XBPS.
A patch file from https://github.com/void-linux/void-packages/pull/35636.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-mathematica-35636.patch --]
[-- Type: text/x-diff, Size: 2156 bytes --]
From daa742ba602d2af1cb120aca092ff328c30daa6f Mon Sep 17 00:00:00 2001
From: dkwo <nicolopiazzalunga@gmail.com>
Date: Mon, 14 Feb 2022 13:42:05 +0100
Subject: [PATCH] new package: mathematica
---
srcpkgs/mathematica/template | 52 ++++++++++++++++++++++++++++++++++++
1 file changed, 52 insertions(+)
create mode 100644 srcpkgs/mathematica/template
diff --git a/srcpkgs/mathematica/template b/srcpkgs/mathematica/template
new file mode 100644
index 000000000000..72a24ea4e270
--- /dev/null
+++ b/srcpkgs/mathematica/template
@@ -0,0 +1,52 @@
+# Template file for 'mathematica'
+pkgname=mathematica
+version=13.0.0
+revision=1
+archs="x86_64"
+# depends="libfont fontconfig alsa-lib libXext libglvnd xdg-user-dirs"
+makedepends="tar xz"
+short_desc="Computational software"
+maintainer="dkwo <nicolopiazzalunga@gmail.com>"
+license="custom:Proprietary"
+homepage="https://wolfram.com/mathematica"
+noshlibprovides=yes
+noverifyrdeps=yes
+nopie=yes
+nostrip=yes
+repository=nonfree
+restricted=yes
+python_version=3
+
+_M_BINARIES="MathKernel Mathematica WolframKernel math mathematica mcc wolfram"
+
+do_build() {
+ cp ${FILESDIR}/Mathematica_${version}_BNDL_LINUX.sh Mathematica.sh
+ chmod +x Mathematica.sh
+ sh Mathematica.sh -- \
+ -execdir=${DESTDIR}/usr/bin \
+ -targetdir=${DESTDIR}/opt/Mathematica \
+ -auto
+}
+
+do_install() {
+ # fix permissions
+ chmod -R go-w ${DESTDIR}/*
+ vlicense ${DESTDIR}/opt/Mathematica/LICENSE.txt
+ # remove docs
+ rm -rf ${DESTDIR}/opt/Mathematica/Documentation
+ # remove MacOS- and Windows-specific files
+ cd ${DESTDIR}/opt/Mathematica
+ find AddOns SystemFiles -type d -\( -name Windows -o -name Windows-x86-64 \
+ -o -name MacOSX -o -name MacOSX-x86-64 -\) -exec rm -rv {} +
+ # fix symlinks
+ cd ${DESTDIR}/opt/Mathematica/Executables
+ rm wolframscript
+ ln -s /opt/Mathematica/SystemFiles/Kernel/Binaries/Linux-x86-64/wolframscript
+ cd ${DESTDIR}/usr/bin
+ rm *
+ for _i in ${_M_BINARIES}; do
+ ln -s /opt/Mathematica/Executables/$_i
+ done
+ ln -s /opt/Mathematica/SystemFiles/Kernel/Binaries/Linux-x86-64/ELProver
+ ln -s /opt/Mathematica/SystemFiles/Kernel/Binaries/Linux-x86-64/wolframscript
+}
next reply other threads:[~2022-02-15 14:01 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-15 14:01 dkwo [this message]
2022-02-15 16:47 ` [PR REVIEW] " Chocimier
2022-02-15 16:47 ` Chocimier
2022-02-16 10:53 ` [PR PATCH] [Updated] " dkwo
2022-02-16 10:54 ` [PR REVIEW] " dkwo
2022-02-16 10:55 ` dkwo
2022-02-16 10:56 ` dkwo
2022-02-16 10:56 ` dkwo
2022-02-16 11:01 ` [PR PATCH] [Updated] " dkwo
2022-02-16 11:04 ` dkwo
2022-02-16 19:40 ` [PR PATCH] [Updated] " dkwo
2022-02-17 17:27 ` dkwo
2022-06-24 2:16 ` github-actions
2022-07-09 2:13 ` [PR PATCH] [Closed]: " github-actions
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-35636@inbox.vuxu.org \
--to=dkwo@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).