>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 = \ 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 © 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 archives. +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 defined, +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 disk, +and it makes it easy to ship a new archive that will override a previous +archive on a per-file basis.") + (license license:zlib))) -- 2.5.3