unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#28049] [PATCH] gnu: Add mygui.
@ 2017-08-11 16:58 manolis837
  2017-08-12 20:54 ` Alex Kost
  0 siblings, 1 reply; 3+ messages in thread
From: manolis837 @ 2017-08-11 16:58 UTC (permalink / raw)
  To: 28049

From: Manolis Ragkousis <manolis837@gmail.com>

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

diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm
index c98c15e46..1cba882a2 100644
--- a/gnu/packages/game-development.scm
+++ b/gnu/packages/game-development.scm
@@ -9,6 +9,7 @@
 ;;; Copyright © 2016 Ricardo Wurmus <rekado@elephly.net>
 ;;; Copyright © 2016, 2017 Julian Graham <joolean@gmail.com>
 ;;; Copyright © 2017 Tobias Geerinckx-Rice <me@tobias.gr>
+;;; Copyright © 2017 Manolis Fragkiskos Ragkousis <manolis837@gmail.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -40,11 +41,14 @@
   #:use-module (gnu packages curl)
   #:use-module (gnu packages databases)
   #:use-module (gnu packages documentation)
+  #:use-module (gnu packages fonts)
   #:use-module (gnu packages fontutils)
   #:use-module (gnu packages freedesktop)
   #:use-module (gnu packages fribidi)
   #:use-module (gnu packages glib)
   #:use-module (gnu packages gnunet)
+  #:use-module (gnu packages graphics)
+  #:use-module (gnu packages graphviz)
   #:use-module (gnu packages guile)
   #:use-module (gnu packages m4)
   #:use-module (gnu packages multiprecision)
@@ -934,3 +938,43 @@ Joysticks, etc) and feedback devices (e.g. force feedback).  Meant to be very
 robust and compatible with many systems and operating systems.")
     (home-page "https://github.com/wgois/OIS")
     (license license:zlib)))
+
+(define-public mygui
+  (package
+    (name "mygui")
+    (version "3.2.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri
+        (string-append "https://github.com/MyGUI/" name
+                       "/archive/MyGUI" version ".tar.gz"))
+     (sha256
+      (base32
+       "13x7cydmj7gjmsg702sqjbfi53z265iv6j7binv3r6a7ibndfa0a"))))
+    (build-system cmake-build-system)
+    (arguments
+     '(#:tests? #f                      ; No test target
+       #:configure-flags
+       (list "-DMYGUI_INSTALL_DOCS=TRUE"
+             (string-append "-DOGRE_INCLUDE_DIR="
+                            (assoc-ref %build-inputs "ogre")
+                            "/include/OGRE"))))
+    (native-inputs
+     `(("boost" ,boost)
+       ("doxygen" ,doxygen)
+       ("pkg-config" ,pkg-config)))
+    (inputs
+     `(("font-dejavu" ,font-dejavu)
+       ("freetype" ,freetype)
+       ("graphviz" ,graphviz)
+       ("libx11" ,libx11)
+       ("ogre" ,ogre)
+       ("ois" ,ois)))
+    (synopsis "Fast, flexible and simple GUI")
+    (description
+     "MyGUI is a library for creating Graphical User Interfaces (GUIs) for games
+and 3D applications.  The main goals of mygui are: speed, flexibility and ease
+of use.")
+    (home-page "http://mygui.info/")
+    (license license:expat)))
-- 
2.13.4

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

* [bug#28049] [PATCH] gnu: Add mygui.
  2017-08-11 16:58 [bug#28049] [PATCH] gnu: Add mygui manolis837
@ 2017-08-12 20:54 ` Alex Kost
  2017-08-17 17:08   ` bug#28049: " Manolis Ragkousis
  0 siblings, 1 reply; 3+ messages in thread
From: Alex Kost @ 2017-08-12 20:54 UTC (permalink / raw)
  To: manolis837; +Cc: 28049

manolis837@gmail.com (2017-08-11 19:58 +0300) wrote:

[...]
> +(define-public mygui
> +  (package
> +    (name "mygui")
> +    (version "3.2.2")
> +    (source
> +     (origin
> +       (method url-fetch)
> +       (uri
> +        (string-append "https://github.com/MyGUI/" name
> +                       "/archive/MyGUI" version ".tar.gz"))
> +     (sha256
> +      (base32
> +       "13x7cydmj7gjmsg702sqjbfi53z265iv6j7binv3r6a7ibndfa0a"))))

Please shift these 3 lines to the right to place "(sha256" right under
"(uri".

In case you didn't know (and if you use Emacs) you can indent the whole
package definition by moving the point to its beginning (to
"(define-public...") and pressing "C-M-q" ("indent-pp-sexp" command).

As for the package itself, I don't have any comments (I mean it looks
good to me), thanks!

> +    (build-system cmake-build-system)
> +    (arguments
> +     '(#:tests? #f                      ; No test target
> +       #:configure-flags
> +       (list "-DMYGUI_INSTALL_DOCS=TRUE"
> +             (string-append "-DOGRE_INCLUDE_DIR="
> +                            (assoc-ref %build-inputs "ogre")
> +                            "/include/OGRE"))))
> +    (native-inputs
> +     `(("boost" ,boost)
> +       ("doxygen" ,doxygen)
> +       ("pkg-config" ,pkg-config)))
> +    (inputs
> +     `(("font-dejavu" ,font-dejavu)
> +       ("freetype" ,freetype)
> +       ("graphviz" ,graphviz)
> +       ("libx11" ,libx11)
> +       ("ogre" ,ogre)
> +       ("ois" ,ois)))
> +    (synopsis "Fast, flexible and simple GUI")
> +    (description
> +     "MyGUI is a library for creating Graphical User Interfaces (GUIs) for games
> +and 3D applications.  The main goals of mygui are: speed, flexibility and ease
> +of use.")
> +    (home-page "http://mygui.info/")
> +    (license license:expat)))

-- 
Alex

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

* bug#28049: [PATCH] gnu: Add mygui.
  2017-08-12 20:54 ` Alex Kost
@ 2017-08-17 17:08   ` Manolis Ragkousis
  0 siblings, 0 replies; 3+ messages in thread
From: Manolis Ragkousis @ 2017-08-17 17:08 UTC (permalink / raw)
  To: Alex Kost; +Cc: 28049-done

Hello Alex,

On 08/12/2017 11:54 PM, Alex Kost wrote:
> Please shift these 3 lines to the right to place "(sha256" right under
> "(uri".
> 
> In case you didn't know (and if you use Emacs) you can indent the whole
> package definition by moving the point to its beginning (to
> "(define-public...") and pressing "C-M-q" ("indent-pp-sexp" command).
> 
> As for the package itself, I don't have any comments (I mean it looks
> good to me), thanks!


I am wondering how I missed this :). I will be more careful next time.

Updated patch and pushed to master.

Thank you Alex,
Manolis

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

end of thread, other threads:[~2017-08-17 17:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-11 16:58 [bug#28049] [PATCH] gnu: Add mygui manolis837
2017-08-12 20:54 ` Alex Kost
2017-08-17 17:08   ` bug#28049: " Manolis Ragkousis

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