* [bug#30889] [PATCH] gnu: Add pipewalker.
@ 2018-03-20 23:39 Tobias Geerinckx-Rice
2018-03-21 23:22 ` Ricardo Wurmus
2018-08-30 18:10 ` bug#30889: " Tobias Geerinckx-Rice
0 siblings, 2 replies; 4+ messages in thread
From: Tobias Geerinckx-Rice @ 2018-03-20 23:39 UTC (permalink / raw)
To: 30889
* gnu/packages/games.scm (pipewalker): New public variable.
---
Guix,
Here's a little game to waste your time while you should be writing
patches.
Kind regards,
T G-R
gnu/packages/games.scm | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 9d63930e3..b0a6b2613 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -669,6 +669,46 @@ removed lines to all opponents. There is also a Demo mode in which you can
watch your CPU playing while enjoying a cup of tea!")
(license license:gpl2+)))
+(define-public pipewalker
+ (package
+ (name "pipewalker")
+ (version "0.9.4")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "http://downloads.sourceforge.net/pipewalker/"
+ name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "1x46wgk0s55562pd96cxagxkn6wpgglq779f9b64ff1k3xzp3myn"))))
+ (build-system gnu-build-system)
+ (inputs
+ `(("libpng" ,libpng)
+ ("mesa" ,mesa)
+ ("sdl" ,sdl)))
+ (arguments
+ `(#:configure-flags
+ (list (string-append "--docdir=" (assoc-ref %outputs "out")
+ "/share/doc/" ,name "-" ,version))
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'configure 'patch-docdir
+ ;; Makefile.in ignores configure's ‘--docdir=...’ option. Fix that.
+ (lambda _
+ (substitute* "Makefile"
+ (("(pkgdocdatadir = ).*" _ key)
+ (string-append key "$(docdir)\n")))
+ #t)))))
+ (home-page "http://pipewalker.sourceforge.net/")
+ (synopsis "Logical tile puzzle")
+ (description
+ "PipeWalker is a simple puzzle game with many diffent themes: connect all
+computers to one network server, bring water from a source to the taps, etc.
+The underlying mechanism is always the same: you must turn each tile in the
+grid in the right direction to combine all components into a single circuit.
+Every puzzle has a complete solution, although there may be more than one.")
+ (license license:gpl3+)))
+
(define-public prboom-plus
(package
(name "prboom-plus")
--
2.15.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [bug#30889] [PATCH] gnu: Add pipewalker.
2018-03-20 23:39 [bug#30889] [PATCH] gnu: Add pipewalker Tobias Geerinckx-Rice
@ 2018-03-21 23:22 ` Ricardo Wurmus
2018-03-21 23:47 ` Tobias Geerinckx-Rice
2018-08-30 18:10 ` bug#30889: " Tobias Geerinckx-Rice
1 sibling, 1 reply; 4+ messages in thread
From: Ricardo Wurmus @ 2018-03-21 23:22 UTC (permalink / raw)
To: Tobias Geerinckx-Rice; +Cc: 30889
Hi Tobias,
> * gnu/packages/games.scm (pipewalker): New public variable.
> ---
>
> Guix,
>
> Here's a little game to waste your time while you should be writing
> patches.
Yay!
> +(define-public pipewalker
> + (package
> + (name "pipewalker")
> + (version "0.9.4")
> + (source
> + (origin
> + (method url-fetch)
> + (uri (string-append "http://downloads.sourceforge.net/pipewalker/"
> + name "-" version ".tar.gz"))
Could you use the sourceforge mirror here?
> + (inputs
> + `(("libpng" ,libpng)
> + ("mesa" ,mesa)
> + ("sdl" ,sdl)))
> + (arguments
> + `(#:configure-flags
> + (list (string-append "--docdir=" (assoc-ref %outputs "out")
> + "/share/doc/" ,name "-" ,version))
> + #:phases
> + (modify-phases %standard-phases
> + (add-after 'configure 'patch-docdir
> + ;; Makefile.in ignores configure's ‘--docdir=...’ option. Fix that.
> + (lambda _
> + (substitute* "Makefile"
> + (("(pkgdocdatadir = ).*" _ key)
> + (string-append key "$(docdir)\n")))
> + #t)))))
It’s just a minor irritation for me, but I always expect to see the
“arguments” field right below the build system field, because it defines
arguments for the build system.
> + (home-page "http://pipewalker.sourceforge.net/")
> + (synopsis "Logical tile puzzle")
> + (description
> + "PipeWalker is a simple puzzle game with many diffent themes: connect all
> +computers to one network server, bring water from a source to the taps, etc.
> +The underlying mechanism is always the same: you must turn each tile in the
> +grid in the right direction to combine all components into a single circuit.
> +Every puzzle has a complete solution, although there may be more than
> one.")
Sounds like fun!
--
Ricardo
GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC
https://elephly.net
^ permalink raw reply [flat|nested] 4+ messages in thread
* [bug#30889] [PATCH] gnu: Add pipewalker.
2018-03-21 23:22 ` Ricardo Wurmus
@ 2018-03-21 23:47 ` Tobias Geerinckx-Rice
0 siblings, 0 replies; 4+ messages in thread
From: Tobias Geerinckx-Rice @ 2018-03-21 23:47 UTC (permalink / raw)
To: Ricardo Wurmus; +Cc: 30889
Ricardo,
Thanks for the review!
On 2018-03-22 0:22, Ricardo Wurmus wrote:
>> + (uri (string-append
>> "http://downloads.sourceforge.net/pipewalker/"
>> + name "-" version ".tar.gz"))
>
> Could you use the sourceforge mirror here?
I had some trouble with a dodgy mirror(?) when I wrote this, hence this
‘temporary’ workaround[0]. You're right that this should use a mirror.
>> + (inputs
>> + `(("libpng" ,libpng)
>> + ("mesa" ,mesa)
>> + ("sdl" ,sdl)))
>> + (arguments
>> + `(#:configure-flags
>> + (list (string-append "--docdir=" (assoc-ref %outputs "out")
>> + "/share/doc/" ,name "-" ,version))
>> + #:phases
>> + (modify-phases %standard-phases
>> + (add-after 'configure 'patch-docdir
>> + ;; Makefile.in ignores configure's ‘--docdir=...’ option.
>> Fix that.
>> + (lambda _
>> + (substitute* "Makefile"
>> + (("(pkgdocdatadir = ).*" _ key)
>> + (string-append key "$(docdir)\n")))
>> + #t)))))
>
> It’s just a minor irritation for me, but I always expect to see the
> “arguments” field right below the build system field, because it
> defines
> arguments for the build system.
Hehe. We seem to have opposite irritations.
I always expect the inputs to follow first, since they're, er, inputs, I
guess, and often referenced later (;-) in arguments, together with
things like source and outputs (doesn't the latter also belong at the
end, then?). At least the inverse is never true.
Of course this is hardly a solid technical argument, if there is one.
And the single example in the manual does list arguments before inputs.
Damn it.
>> + (home-page "http://pipewalker.sourceforge.net/")
>> + (synopsis "Logical tile puzzle")
>> + (description
>> + "PipeWalker is a simple puzzle game with many diffent themes:
>> connect all
>> +computers to one network server, bring water from a source to the
>> taps, etc.
>> +The underlying mechanism is always the same: you must turn each tile
>> in the
>> +grid in the right direction to combine all components into a single
>> circuit.
>> +Every puzzle has a complete solution, although there may be more than
>> one.")
>
> Sounds like fun!
It beats working.
Kind regards,
T G-R
[0]: I'm aware that it still HTTP-redirects to a mirror. However, this
worked.
Sent from a Web browser. Excuse or enjoy my brevity.
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#30889: [PATCH] gnu: Add pipewalker.
2018-03-20 23:39 [bug#30889] [PATCH] gnu: Add pipewalker Tobias Geerinckx-Rice
2018-03-21 23:22 ` Ricardo Wurmus
@ 2018-08-30 18:10 ` Tobias Geerinckx-Rice
1 sibling, 0 replies; 4+ messages in thread
From: Tobias Geerinckx-Rice @ 2018-08-30 18:10 UTC (permalink / raw)
To: Ricardo Wurmus; +Cc: 30889-done
Ricardo, Guix,
On 2018-03-22 0:22, Ricardo Wurmus wrote:
> It’s just a minor irritation for me, but I always expect to see
> the
> “arguments” field right below the build system field, because it
> defines arguments for the build system.
I have seen the light. Done in
8294362688096145547464ceaa25edd5cc65d024.
Thanks!
T G-R
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-08-30 18:11 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-20 23:39 [bug#30889] [PATCH] gnu: Add pipewalker Tobias Geerinckx-Rice
2018-03-21 23:22 ` Ricardo Wurmus
2018-03-21 23:47 ` Tobias Geerinckx-Rice
2018-08-30 18:10 ` bug#30889: " Tobias Geerinckx-Rice
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).