Github messages for voidlinux
 help / color / mirror / Atom feed
From: tornaria <tornaria@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] New package: threejs-sage-r122
Date: Sun, 03 Apr 2022 17:17:01 +0200	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-36504@inbox.vuxu.org> (raw)

[-- 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/

             reply	other threads:[~2022-04-03 15:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-03 15:17 tornaria [this message]
2022-04-06 13:00 ` [PR PATCH] [Closed]: " tornaria
2022-04-06 13:00 ` tornaria

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-36504@inbox.vuxu.org \
    --to=tornaria@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).