unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Malte Frank Gerdes <malte.f.gerdes@gmail.com>
To: 43654@debbugs.gnu.org
Subject: [bug#43654] [PATCH] Add perl-opengl
Date: Mon, 05 Oct 2020 10:10:39 +0200	[thread overview]
Message-ID: <86h7r9um80.fsf@gmail.com> (raw)
In-Reply-To: <86pn67xcmn.fsf@gmail.com>

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

In order to run the test.pl file from the official repo those packages
are also needed. Unfortunately i only get a black screen... I'm using
sway so that might make a difference even though xwayland is enabled.

It's also interesting that this app dynamically determines which OpenGL
features and which driver is installed. And juding from the output this
also gets run when perl-opengl is built. 


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: needed-for-perl-opengl-test.patch --]
[-- Type: text/x-patch, Size: 1969 bytes --]

diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm
index 853968f5f1..31ddbb1e54 100644
--- a/gnu/packages/perl.scm
+++ b/gnu/packages/perl.scm
@@ -7931,6 +7931,66 @@ documents within a single file.")
 and FreeGLUT.")
     (license (package-license perl))))
 
+(define-public perl-opengl-shader
+  (package
+    (name "perl-opengl-shader")
+    (version "1.01")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "mirror://cpan/authors/id/B/BF/BFREE/OpenGL-Shader-"
+             version
+             ".tar.gz"))
+       (sha256
+        (base32
+         "0wmd76smyd9qzr3ga86vjhkzjj9ga6prqhyvdi41l1jfk0x82pcz"))))
+    (build-system perl-build-system)
+    (native-inputs
+     `(("xvfb" ,xorg-server-for-tests)))
+    (propagated-inputs
+     `(("perl-opengl" ,perl-opengl)))
+    (arguments
+     '(#:phases
+       (modify-phases %standard-phases
+         (add-before 'check 'pre-check
+           (lambda _
+             ;; Tests require a running X server.
+             (system "Xvfb :1 &")
+             (setenv "DISPLAY" ":1")
+             #t))
+         )))
+    (home-page
+     "https://metacpan.org/release/OpenGL-Shader")
+    (synopsis
+     "empty")
+    (description "empty")
+    (license #f)))
+
+(define-public perl-opengl-image
+  (package
+  (name "perl-opengl-image")
+  (version "1.03")
+  (source
+    (origin
+      (method url-fetch)
+      (uri (string-append
+             "mirror://cpan/authors/id/B/BF/BFREE/OpenGL-Image-"
+             version
+             ".tar.gz"))
+      (sha256
+        (base32
+          "1cf7c0fgba7g3r09y5hbj6ljs6dyjbzaqf9mv3qz807np3msqqa6"))))
+  (build-system perl-build-system)
+  (propagated-inputs
+    `(("perl-opengl" ,perl-opengl)))
+  (home-page
+    "https://metacpan.org/release/OpenGL-Image")
+  (synopsis
+    "empty")
+  (description "empty")
+  (license #f)))
+
 (define-public perl-package-anon
   (package
     (name "perl-package-anon")

[-- Attachment #3: Type: text/plain, Size: 7 bytes --]


Malte

  parent reply	other threads:[~2020-10-05  8:11 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-27 19:06 [bug#43654] [PATCH] Add perl-opengl Malte Frank Gerdes
2020-10-02  4:13 ` Kei Kebreau
2020-10-02 17:59   ` Malte Frank Gerdes
2020-10-02 18:29   ` Andreas Enge
2020-10-02 19:33     ` Malte Frank Gerdes
2020-10-04  8:26       ` Andreas Enge
2020-10-04 12:28         ` Malte Frank Gerdes
2020-10-04 12:32         ` Malte Frank Gerdes
2020-10-05 20:51       ` Andreas Enge
2020-10-05 22:35         ` Andreas Enge
2020-10-05 22:47           ` Andreas Enge
2020-10-05 15:01   ` Malte Frank Gerdes
2020-10-05 20:05     ` Andreas Enge
2020-10-05 20:11     ` Andreas Enge
2020-10-05  8:10 ` Malte Frank Gerdes [this message]
2020-10-07 18:20 ` Malte Frank Gerdes
2020-10-10 13:09   ` bug#43654: " Andreas Enge

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

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86h7r9um80.fsf@gmail.com \
    --to=malte.f.gerdes@gmail.com \
    --cc=43654@debbugs.gnu.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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).