GNU bug report logs - #30133
[PATCH 0/2] gnu: Add eureka and make it find freedoom.

Previous Next

Package: guix-patches;

Reported by: nee <nee <at> cock.li>

Date: Mon, 15 Jan 2018 22:19:01 UTC

Severity: normal

Tags: patch

Done: ludo <at> gnu.org (Ludovic Courtès)

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 30133 in the body.
You can then email your comments to 30133 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#30133; Package guix-patches. (Mon, 15 Jan 2018 22:19:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to nee <nee <at> cock.li>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Mon, 15 Jan 2018 22:19:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: nee <nee <at> cock.li>
To: guix-patches <at> gnu.org
Subject: [PATCH 0/2] gnu: Add eureka and make it find freedoom.
Date: Mon, 15 Jan 2018 23:17:28 +0100
Hello, this should be testable by running `guix environment --ad-hoc
freedoom eureka`. Then start eureka and it should show up with the first
map of freedoom loaded and ready to be edited.




Information forwarded to guix-patches <at> gnu.org:
bug#30133; Package guix-patches. (Mon, 15 Jan 2018 22:22:02 GMT) Full text and rfc822 format available.

Message #8 received at 30133 <at> debbugs.gnu.org (full text, mbox):

From: nee <at> cock.li
To: 30133 <at> debbugs.gnu.org
Cc: nee <nee.git <at> cock.li>
Subject: [PATCH 1/2] gnu: freedom: add native search-paths.
Date: Mon, 15 Jan 2018 23:21:19 +0100
From: nee <nee.git <at> cock.li>

* gnu/packages/games.scm (freedoom) [native-search-paths]: Set DOOMWADDIR and
  DOOMWADPATH, so source ports and map editors can find the freedoom IWAD.
