Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: threejs-sage-r122
@ 2022-04-03 15:17 tornaria
  2022-04-06 13:00 ` tornaria
  2022-04-06 13:00 ` [PR PATCH] [Closed]: " tornaria
  0 siblings, 2 replies; 3+ messages in thread
From: tornaria @ 2022-04-03 15:17 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1668 bytes --]

There is a new pull request by tornaria against master on the void-packages repository

https://github.com/tornaria/void-packages threejs-sage
https://github.com/void-linux/void-packages/pull/36504

New package: threejs-sage-r122
#### Testing the changes
- I tested the changes in this PR: **YES**

This package was missing before, it is necessary for sagemath to show 3D plots.

Example:
```
sage: cube()
Launched html viewer for Graphics3d Object
```
should launch a browser with a 3d image of a cube that you can interact with (move, rotate, zoom).

Currently it shows a white page.

NOTE: this will require a configuration update to sagemath which I'll do soon as part of #36420. For the time being you can configure the location of threejs using an environment variable (after manually installing `threejs-sage`):
```
$ THREEJS_DIR=/usr/share/sagemath/threejs-sage sage
┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 9.5, Release Date: 2022-01-30                     │
│ Using Python 3.10.4. Type "help()" for help.                       │
└────────────────────────────────────────────────────────────────────┘
sage: cube()
Launched html viewer for Graphics3d Object
```

This also works for me in jupyter notebook.

A patch file from https://github.com/void-linux/void-packages/pull/36504.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-threejs-sage-36504.patch --]
[-- Type: text/x-diff, Size: 1487 bytes --]

From f0dc576e5d5ba869fe4e8f7115f752fa128d579d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Sun, 3 Apr 2022 12:00:11 -0300
Subject: [PATCH] New package: threejs-sage-r122

---
 srcpkgs/threejs-sage/template | 16 ++++++++++++++++
 srcpkgs/threejs-sage/update   |  1 +
 2 files changed, 17 insertions(+)
 create mode 100644 srcpkgs/threejs-sage/template
 create mode 100644 srcpkgs/threejs-sage/update

diff --git a/srcpkgs/threejs-sage/template b/srcpkgs/threejs-sage/template
new file mode 100644
index 000000000000..cb5c87a19c12
--- /dev/null
+++ b/srcpkgs/threejs-sage/template
@@ -0,0 +1,16 @@
+# Template file for 'threejs-sage'
+pkgname=threejs-sage
+version=r122
+revision=1
+short_desc="Custom build of three.js for sagemath"
+maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
+license="MIT"
+homepage="https://github.com/sagemath/threejs-sage/"
+distfiles="https://github.com/sagemath/threejs-sage/archive/refs/tags/${version}.tar.gz"
+checksum=718767ab55876a3e957d1cfe89a322c6d9fa680fc737b9ca668aee6a3eac3bb8
+
+do_install() {
+	vlicense LICENSE
+	vinstall version 644 usr/share/sagemath/threejs-sage
+	vinstall build/three.min.js 644 usr/share/sagemath/threejs-sage/$version
+}
diff --git a/srcpkgs/threejs-sage/update b/srcpkgs/threejs-sage/update
new file mode 100644
index 000000000000..05c0c7ecebe1
--- /dev/null
+++ b/srcpkgs/threejs-sage/update
@@ -0,0 +1 @@
+site=https://mirrors.mit.edu/sage/spkg/upstream/threejs/

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

* Re: New package: threejs-sage-r122
  2022-04-03 15:17 [PR PATCH] New package: threejs-sage-r122 tornaria
@ 2022-04-06 13:00 ` tornaria
  2022-04-06 13:00 ` [PR PATCH] [Closed]: " tornaria
  1 sibling, 0 replies; 3+ messages in thread
From: tornaria @ 2022-04-06 13:00 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 177 bytes --]

New comment by tornaria on void-packages repository

https://github.com/void-linux/void-packages/pull/36504#issuecomment-1090241013

Comment:
This was merged as part of #36420.

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

* Re: [PR PATCH] [Closed]: New package: threejs-sage-r122
  2022-04-03 15:17 [PR PATCH] New package: threejs-sage-r122 tornaria
  2022-04-06 13:00 ` tornaria
@ 2022-04-06 13:00 ` tornaria
  1 sibling, 0 replies; 3+ messages in thread
From: tornaria @ 2022-04-06 13:00 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1510 bytes --]

There's a closed pull request on the void-packages repository

New package: threejs-sage-r122
https://github.com/void-linux/void-packages/pull/36504

Description:
#### Testing the changes
- I tested the changes in this PR: **YES**

This package was missing before, it is necessary for sagemath to show 3D plots.

Example:
```
sage: cube()
Launched html viewer for Graphics3d Object
```
should launch a browser with a 3d image of a cube that you can interact with (move, rotate, zoom).

Currently it shows a white page.

NOTE: this will require a configuration update to sagemath which I'll do soon as part of #36420. For the time being you can configure the location of threejs using an environment variable (after manually installing `threejs-sage`):
```
$ THREEJS_DIR=/usr/share/sagemath/threejs-sage sage
┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 9.5, Release Date: 2022-01-30                     │
│ Using Python 3.10.4. Type "help()" for help.                       │
└────────────────────────────────────────────────────────────────────┘
sage: cube()
Launched html viewer for Graphics3d Object
```

This also works for me in jupyter notebook.

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

end of thread, other threads:[~2022-04-06 13:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-03 15:17 [PR PATCH] New package: threejs-sage-r122 tornaria
2022-04-06 13:00 ` tornaria
2022-04-06 13:00 ` [PR PATCH] [Closed]: " tornaria

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