From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Subject: [PATCH] gnu: Add Tiled Date: Thu, 13 Nov 2014 22:53:51 +0800 Message-ID: <1415890431-4295-1-git-send-email-iyzsong@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53430) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xovmj-0008HK-MU for guix-devel@gnu.org; Thu, 13 Nov 2014 09:54:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xovmf-00008C-Gw for guix-devel@gnu.org; Thu, 13 Nov 2014 09:54:09 -0500 Received: from mail-pd0-x22d.google.com ([2607:f8b0:400e:c02::22d]:65068) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xovmf-00007y-9l for guix-devel@gnu.org; Thu, 13 Nov 2014 09:54:05 -0500 Received: by mail-pd0-f173.google.com with SMTP id v10so14635527pde.4 for ; Thu, 13 Nov 2014 06:54:02 -0800 (PST) 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: guix-devel@gnu.org Cc: =?UTF-8?q?=E5=AE=8B=E6=96=87=E6=AD=A6?= * 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 diff --git a/gnu-system.am b/gnu-system.am index 1af1aa5..900bd2e 100644 --- a/gnu-system.am +++ b/gnu-system.am @@ -244,6 +244,7 @@ GNU_SYSTEM_MODULES = \ gnu/packages/telephony.scm \ gnu/packages/texinfo.scm \ gnu/packages/texlive.scm \ + gnu/packages/tiled.scm \ gnu/packages/time.scm \ gnu/packages/tmux.scm \ gnu/packages/tor.scm \ diff --git a/gnu/packages/tiled.scm b/gnu/packages/tiled.scm new file mode 100644 index 0000000..0d4241e --- /dev/null +++ b/gnu/packages/tiled.scm @@ -0,0 +1,57 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2014 Sou Bunnbu +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (gnu packages tiled) + #:use-module ((guix licenses) + #:hide (zlib)) + #:use-module (guix packages) + #:use-module (guix download) + #:use-module (guix build-system gnu) + #:use-module (gnu packages qt) + #:use-module (gnu packages compression)) + +(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 (list gpl2+ bsd-2)))) -- 1.9.2