@@ 10903,15 10903,19 @@ levels to unlock.")
(define simgear
(package
(name "simgear")
- (version "2020.3.18")
+ (version "2024.1.3")
(source
(origin
- (method url-fetch)
- (uri (string-append "mirror://sourceforge/flightgear/release-"
- (version-major+minor version) "/"
- "simgear-" version ".tar.bz2"))
+ (method git-fetch)
+ ;; (uri (string-append "mirror://sourceforge/flightgear/release-"
+ ;; (version-major+minor version) "/"
+ ;; "simgear-" version ".tar.bz2"))
+ (uri (git-reference
+ (url "https://gitlab.com/flightgear/simgear")
+ (commit version)))
+ (file-name (git-file-name name version))
(sha256
- (base32 "1jin6rbz4s83x4k91lbdw5gb0vrc8frbmwpc55wl0wmiaqjwzhbc"))
+ (base32 "1gjx1yylrsqhzp2g6am6wljriyf4cmsbvkqihxqbak93abzg0dnp"))
(modules '((guix build utils)))
(snippet
'(begin
@@ 10922,9 10926,10 @@ levels to unlock.")
(build-system cmake-build-system)
(arguments
`(#:configure-flags (list "-DSYSTEM_EXPAT=ON")
- #:test-exclude "(http|dns)"))
+ #:test-exclude "(http|dns|repository|catalog)"))
(inputs
`(("boost" ,boost)
+ ("c-ares" ,c-ares)
("curl" ,curl)
("expat" ,expat)
("mesa" ,mesa)
@@ 10945,12 10950,13 @@ and also provides the base for the FlightGear Flight Simulator.")
(version (package-version simgear))
(source
(origin
- (method url-fetch)
- (uri (string-append "mirror://sourceforge/flightgear/release-"
- (version-major+minor version) "/"
- "flightgear-" version ".tar.bz2"))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://gitlab.com/flightgear/flightgear")
+ (commit version)))
+ (file-name (git-file-name name version))
(sha256
- (base32 "0dyyi1v97w3mdwsv9kdd194inz1461wqv3zy3wyai0n17wdf7a1r"))
+ (base32 "1w4zsqfhn2fg2qh37b91z2q5r611mgqv5yj669ms5h0p0ddxp1lv"))
(modules '((guix build utils)))
(snippet
'(begin
@@ 10976,6 10982,16 @@ and also provides the base for the FlightGear Flight Simulator.")
(string-append "// " all))
(("CPPUNIT_TEST\\(testFinalLegCourse\\);" all)
(string-append "// " all)))))
+ (add-after 'unpack 'fix-namespace
+ (lambda _
+ (substitute*
+ "test_suite/unit_tests/Main/test_timeManager.cxx"
+ (("using namespace flightgear;" all)
+ (string-append all "\nusing namespace std::string_literals;")))
+ (substitute*
+ "test_suite/unit_tests/Instrumentation/test_commRadio.cxx"
+ (("#include <Main/locale.hxx>" all)
+ (string-append all "\nusing namespace std::string_literals;")))))
(add-after 'build 'build-test-suite
(lambda* args
((assoc-ref %standard-phases 'build)
@@ 10994,6 11010,8 @@ and also provides the base for the FlightGear Flight Simulator.")
(assoc-ref %standard-phases 'check)))))
(inputs
(list boost
+ c-ares
+ curl
dbus
eudev
freeglut
@@ 11003,9 11021,10 @@ and also provides the base for the FlightGear Flight Simulator.")
openal
openscenegraph
plib
- qtbase-5
qtdeclarative-5
+ qtquickcontrols2-5
qtsvg-5
+ qtwayland-5
simgear
speexdsp
sqlite
@@ 11022,7 11041,7 @@ and also provides the base for the FlightGear Flight Simulator.")
"FlightGear-" version "-data.txz"))
(sha256
(base32
- "0f2jn2br27ahf5gggx70zcp80wrylahw7nbqdcx7ml9qphg6rjak"))))))
+ "1xp2c6gfbch4c59w7w1zblqw5casn8ch52j094kmv11mjfwdds60"))))))
(home-page "https://www.flightgear.org/")
(synopsis "Flight simulator")
(description "The goal of the FlightGear project is to create a