---
 gnu/packages/games.scm | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 288db49f5..1213d87a5 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -348,6 +348,13 @@ tired of cows, a variety of other ASCII-art messengers are available.")
     `(("prboom-plus" ,prboom-plus)))
    (home-page "https://freedoom.github.io/")
    (synopsis "Free content game based on the Doom engine")
+   (native-search-paths
+    (list (search-path-specification
+           (variable "DOOMWADDIR")
+           (files '("share/games/doom")))
+          (search-path-specification
+           (variable "DOOMWADPATH")
+           (files '("share/games/doom")))))
    (description
     "The Freedoom project aims to create a complete free content first person
 shooter game.  Freedoom by itself is just the raw material for a game: it must
-- 
2.15.1





Information forwarded to guix-patches <at> gnu.org:
bug#30133; Package guix-patches. (Mon, 15 Jan 2018 22:22:02 GMT) Full text and rfc822 format available.

Message #11 received at 30133 <at> debbugs.gnu.org (full text, mbox):

From: nee <at> cock.li
To: 30133 <at> debbugs.gnu.org
Cc: nee <nee.git <at> cock.li>
Subject: [PATCH 2/2] gnu: Add eureka.
Date: Mon, 15 Jan 2018 23:21:20 +0100
From: nee <nee.git <at> cock.li>

* gnu/packages/game-development.scm (eureka): New variable.
---
 gnu/packages/game-development.scm | 53 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 53 insertions(+)

diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm
index 363d9a253..7c624a397 100644
--- a/gnu/packages/game-development.scm
+++ b/gnu/packages/game-development.scm
@@ -45,6 +45,7 @@
   #:use-module (gnu packages curl)
   #:use-module (gnu packages databases)
   #:use-module (gnu packages documentation)
+  #:use-module (gnu packages fltk)
   #:use-module (gnu packages fonts)
   #:use-module (gnu packages fontutils)
   #:use-module (gnu packages freedesktop)
@@ -1150,3 +1151,55 @@ features design tools such as a visual editor, can import 3D models and
 provide high-quality 3D rendering, it contains an animation editor, and can be
 scripted in a Python-like language.")
     (license license:expat)))
+
+(define-public eureka
+  (package
+    (name "eureka")
+    (version "1.21")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "mirror://sourceforge/eureka-editor/Eureka/"
+                                  version "/eureka-"
+                                  ;; version without dots e.g 1.21 => 121
+                                  (string-join (string-split version #\.) "")
+                                  "-source.tar.gz"))
+              (sha256
+               (base32
+                "1a7pf7xi56fcz7jc8layih5gq5m66g2ss4x5j61kzgip07j6rkir"))))
+    (build-system gnu-build-system)
+    (arguments
+     '(#:tests? #f
+       #:make-flags
+       (let ((out (assoc-ref %outputs "out")))
+         (list (string-append "PREFIX=" out)))
+       #:phases
+       (modify-phases %standard-phases
+         (delete 'configure)
+         (add-before 'build 'prepare-install-directories
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let ((out (assoc-ref outputs "out")))
+               (mkdir-p (string-append out "/bin"))
+               (mkdir-p (string-append out "/share"))
+
+               (with-fluids ((%default-port-encoding #f))
+                 (substitute* "./src/main.cc"
+                   (("/usr/local") out)))
+
+               (substitute* "Makefile"
+                 (("-o root") ""))))))))
+    (inputs `(("mesa" ,mesa)
+              ("libxft" ,libxft)
+              ("libxinerama" ,libxinerama)
+              ("libfontconfig" ,fontconfig)
+              ("libjpeg" ,libjpeg)
+              ("libpng" ,libpng)
+              ("fltk" ,fltk)
+              ("zlib" ,zlib)))
+    (native-inputs `(("pkg-config" ,pkg-config)
+                     ("xdg-utils" ,xdg-utils)))
+    (synopsis "Doom map editor")
+    (description "Eureka is a map editor for the classic DOOM games, and a few
+related games such as Heretic and Hexen.  It comes with a 3d preview mode and
+a 2D editor view.")
+    (home-page "http://eureka-editor.sourceforge.net/")
+    (license license:gpl2+)))
-- 
2.15.1





Information forwarded to guix-patches <at> gnu.org:
bug#30133; Package guix-patches. (Tue, 16 Jan 2018 14:50:02 GMT) Full text and rfc822 format available.

Message #14 received at 30133 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: nee <at> cock.li
Cc: nee <nee.git <at> cock.li>, 30133 <at> debbugs.gnu.org
Subject: Re: [bug#30133] [PATCH 1/2] gnu: freedom: add native search-paths.
Date: Tue, 16 Jan 2018 15:49:03 +0100
nee <at> cock.li skribis:

> From: nee <nee.git <at> cock.li>
>
> * gnu/packages/games.scm (freedoom) [native-search-paths]: Set DOOMWADDIR and
>   DOOMWADPATH, so source ports and map editors can find the freedoom IWAD.

Applied, thanks!

Ludo'.




Reply sent to ludo <at> gnu.org (Ludovic Courtès):
You have taken responsibility. (Tue, 16 Jan 2018 14:55:02 GMT) Full text and rfc822 format available.

Notification sent to nee <nee <at> cock.li>:
bug acknowledged by developer. (Tue, 16 Jan 2018 14:55:04 GMT) Full text and rfc822 format available.

Message #19 received at 30133-done <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: nee <at> cock.li
Cc: nee <nee.git <at> cock.li>, 30133-done <at> debbugs.gnu.org
Subject: Re: [bug#30133] [PATCH 2/2] gnu: Add eureka.
Date: Tue, 16 Jan 2018 15:54:54 +0100
nee <at> cock.li skribis:

> From: nee <nee.git <at> cock.li>
>
> * gnu/packages/game-development.scm (eureka): New variable.

Applied!

“guix environment --ad-hoc freedoom eureka -- eureka” works for me (and
it’s super fast).

Thanks,
Ludo’.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 14 Feb 2018 12:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 7 years and 186 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.