From c5799025e48d88a0688355f2a9838b8a807884d7 Mon Sep 17 00:00:00 2001 From: Oleg Pykhalov Date: Sat, 18 Jan 2020 21:50:21 +0300 Subject: gnu: Add rinutils. * gnu/packages/games.scm (rinutils): New variable. --- gnu/packages/games.scm | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) (limited to 'gnu') diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index bc5f14039e..2f9b3b5c71 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -5928,6 +5928,67 @@ original.") "shlomif-cmake-modules/Shlomif_Common.cmake")) (sha256 (base32 "0kx9s1qqhhzprp1w3b67xmsns0n0v506bg5hgrshxaxpy6lqiwb2")))) + +(define-public rinutils + (package + (name "rinutils") + (version "0.2.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/shlomif/rinutils.git") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1fpxyg86ggv0h7j8aarjjxrvwlj7jycd3bw066c0dwkq2fszxsf2")))) + (native-inputs + `(("perl" ,perl) + ;; The following is only needed for tests. + ("perl-file-find-object" ,perl-file-find-object) + ("perl-test-differences" ,perl-test-differences) + ("perl-class-xsaccessor" ,perl-class-xsaccessor) + ("perl-io-all" ,perl-io-all) + ("perl-test-runvalgrind" ,perl-test-runvalgrind) + ("cmake-rules" ,shlomif-cmake-modules) + ("pkg-config" ,pkg-config))) + (inputs + `(("cmocka" ,cmocka) + ("perl-env-path", perl-env-path) + ("perl-inline" ,perl-inline) + ("perl-inline-c" ,perl-inline-c) + ("perl-string-shellquote" ,perl-string-shellquote) + ("perl-test-trailingspace" ,perl-test-trailingspace) + ("perl-file-find-object-rule" ,perl-file-find-object-rule) + ("perl-text-glob" ,perl-text-glob) + ("perl-number-compare" ,perl-number-compare) + ("perl-moo" ,perl-moo))) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'fix-build-env + (lambda* (#:key inputs #:allow-other-keys) + (use-modules (guix build utils)) + (let* ((cmake-rules (assoc-ref inputs "cmake-rules"))) + (copy-file cmake-rules + (string-append "cmake/" + (strip-store-file-name cmake-rules))) + #t))) + (replace 'check + (lambda _ + (with-directory-excursion "../source" + (setenv "FCS_TEST_BUILD" "1") + (setenv "RINUTILS_TEST_BUILD" "1") + ;; TODO: Run tests after setting RINUTILS_TEST_TIDY to `1', + ;; which requires tidy-all. + ;; (setenv "RINUTILS_TEST_TIDY" "1") + (invoke "perl" "CI-testing/continuous-integration-testing.pl"))))))) + (build-system cmake-build-system) + (home-page "https://www.shlomifish.org/open-source/projects/") + (synopsis "C11 / gnu11 utilities C library") + (description "This package provides C11 / gnu11 utilities C library") + (license license:expat))) + (define-public fortune-mod (package (name "fortune-mod") -- cgit v1.2.3