all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Leo Prikler <leo.prikler@student.tugraz.at>
To: polyakov@liltechdude.xyz, 46378@debbugs.gnu.org
Cc: Dmitry Polyakov <liltechdude@gmail.com>
Subject: [bug#46378] [PATCH] gnu: Add instead.
Date: Mon, 08 Feb 2021 16:46:54 +0100	[thread overview]
Message-ID: <6398b29a976e3e804e224268fd58afd26326b35b.camel@student.tugraz.at> (raw)
In-Reply-To: <20210208141120.9184-1-polyakov@liltechdude.xyz>

Hello Dmitry,

the patch now applies with "git apply", but not "git am", which makes
it difficult to sign off.  I can however rewrite the commit on your
behalf if that is what you want.

Am Montag, den 08.02.2021, 09:11 -0500 schrieb
polyakov@liltechdude.xyz:
> * gnu/local.mk (instead): New variable.
This is not what happens in local.mk.  In local.mk you register your
patch in dist_patch_DATA.  The new variable goes to game-
development.scm.

> * gnu/packages/patches/instead-use-games-path.patch:
>   Patch for engine that enable set game directory
>   location in environment.
"New file." is okay here.

> ---
>  gnu/local.mk                                  |  2 +
>  gnu/packages/game-development.scm             | 53
> +++++++++++++++++++
>  .../patches/instead-use-games-path.patch      | 28 ++++++++++
>  3 files changed, 83 insertions(+)
>  create mode 100644 gnu/packages/patches/instead-use-games-path.patch
> 
> diff --git a/gnu/local.mk b/gnu/local.mk
> index b9b4b66..923231f 100644
> --- a/gnu/local.mk
> +++ b/gnu/local.mk
> @@ -40,6 +40,7 @@
>  # Copyright © 2020 Malte Frank Gerdes <mate.f.gerdes@gmail.com>
>  # Copyright © 2020 Vinicius Monego <monego@posteo.net>
>  # Copyright © 2021 Björn Höfling <bjoern.hoefling@bjoernhoefling.de>
> +# Copyright © 2021 Dmitry Polyakov <polyakov@liltechdude.xyz>
>  #
>  # This file is part of GNU Guix.
>  #
> @@ -1187,6 +1188,7 @@ dist_patch_DATA =				
> 		\
>    %D%/packages/patches/ilmbase-fix-tests.patch			
> \
>    %D%/packages/patches/inetutils-hurd.patch			\
>    %D%/packages/patches/inkscape-poppler-0.76.patch		\
> +  %D%/packages/patches/instead-use-games-path.patch		\
>    %D%/packages/patches/intel-xed-fix-nondeterminism.patch	\
>    %D%/packages/patches/intltool-perl-compatibility.patch	\
>    %D%/packages/patches/iputils-libcap-compat.patch		\
> diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-
> development.scm
> index 92c3da9..018d946 100644
> --- a/gnu/packages/game-development.scm
> +++ b/gnu/packages/game-development.scm
> @@ -20,6 +20,7 @@
>  ;;; Copyright © 2020 Nicolas Goaziou <mail@nicolasgoaziou.fr>
>  ;;; Copyright © 2020 Timotej Lazar <timotej.lazar@araneo.si>
>  ;;; Copyright © 2020 Giacomo Leidi <goodoldpaul@autistici.org>
> +;;; Copyright © 2021 Dmitry Polyakov <polyakov@liltechdude.xyz>
>  ;;;
>  ;;; This file is part of GNU Guix.
>  ;;;
> @@ -1961,6 +1962,58 @@ all modern computing platforms.  Each library
> component is fairly independent
>  of the others")
>      (license license:lgpl2.0+)))
>  
> +(define-public instead
> +  (package
> +    (name "instead")
> +    (version "3.3.2")
> +    (build-system cmake-build-system)
> +    (source
> +     (origin
> +       (method git-fetch)
> +       (uri (git-reference
> +             (url "https://github.com/instead-hub/instead")
> +             (commit version)))
> +       (file-name (git-file-name name version))
> +       (sha256
> +        (base32
> "014wfz5z5x72rhnakczpgfyw8s6bq510bxfmn4gv66jahkh4b65f"))
> +       (patches
> +        (search-patches
> +         "instead-use-games-path.patch"))))
> +    (arguments
> +     '(#:configure-flags
> +       (list (string-append
> +              "-DLUA_INCLUDE_DIR="
> +              (assoc-ref %build-inputs "luajit") "/include/luajit-
> 2.1/")
> +             "-DWITH_LUAJIT=1"
> +             "-DWITH_GTK3=1")
> +       #:tests? #f))
> +    (native-inputs
> +     `(("pkg-config" ,pkg-config)))
> +    (inputs
> +     `(("sdl2-images" ,sdl2-image)
> +       ("sdl2-ttf" ,sdl2-ttf)
> +       ("lua" ,lua)
> +       ("sdl2-mixer" ,sdl2-mixer)
> +       ("luajit" ,luajit)
> +       ("gtk+",gtk+)))
> +    (home-page "https://instead3.syscall.ru/")
> +    (synopsis "Text adventure interpreter")
> +    (description "The interpreter of STEAD (Simple Text Adventures)
> allows one
> +to play games that combine visual novels, text adventures and
> classic quests
> +of 1990-s.  The STEAD games features are:
> +@enumerate
> +@item Very simple source code of the stories. (based on LUA);
> +@item Graphical game interface;
> +@item Supports music and images;
> +@item Theme support - a game may change the interface look;
> +@end enumerate")
> +    (license (list license:gpl2 license:zlib))
> +    (native-search-paths
> +     (list (search-path-specification
> +            (variable "INSTEAD_GAMES_PATH")
> +            (separator #f)              ;single entry
> +            (files '("share/instead/games")))))))
> +
LGTM, but the description could do with a few improvements.  
"This package allows to" is somewhat of an anti-pattern.
On a related note "The interpreter of STEAD" is probably better worded
as "The STEAD interpreter" and "The STEAD games features" could be
"STEAD games feature" or something along those lines.
Items should probably not end in semicolons.

> +From: Dmitry Polyakov <liltechdude@gmail.com>
> +Date: Wed, 3 Feb 2021 14:33:37 -0500
> +Subject: [PATCH] add support to get game directory location from
> environent
Should be "Add support for INSTEAD_GAMES_PATH" followed by two newlines
followed by a rationale as for why this patch is required.

Regards, 
Leo





  reply	other threads:[~2021-02-08 21:12 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-08  7:23 [bug#46378] [PATCH] gnu: Add instead Dmitry Polyakov
2021-02-08 12:46 ` Leo Prikler
2021-02-08 13:04   ` Dmitry Polyakov
2021-02-08 14:11 ` polyakov
2021-02-08 15:46   ` Leo Prikler [this message]
2021-02-08 17:15     ` Dmitry Polyakov
2021-02-08 17:43       ` Leo Prikler
2021-08-04 12:29 ` polyakov
2021-08-04 13:50   ` bug#46378: " Leo Prikler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6398b29a976e3e804e224268fd58afd26326b35b.camel@student.tugraz.at \
    --to=leo.prikler@student.tugraz.at \
    --cc=46378@debbugs.gnu.org \
    --cc=liltechdude@gmail.com \
    --cc=polyakov@liltechdude.xyz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.