From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: [PATCH 1/2] gnu: Add physfs. Date: Sun, 04 Oct 2015 22:15:53 +0300 Message-ID: <87y4fijvh2.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35201) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZiolL-0005UP-4U for guix-devel@gnu.org; Sun, 04 Oct 2015 15:16:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZiolH-0004mA-SN for guix-devel@gnu.org; Sun, 04 Oct 2015 15:15:59 -0400 Received: from mail-la0-x22a.google.com ([2a00:1450:4010:c03::22a]:36474) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZiolH-0004lz-KQ for guix-devel@gnu.org; Sun, 04 Oct 2015 15:15:55 -0400 Received: by lacpo6 with SMTP id po6so3606953lac.3 for ; Sun, 04 Oct 2015 12:15:54 -0700 (PDT) Received: from leviafan ([217.107.192.146]) by smtp.gmail.com with ESMTPSA id o195sm3543705lfe.17.2015.10.04.12.15.53 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 04 Oct 2015 12:15:54 -0700 (PDT) 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 --=-=-= Content-Type: text/plain Is there a suitable module for this library? --=-=-= Content-Type: text/x-diff; charset=utf-8 Content-Disposition: attachment; filename=0001-gnu-Add-physfs.patch Content-Transfer-Encoding: quoted-printable >From beec892399a21b0436a2b971881e5cc15545bec2 Mon Sep 17 00:00:00 2001 From: Alex Kost Date: Sun, 4 Oct 2015 19:49:24 +0300 Subject: [PATCH 1/2] gnu: Add physfs. * gnu/packages/physfs.scm: New file. * gnu-system.am (GNU_SYSTEM_MODULES): Add it. --- gnu-system.am | 1 + gnu/packages/physfs.scm | 58 +++++++++++++++++++++++++++++++++++++++++++++= ++++ 2 files changed, 59 insertions(+) create mode 100644 gnu/packages/physfs.scm diff --git a/gnu-system.am b/gnu-system.am index 8eb268f..386d3f4 100644 --- a/gnu-system.am +++ b/gnu-system.am @@ -253,6 +253,7 @@ GNU_SYSTEM_MODULES =3D \ gnu/packages/pem.scm \ gnu/packages/perl.scm \ gnu/packages/photo.scm \ + gnu/packages/physfs.scm \ gnu/packages/pkg-config.scm \ gnu/packages/plotutils.scm \ gnu/packages/polkit.scm \ diff --git a/gnu/packages/physfs.scm b/gnu/packages/physfs.scm new file mode 100644 index 0000000..7fc993d --- /dev/null +++ b/gnu/packages/physfs.scm @@ -0,0 +1,58 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright =C2=A9 2015 Alex Kost +;;; +;;; 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 physfs) + #:use-module (guix packages) + #:use-module (guix download) + #:use-module (guix build-system cmake) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (gnu packages compression) + #:use-module (gnu packages doxygen)) + +(define-public physfs + (package + (name "physfs") + (version "2.0.3") + (source (origin + (method url-fetch) + (uri (string-append + "http://icculus.org/physfs/downloads/physfs-" + version ".tar.bz2")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0sbbyqzqhyf0g68fcvvv20n3928j0x6ik1njmhn1yigvq2bj11na")))) + (build-system cmake-build-system) + (arguments + '(#:tests? #f)) ; no check target + (inputs + `(("zlib" ,zlib))) + (native-inputs + `(("doxygen" ,doxygen))) + (home-page "http://icculus.org/physfs") + (synopsis "Filesystem abstraction library") + (description + "PhysicsFS is a library to provide abstract access to various archive= s. +It is intended for use in video games. For security, no file writing done +through the PhysicsFS API can leave a defined @emph{write directory}. For +file reading, a @emph{search path} with archives and directories is define= d, +and it becomes a single, transparent hierarchical file system. So archive +files can be accessed in the same way as you access files directly on a di= sk, +and it makes it easy to ship a new archive that will override a previous +archive on a per-file basis.") + (license license:zlib))) --=20 2.5.3 --=-=-=--