* [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
* Re: [PR REVIEW] new package: mathematica
2022-02-15 14:01 [PR PATCH] new package: mathematica dkwo
@ 2022-02-15 16:47 ` Chocimier
2022-02-15 16:47 ` Chocimier
` (11 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: Chocimier @ 2022-02-15 16:47 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 168 bytes --]
New review comment by Chocimier on void-packages repository
https://github.com/void-linux/void-packages/pull/35636#discussion_r807056730
Comment:
Why to remove docs?
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PR REVIEW] new package: mathematica
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
` (10 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: Chocimier @ 2022-02-15 16:47 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 175 bytes --]
New review comment by Chocimier on void-packages repository
https://github.com/void-linux/void-packages/pull/35636#discussion_r807056456
Comment:
These are hostmakedepends.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PR PATCH] [Updated] new package: mathematica
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 ` dkwo
2022-02-16 10:54 ` [PR REVIEW] " dkwo
` (9 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: dkwo @ 2022-02-16 10:53 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 584 bytes --]
There is an updated 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: 2405 bytes --]
From d97ba42216807db22fca62e7e44aa39abd50df3e 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 | 59 ++++++++++++++++++++++++++++++++++++
1 file changed, 59 insertions(+)
create mode 100644 srcpkgs/mathematica/template
diff --git a/srcpkgs/mathematica/template b/srcpkgs/mathematica/template
new file mode 100644
index 000000000000..74c7e565f376
--- /dev/null
+++ b/srcpkgs/mathematica/template
@@ -0,0 +1,59 @@
+# 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"
+hostmakedepends="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
+
+build_options="nodocs"
+build_options_default="nodocs"
+desc_option_nodocs="Remove documentation (saves 6GB+)"
+
+_M_BINARIES="MathKernel Mathematica WolframKernel math mathematica mcc wolfram"
+
+do_build() {
+ if [ ! -f ${FILESDIR}/Mathematica_${version}_BNDL_LINUX.sh ]; then
+ echo 'please provide the installer script'
+ return 1
+ fi
+ 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
+ vopt_if nodocs 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
* Re: [PR REVIEW] new package: mathematica
2022-02-15 14:01 [PR PATCH] new package: mathematica dkwo
` (2 preceding siblings ...)
2022-02-16 10:53 ` [PR PATCH] [Updated] " dkwo
@ 2022-02-16 10:54 ` dkwo
2022-02-16 10:55 ` dkwo
` (8 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: dkwo @ 2022-02-16 10:54 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 184 bytes --]
New review comment by dkwo on void-packages repository
https://github.com/void-linux/void-packages/pull/35636#discussion_r807797665
Comment:
Just to save space. I made it an option.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: new package: mathematica
2022-02-15 14:01 [PR PATCH] new package: mathematica dkwo
` (3 preceding siblings ...)
2022-02-16 10:54 ` [PR REVIEW] " dkwo
@ 2022-02-16 10:55 ` dkwo
2022-02-16 10:56 ` dkwo
` (7 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: dkwo @ 2022-02-16 10:55 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 528 bytes --]
New comment by dkwo on void-packages repository
https://github.com/void-linux/void-packages/pull/35636#issuecomment-1041362519
Comment:
> If it is meant for people to provide their own installer, it is at edge of being acceptable. But then it should error out with helpful message when file is not there.
Thanks, I added a build optino and message.
Indeed, it is as you say, and I understand it is borderline acceptable.
I mainly wanted to check I'm not doing anything stupid, and though it may be useful to other users.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: new package: mathematica
2022-02-15 14:01 [PR PATCH] new package: mathematica dkwo
` (4 preceding siblings ...)
2022-02-16 10:55 ` dkwo
@ 2022-02-16 10:56 ` dkwo
2022-02-16 10:56 ` dkwo
` (6 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: dkwo @ 2022-02-16 10:56 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 528 bytes --]
New comment by dkwo on void-packages repository
https://github.com/void-linux/void-packages/pull/35636#issuecomment-1041362519
Comment:
> If it is meant for people to provide their own installer, it is at edge of being acceptable. But then it should error out with helpful message when file is not there.
Thanks, I added a build option and message.
Indeed, it is as you say, and I understand it is borderline acceptable.
I mainly wanted to check I'm not doing anything stupid, and though it may be useful to other users.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: new package: mathematica
2022-02-15 14:01 [PR PATCH] new package: mathematica dkwo
` (5 preceding siblings ...)
2022-02-16 10:56 ` dkwo
@ 2022-02-16 10:56 ` dkwo
2022-02-16 11:01 ` [PR PATCH] [Updated] " dkwo
` (5 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: dkwo @ 2022-02-16 10:56 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 529 bytes --]
New comment by dkwo on void-packages repository
https://github.com/void-linux/void-packages/pull/35636#issuecomment-1041362519
Comment:
> If it is meant for people to provide their own installer, it is at edge of being acceptable. But then it should error out with helpful message when file is not there.
Thanks, I added a build option and message.
Indeed, it is as you say, and I understand it is borderline acceptable.
I mainly wanted to check I'm not doing anything stupid, and thought it may be useful to other users.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PR PATCH] [Updated] new package: mathematica
2022-02-15 14:01 [PR PATCH] new package: mathematica dkwo
` (6 preceding siblings ...)
2022-02-16 10:56 ` dkwo
@ 2022-02-16 11:01 ` dkwo
2022-02-16 11:04 ` dkwo
` (4 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: dkwo @ 2022-02-16 11:01 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 588 bytes --]
There is an updated 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: 2410 bytes --]
From 26596aa417228215c70bf13c2e1b351579ba6637 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 | 59 ++++++++++++++++++++++++++++++++++++
1 file changed, 59 insertions(+)
create mode 100644 srcpkgs/mathematica/template
diff --git a/srcpkgs/mathematica/template b/srcpkgs/mathematica/template
new file mode 100644
index 000000000000..6066a507a40c
--- /dev/null
+++ b/srcpkgs/mathematica/template
@@ -0,0 +1,59 @@
+# 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"
+hostmakedepends="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
+
+build_options="nodocs"
+build_options_default="nodocs"
+desc_option_nodocs="Remove documentation (saves 6GB+)"
+
+_M_BINARIES="MathKernel Mathematica WolframKernel math mathematica mcc wolfram"
+
+do_build() {
+ if [ ! -f ${FILESDIR}/Mathematica_${version}_BNDL_LINUX.sh ]; then
+ echo 'please provide the installer script'
+ return 1
+ fi
+ 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
+ $(vopt_if nodocs "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
* Re: new package: mathematica
2022-02-15 14:01 [PR PATCH] new package: mathematica dkwo
` (7 preceding siblings ...)
2022-02-16 11:01 ` [PR PATCH] [Updated] " dkwo
@ 2022-02-16 11:04 ` dkwo
2022-02-16 19:40 ` [PR PATCH] [Updated] " dkwo
` (3 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: dkwo @ 2022-02-16 11:04 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 439 bytes --]
New comment by dkwo on void-packages repository
https://github.com/void-linux/void-packages/pull/35636#issuecomment-1041369224
Comment:
One remark is that symlinks have permissions
```
ls -la /usr/bin/mathematica
lrwxrwxrwx 1 root root 40 Feb 15 11:34 /usr/bin/mathematica -> /opt/Mathematica/Executables/mathematica
```
while the actual files they point to have correct permissions.
I assumed this is fine, but please correct me.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PR PATCH] [Updated] new package: mathematica
2022-02-15 14:01 [PR PATCH] new package: mathematica dkwo
` (8 preceding siblings ...)
2022-02-16 11:04 ` dkwo
@ 2022-02-16 19:40 ` dkwo
2022-02-17 17:27 ` dkwo
` (2 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: dkwo @ 2022-02-16 19:40 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 588 bytes --]
There is an updated 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: 2514 bytes --]
From 548edc2b41f7e8300a9fc959097454f4ae658115 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 | 61 ++++++++++++++++++++++++++++++++++++
1 file changed, 61 insertions(+)
create mode 100644 srcpkgs/mathematica/template
diff --git a/srcpkgs/mathematica/template b/srcpkgs/mathematica/template
new file mode 100644
index 000000000000..20b79c34eb0b
--- /dev/null
+++ b/srcpkgs/mathematica/template
@@ -0,0 +1,61 @@
+# Template file for 'mathematica'
+pkgname=mathematica
+version=13.0.0
+revision=1
+archs="x86_64"
+hostmakedepends="tar xz"
+depends="$(vopt_if notebook 'alsa-lib xdg-user-dirs xorg')"
+# probably less than full xorg is actualy enough
+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
+
+build_options="nodocs notebook"
+build_options_default="nodocs"
+desc_option_nodocs="Remove documentation (saves 6GB+)"
+desc_option_notebook="Add dependecies to run notebook"
+
+_M_BINARIES="MathKernel Mathematica WolframKernel math mathematica mcc wolfram"
+
+do_build() {
+ if [ ! -f ${FILESDIR}/Mathematica_${version}_BNDL_LINUX.sh ]; then
+ echo 'please provide the installer script'
+ return 1
+ fi
+ 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
+ $(vopt_if nodocs "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
* Re: [PR PATCH] [Updated] new package: mathematica
2022-02-15 14:01 [PR PATCH] new package: mathematica dkwo
` (9 preceding siblings ...)
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
12 siblings, 0 replies; 14+ messages in thread
From: dkwo @ 2022-02-17 17:27 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 588 bytes --]
There is an updated 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: 2468 bytes --]
From e1520101966887c4163ef3a0ee5d377a14c76037 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 | 60 ++++++++++++++++++++++++++++++++++++
1 file changed, 60 insertions(+)
create mode 100644 srcpkgs/mathematica/template
diff --git a/srcpkgs/mathematica/template b/srcpkgs/mathematica/template
new file mode 100644
index 000000000000..fb280b295b08
--- /dev/null
+++ b/srcpkgs/mathematica/template
@@ -0,0 +1,60 @@
+# Template file for 'mathematica'
+pkgname=mathematica
+version=13.0.0
+revision=1
+archs="x86_64"
+hostmakedepends="tar xz"
+depends="$(vopt_if notebook 'alsa-lib xdg-user-dirs mesa-dri')"
+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
+
+build_options="nodocs notebook"
+build_options_default="nodocs"
+desc_option_nodocs="Remove documentation (saves 6GB+)"
+desc_option_notebook="Add dependecies to run notebook"
+
+_M_BINARIES="MathKernel Mathematica WolframKernel math mathematica mcc wolfram"
+
+do_build() {
+ if [ ! -f ${FILESDIR}/Mathematica_${version}_BNDL_LINUX.sh ]; then
+ echo 'please provide the installer script'
+ return 1
+ fi
+ 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
+ $(vopt_if nodocs "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
* Re: new package: mathematica
2022-02-15 14:01 [PR PATCH] new package: mathematica dkwo
` (10 preceding siblings ...)
2022-02-17 17:27 ` dkwo
@ 2022-06-24 2:16 ` github-actions
2022-07-09 2:13 ` [PR PATCH] [Closed]: " github-actions
12 siblings, 0 replies; 14+ messages in thread
From: github-actions @ 2022-06-24 2:16 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 305 bytes --]
New comment by github-actions[bot] on void-packages repository
https://github.com/void-linux/void-packages/pull/35636#issuecomment-1165111337
Comment:
Pull Requests become stale 90 days after last activity and are closed 14 days after that. If this pull request is still relevant bump it or assign it.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PR PATCH] [Closed]: new package: mathematica
2022-02-15 14:01 [PR PATCH] new package: mathematica dkwo
` (11 preceding siblings ...)
2022-06-24 2:16 ` github-actions
@ 2022-07-09 2:13 ` github-actions
12 siblings, 0 replies; 14+ messages in thread
From: github-actions @ 2022-07-09 2:13 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 434 bytes --]
There's a closed pull request on the void-packages repository
new package: mathematica
https://github.com/void-linux/void-packages/pull/35636
Description:
[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.
^ 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).