all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [PATCH 1/2] gnu: Add physfs.
@ 2015-10-04 19:15 Alex Kost
  2015-10-05 16:19 ` Thompson, David
  2015-10-09 12:30 ` Ludovic Courtès
  0 siblings, 2 replies; 6+ messages in thread
From: Alex Kost @ 2015-10-04 19:15 UTC (permalink / raw)
  To: guix-devel

[-- Attachment #1: Type: text/plain, Size: 46 bytes --]

Is there a suitable module for this library?


[-- Attachment #2: 0001-gnu-Add-physfs.patch --]
[-- Type: text/x-diff, Size: 3593 bytes --]

From beec892399a21b0436a2b971881e5cc15545bec2 Mon Sep 17 00:00:00 2001
From: Alex Kost <alezost@gmail.com>
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 <alezost@gmail.com>
+;;;
+;;; 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 <http://www.gnu.org/licenses/>.
+
+(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


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-10-12  8:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-04 19:15 [PATCH 1/2] gnu: Add physfs Alex Kost
2015-10-05 16:19 ` Thompson, David
2015-10-05 21:08   ` Alex Kost
2015-10-05 23:07     ` Thompson, David
2015-10-09 12:30 ` Ludovic Courtès
2015-10-12  8:54   ` Alex Kost

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.