GNU bug report logs -
#27992
[PATCH] gnu: Add ogre.
Previous Next
Reported by: manolis837 <at> gmail.com
Date: Sun, 6 Aug 2017 19:49:02 UTC
Severity: normal
Tags: moreinfo, patch
Done: Manolis Ragkousis <manolis837 <at> gmail.com>
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 27992 in the body.
You can then email your comments to 27992 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#27992
; Package
guix-patches
.
(Sun, 06 Aug 2017 19:49:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
manolis837 <at> gmail.com
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Sun, 06 Aug 2017 19:49:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
From: Manolis Ragkousis <manolis837 <at> gmail.com>
* gnu/packages/graphics.scm (ogre): New variable.
---
gnu/packages/graphics.scm | 67 +++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 67 insertions(+)
diff --git a/gnu/packages/graphics.scm b/gnu/packages/graphics.scm
index d0e50106f..584c2445f 100644
--- a/gnu/packages/graphics.scm
+++ b/gnu/packages/graphics.scm
@@ -36,11 +36,13 @@
#:use-module (gnu packages bash)
#:use-module (gnu packages bison)
#:use-module (gnu packages boost)
+ #:use-module (gnu packages check)
#:use-module (gnu packages documentation)
#:use-module (gnu packages haskell)
#:use-module (gnu packages image)
#:use-module (gnu packages python)
#:use-module (gnu packages flex)
+ #:use-module (gnu packages fonts)
#:use-module (gnu packages fontutils)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages pulseaudio) ;libsndfile, libsamplerate
@@ -60,6 +62,7 @@
#:use-module (gnu packages qt)
#:use-module (gnu packages readline)
#:use-module (gnu packages sdl)
+ #:use-module (gnu packages swig)
#:use-module (gnu packages video)
#:use-module (gnu packages xml)
#:use-module (gnu packages xorg))
@@ -228,6 +231,70 @@ quaternions and other useful 2D and 3D math functions. Iex is an
exception-handling library.")
(license license:bsd-3)))
+(define-public ogre
+ (package
+ (name "ogre")
+ (version "1.10.7")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "https://github.com/OGRECave/" name
+ "/archive/v" version ".tar.gz"))
+ (sha256
+ (base32
+ "1ab354bmwwryxr4zgxchfkm6h4z38mjgif8yn89x640rsrgw5ipj"))))
+ (build-system cmake-build-system)
+ (arguments
+ '(#:phases
+ (modify-phases %standard-phases
+ (add-before 'configure 'pre-configure
+ (lambda* (#:key inputs #:allow-other-keys)
+ ;; It expects googletest source to be downloaded and
+ ;; be in a specific place.
+ (substitute* "Tests/CMakeLists.txt"
+ (("URL(.*)$" _ suffix) (string-append "URL " suffix
+"\t\tURL_HASH MD5=16877098823401d1bf2ed7891d7dce36\n")))
+ #t))
+ (add-before 'build 'pre-build
+ (lambda* (#:key inputs #:allow-other-keys)
+ (copy-file (assoc-ref inputs "googletest-source")
+ (string-append (getcwd)
+ "/Tests/googletest-prefix/src/release-1.8.0.tar.gz"))
+ #t)))
+ #:configure-flags
+ (list "-DOGRE_BUILD_TESTS=TRUE"
+ (string-append "-DCMAKE_INSTALL_RPATH="
+ (assoc-ref %outputs "out") "/lib:"
+ (assoc-ref %outputs "out") "/lib/OGRE:"
+ (assoc-ref %build-inputs "googletest") "/lib")
+ "-DOGRE_INSTALL_DOCS=TRUE"
+ "-DOGRE_INSTALL_SAMPLES=TRUE"
+ "-DOGRE_INSTALL_SAMPLES_SOURCE=TRUE")))
+ (native-inputs
+ `(("boost" ,boost)
+ ("doxygen" ,doxygen)
+ ("googletest-source" ,(package-source googletest))
+ ("pkg-config" ,pkg-config)))
+ (inputs
+ `(("font-dejavu" ,font-dejavu)
+ ("freeimage" ,freeimage)
+ ("freetype" ,freetype)
+ ("glu" ,glu)
+ ("googletest" ,googletest)
+ ("sdl2" ,sdl2)
+ ("libxaw" ,libxaw)
+ ("libxrandr" ,libxrandr)
+ ("tinyxml" ,tinyxml)
+ ("zziplib" ,zziplib)))
+ (synopsis "Scene-oriented, flexible 3D engine written in C++")
+ (description
+ "OGRE (Object-Oriented Graphics Rendering Engine) is a scene-oriented,
+flexible 3D engine written in C++ designed to make it easier and more intuitive
+for developers to produce applications utilising hardware-accelerated 3D
+graphics.")
+ (home-page "http://www.ogre3d.org/")
+ (license license:expat)))
+
(define-public openexr
(package
(name "openexr")
--
2.13.4
Information forwarded
to
guix-patches <at> gnu.org
:
bug#27992
; Package
guix-patches
.
(Sat, 12 Aug 2017 20:46:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 27992 <at> debbugs.gnu.org (full text, mbox):
manolis837 <at> gmail.com (2017-08-06 22:48 +0300) wrote:
[...]
> +(define-public ogre
> + (package
> + (name "ogre")
> + (version "1.10.7")
> + (source
> + (origin
> + (method url-fetch)
> + (uri (string-append "https://github.com/OGRECave/" name
> + "/archive/v" version ".tar.gz"))
Please add 'file-name' to avoid "/gnu/store/…-v1.10.7.tar.gz" name:
(file-name (string-append name "-" version ".tar.gz"))
This is reported by "guix lint ogre".
> + (sha256
> + (base32
> + "1ab354bmwwryxr4zgxchfkm6h4z38mjgif8yn89x640rsrgw5ipj"))))
> + (build-system cmake-build-system)
> + (arguments
> + '(#:phases
> + (modify-phases %standard-phases
> + (add-before 'configure 'pre-configure
> + (lambda* (#:key inputs #:allow-other-keys)
'inputs' are not used here, so just: (lambda _ ...)
> + ;; It expects googletest source to be downloaded and
> + ;; be in a specific place.
> + (substitute* "Tests/CMakeLists.txt"
> + (("URL(.*)$" _ suffix) (string-append "URL " suffix
> +"\t\tURL_HASH MD5=16877098823401d1bf2ed7891d7dce36\n")))
This string shouldn't start from the beginning of the line. I see the
problem is that a properly indented line would be too long. I would
write it like this:
(substitute* "Tests/CMakeLists.txt"
(("URL(.*)$" _ suffix)
(string-append "URL " suffix
"\t\tURL_HASH "
"MD5=16877098823401d1bf2ed7891d7dce36\n")))
> + #t))
> + (add-before 'build 'pre-build
> + (lambda* (#:key inputs #:allow-other-keys)
> + (copy-file (assoc-ref inputs "googletest-source")
> + (string-append (getcwd)
> + "/Tests/googletest-prefix/src/release-1.8.0.tar.gz"))
^^^^
same here: (string-append ...) and the next line are not indented
properly. I would write:
(copy-file (assoc-ref inputs "googletest-source")
(string-append (getcwd)
"/Tests/googletest-prefix/src"
"/release-1.8.0.tar.gz"))
The rest looks good to me, thanks!
--
Alex
Added tag(s) moreinfo.
Request was from
Ricardo Wurmus <rekado <at> elephly.net>
to
control <at> debbugs.gnu.org
.
(Wed, 16 Aug 2017 14:06:02 GMT)
Full text and
rfc822 format available.
Added indication that bug 27992 blocks28049
Request was from
Ricardo Wurmus <rekado <at> elephly.net>
to
control <at> debbugs.gnu.org
.
(Wed, 16 Aug 2017 14:09:01 GMT)
Full text and
rfc822 format available.
Reply sent
to
Manolis Ragkousis <manolis837 <at> gmail.com>
:
You have taken responsibility.
(Thu, 17 Aug 2017 17:04:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
manolis837 <at> gmail.com
:
bug acknowledged by developer.
(Thu, 17 Aug 2017 17:04:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 27992-done <at> debbugs.gnu.org (full text, mbox):
Hello Alex,
Updated the patch and pushed to master.
Thank you for reviewing :)
Manolis
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 15 Sep 2017 11:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 7 years and 284 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.