From: Leo Famulari <leo@famulari.name>
To: thylakoid@openmailbox.org
Cc: guix-devel@gnu.org
Subject: Re: [PATCH] gnu: Add pioneers
Date: Mon, 15 Feb 2016 20:21:04 -0500 [thread overview]
Message-ID: <20160216012104.GA3984@jasmine> (raw)
In-Reply-To: <86a3f4ede2b6df0b1813c1e7d4861e4a@openmailbox.org>
On Mon, Feb 15, 2016 at 01:14:16PM -0800, thylakoid@openmailbox.org wrote:
> Hello all,
>
> I am submitting this patch that packages the game 'pioneers' into the
> games.scm file.
Thanks for the patch! Maybe I can get some of my friends to play this,
or perhaps some people on #guix ;)
>
> Let me know if I made any mistakes or can improve anything. I'm hoping to
> package several more appplications soon.
We use `git format-patch` to generate patches, since that includes the
commit message and authorship information (I had to manually name you as
the author of this commit). You can look at `git log` for examples of
the commit message format.
>
> The patch is an attachment.
Okay! Alternatively, you can use `git send-email`, which formats the
patch and sends the mail on your behalf. It provides a nice workflow but
it's not required. I understand it might require you to set up an SMTP
client, etc.
My overall recommendations for future patches are:
1) Use `git format-patch` or `git send-email`.
2) Be sure to run `guix lint`.
3) Spend a couple minutes looking at the license headers on the source
files. Sometimes there are even multiple licenses in one project.
I applied the patch with a few minor changes regarding whitespace /
formatting, and the license, described below. Some of the style changes
were not required, but since I was making other edits...
>
> - Rodger Fox
> diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
> index 7eb0e7a..b32a6f4 100644
> --- a/gnu/packages/games.scm
> +++ b/gnu/packages/games.scm
> @@ -14,6 +14,7 @@
> ;;; Copyright ?? 2015, 2016 Alex Kost <alezost@gmail.com>
> ;;; Copyright ?? 2015 Paul van der Walt <paul@denknerd.org>
> ;;; Copyright ?? 2015 Taylan Ulrich Bay??rl??/Kammer <taylanbayirli@gmail.com>
> +;;; Copyright ?? 2016 Rodger Fox <thylakoid@openmailbox.org>
> ;;;
> ;;; This file is part of GNU Guix.
> ;;;
> @@ -44,6 +45,7 @@
> #:use-module (gnu packages base)
> #:use-module (gnu packages admin)
> #:use-module (gnu packages audio)
> + #:use-module (gnu packages avahi)
> #:use-module (gnu packages boost)
> #:use-module (gnu packages fribidi)
> #:use-module (gnu packages game-development)
> @@ -89,6 +91,33 @@
> #:use-module (guix build-system cmake)
> #:use-module (guix build-system trivial))
>
I appended the package to the end of the file. This is how we usually
add packages.
> +
> +(define-public pioneers
> + (package
> + (name "pioneers")
> + (version "15.3")
> + (source (origin
> + (method url-fetch)
> + (uri (string-append
> + "http://downloads.sourceforge.net/pio/pioneers-"
> + version
> + ".tar.gz"))
Reorganized and de-tabbed the uri section (the linter complains about
tabs).
> + (sha256
> + (base32
> + "128s718nnraiznbg2rajjqb7cfkdg24hy6spdd9narb4f4dsbbv9"))))
> + (build-system gnu-build-system)
> + (inputs `(("gtk+" ,gtk+)
> + ("librsvg" ,librsvg)
> + ("avahi" ,avahi)))
> + (native-inputs `(("intltool" ,intltool)
> + ("pkg-config" ,pkg-config)))
> + (synopsis "A clone of The Settlers of Catan board game")
I changed this to "Board game inspired by The Settlers of Catan". It's
not a true clone if my dinner table isn't a mess ;)
> + (description
> + "Pioneers is an emulation of the board game The Settlers of Catan. It can be played on a local
> +network, on the internet, and with AI players.")
Wrapped to 80 characters, since `guix lint` complained.
> + (home-page "http://pio.sourceforge.net/")
> + (license license:gpl2+)))
Since the source files include the "any later version" clause, I changed
this to GPL3+. I usually grep for 'later version' when COPYING indicates
GPL2.
Thanks again for the patch! Applied as 7e2e115501a.
next prev parent reply other threads:[~2016-02-16 1:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-15 21:14 [PATCH] gnu: Add pioneers thylakoid
2016-02-16 1:21 ` Leo Famulari [this message]
2016-02-16 2:03 ` Jookia
2016-02-16 2:17 ` Leo Famulari
2016-02-16 2:20 ` Mark H Weaver
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160216012104.GA3984@jasmine \
--to=leo@famulari.name \
--cc=guix-devel@gnu.org \
--cc=thylakoid@openmailbox.org \
/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 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).