Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] new package: mathematica
@ 2022-02-15 14:01 dkwo
  2022-02-15 16:47 ` [PR REVIEW] " Chocimier
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: dkwo @ 2022-02-15 14:01 UTC (permalink / raw)
  To: ml

[-- 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
+}

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2022-07-09  2:13 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-15 14:01 [PR PATCH] new package: mathematica dkwo
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

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).