From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?B?5a6L5paH5q2m?= Subject: Re: [PATCH] gnu: Add Tiled Date: Fri, 14 Nov 2014 19:27:23 +0800 Message-ID: <87fvdmqaxw.fsf@gmail.com> References: <1415890431-4295-1-git-send-email-iyzsong@gmail.com> <8761ejhw6g.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57606) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XpF2R-0006sV-Jp for guix-devel@gnu.org; Fri, 14 Nov 2014 06:27:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XpF2M-0007Wz-13 for guix-devel@gnu.org; Fri, 14 Nov 2014 06:27:39 -0500 In-Reply-To: <8761ejhw6g.fsf@gnu.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s writes: > =E5=AE=8B=E6=96=87=E6=AD=A6 skribis: > >> + (license (list gpl2+ bsd-2)))) > > Could you add a comment above explaining what is meant here: is it > dual-licensing? Or does it mean that some files are GPL=E2=80=99d while = others > are BSD? > > In the latter case, the combined work is GPL, so =E2=80=98license=E2=80= =99 should be > just gpl2+. It=E2=80=99s a good idea, though, to add a comment stating t= hat > some files are under another license. Yes, it's GPL, while libtiled and tmxviewer are under BSD. > >> Eric Bavier writes: >> >>> =E5=AE=8B=E6=96=87=E6=AD=A6 writes: >>> >>>> * gnu/packages/tiled.scm: New file. >>>> * gnu-system.am (GNU_SYSTEM_MODULES): Add it. >>>> --- >>>> gnu-system.am | 1 + >>>> gnu/packages/tiled.scm | 57 +++++++++++++++++++++++++++++++++++++++++= +++++++++ >>>> 2 files changed, 58 insertions(+) >>>> create mode 100644 gnu/packages/tiled.scm >>> >>> Would it make sense to put this new package in gnu/packages/games.scm >>> instead? >> Well, I'll prefer editors.scm or graphics.scm. > > I=E2=80=99m of the opinion of Eric here. =E2=80=9Ceditors=E2=80=9D and = =E2=80=9Cgraphics=E2=80=9D seem like > very vague categories to me. Or did you have other packages in mind > that would fit in there? Maybe gimp and inkscape? Yeah, games does make sense. > > Thanks, > Ludo=E2=80=99. Here is my new patch: --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-gnu-Add-Tiled.patch >From b5481951dcba1a34305d9f1ac55ca880415ab731 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Date: Thu, 13 Nov 2014 22:50:57 +0800 Subject: [PATCH] gnu: Add Tiled. * gnu/pacakges/games.scm (tiled): New variable. --- gnu/packages/games.scm | 36 +++++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index dee39dd..4e1335e 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -23,7 +23,8 @@ ;;; along with GNU Guix. If not, see . (define-module (gnu packages games) - #:use-module (guix licenses) + #:use-module ((guix licenses) + #:hide (zlib)) #:use-module (guix packages) #:use-module (guix download) #:use-module (gnu packages) @@ -49,6 +50,8 @@ #:use-module (gnu packages fontutils) #:use-module (gnu packages bash) #:use-module (gnu packages perl) + #:use-module (gnu packages qt) + #:use-module (gnu packages compression) #:use-module (guix build-system gnu) #:use-module (guix build-system trivial)) @@ -498,3 +501,34 @@ tutorials for the standard QWERTY layout, there are also tutorials for the alternative layouts Dvorak and Colemak, as well as for the numpad. Tutorials are primarily in English, however some in other languages are provided.") (license gpl3+))) + +(define-public tiled + (package + (name "tiled") + (version "0.10.2") + (source (origin + (method url-fetch) + (uri (string-append "https://github.com/bjorn/tiled/archive/v" + version ".tar.gz")) + (sha256 + (base32 + "0p4p3lv4nw11fkfvvyjirb93r2x4w2rrc2w650gl2k57k92jpiij")))) + (build-system gnu-build-system) + (inputs `(("qt" ,qt) + ("zlib" ,zlib))) + (arguments + '(#:phases + (alist-replace + 'configure + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (system* "qmake" + (string-append "PREFIX=" out)))) + %standard-phases))) + (home-page "http://www.mapeditor.org/") + (synopsis "Tile map editor") + (description + "Tiled is a general purpose tile map editor. It is meant to be used for +editing maps of any tile-based game, be it an RPG, a platformer or a Breakout +clone.") + (license gpl2+))) -- 1.9.2 --=-=-=--