~ruther/guix-local

f1005ad96c3842740b7893e2e84dc1b89c376d94 — Hugo Buddelmeijer 4 months ago 3ded25e
gnu: mc2mt: Fix build.

* gnu/packages/game-development.scm (mc2mt): Fix build and indentation.
[source]: Move snippet to phase.
[native-inputs]: Add python-pytest.

* gnu/packages/patches/mc2mt-add-packaging-support.patch: Update patch.

Change-Id: I3db227b726fa9dec8c09e49cada2d5f74e35576e
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
2 files changed, 32 insertions(+), 28 deletions(-)

M gnu/packages/game-development.scm
M gnu/packages/patches/mc2mt-add-packaging-support.patch
M gnu/packages/game-development.scm => gnu/packages/game-development.scm +31 -27
@@ 2172,36 2172,40 @@ robust and compatible with many systems and operating systems.")
    (license license:zlib)))

(define-public mc2mt
  ;; No tags in the repository.
  (let ((commit "039dbc26466a430e03c646dc5a9bd0822637a87a")
        (revision "0"))
  (package
    (name "mc2mt")
    (version (git-version "0.1" revision commit))
    (source
     (origin
       (method git-fetch)
       (uri (git-reference
             (url "https://github.com/listia/mc2mt")
             (commit commit)))
       (file-name (git-file-name name version))
       (sha256
        (base32 "1vnaznwgm87x0n5dp14363p2h54lpzalynrrd6lbs6wgrqq7fq9i"))
       (patches (search-patches "mc2mt-add-packaging-support.patch"))
       (modules '((guix build utils)))
       (snippet
        #~(begin
            (substitute* "mc2mtlib/argument_parser.py"
              (("mineclone2") "mineclone"))))))
    (build-system pyproject-build-system)
    (native-inputs (list python-setuptools))
    (propagated-inputs (list python-anvil-parser))
    (arguments
     (list #:tests? #f)) ; no tests
    (synopsis "Minecraft to Minetest world converter")
    (description "@code{mc2mt} is a Minecraft to Minetest world converter.
    (package
      (name "mc2mt")
      (version (git-version "0.1" revision commit))
      (source
       (origin
         (method git-fetch)
         (uri (git-reference
                (url "https://github.com/listia/mc2mt")
                (commit commit)))
         (file-name (git-file-name name version))
         (sha256
          (base32 "1vnaznwgm87x0n5dp14363p2h54lpzalynrrd6lbs6wgrqq7fq9i"))
         (patches (search-patches "mc2mt-add-packaging-support.patch"))
         (modules '((guix build utils)))))
      (build-system pyproject-build-system)
      (arguments
       (list
        #:tests? #f ; no tests
        #:phases
        #~(modify-phases %standard-phases
            (add-after 'unpack 'patch-code
              (lambda* _
                (substitute* "mc2mtlib/argument_parser.py"
                  (("mineclone2") "mineclone")))))))
      (native-inputs (list python-pytest python-setuptools))
      (propagated-inputs (list python-anvil-parser))
      (synopsis "Minecraft to Minetest world converter")
      (description "@code{mc2mt} is a Minecraft to Minetest world converter.
It can convert worlds from Minecraft 1.9 and later.")
    (home-page "https://github.com/listia/mc2mt")
    (license license:expat))))
      (home-page "https://github.com/listia/mc2mt")
      (license license:expat))))

(define-public mygui
  (package

M gnu/packages/patches/mc2mt-add-packaging-support.patch => gnu/packages/patches/mc2mt-add-packaging-support.patch +1 -1
@@ 77,7 77,7 @@ index 0000000..cf9a70d
+[project]
+name = 'mc2mt'
+version = '0.1'
+dependencies = ['anvil-parser']
+dependencies = ['anvil-parser2']
+
+[project.scripts]
+mc2mt = 'mc2mtlib:mc2mt.mc2mt'