From fe4ff0e9c4c52a6574630a5d1505e866968b9f61 Mon Sep 17 00:00:00 2001 From: Alex Kost Date: Thu, 25 Sep 2014 12:27:25 +0400 Subject: [PATCH 1/3] gnu: Add imlib2. * gnu/packages/imlib2.scm: New file. * gnu-system.am (GNU_SYSTEM_MODULES): Add it. --- gnu-system.am | 1 + gnu/packages/imlib2.scm | 78 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 79 insertions(+) create mode 100644 gnu/packages/imlib2.scm diff --git a/gnu-system.am b/gnu-system.am index 7d6a6b9..820f935 100644 --- a/gnu-system.am +++ b/gnu-system.am @@ -131,6 +131,7 @@ GNU_SYSTEM_MODULES = \ gnu/packages/idutils.scm \ gnu/packages/image.scm \ gnu/packages/imagemagick.scm \ + gnu/packages/imlib2.scm \ gnu/packages/indent.scm \ gnu/packages/inkscape.scm \ gnu/packages/irssi.scm \ diff --git a/gnu/packages/imlib2.scm b/gnu/packages/imlib2.scm new file mode 100644 index 0000000..f087446 --- /dev/null +++ b/gnu/packages/imlib2.scm @@ -0,0 +1,78 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2014 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 imlib2) + #:use-module (guix packages) + #:use-module (guix download) + #:use-module (guix build-system gnu) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (gnu packages xorg) + #:use-module (gnu packages image) + #:use-module (gnu packages giflib) + #:use-module (gnu packages compression) + #:use-module (gnu packages fontutils) + #:use-module (gnu packages pkg-config)) + +(define-public imlib2 + (package + (name "imlib2") + (version "1.4.6") + (source (origin + (method url-fetch) + (uri (string-append + "mirror://sourceforge/enlightenment/imlib2-" + version ".tar.gz")) + (sha256 + (base32 + "0kjggg4gfn6chi8v1xddd5qwk1fbnl7rvd93qiclv5v11s615k0p")))) + (build-system gnu-build-system) + (arguments + '(;; Will be fixed in the next release: + ;; . + #:phases (alist-cons-before + 'configure 'patch-config + (lambda _ + (substitute* "imlib2-config.in" + (("@my_libs@") ""))) + %standard-phases))) + (native-inputs + `(("pkgconfig" ,pkg-config))) + (inputs + `(("libx11" ,libx11) + ("libxext" ,libxext) + ("freetype" ,freetype) + ("libjpeg" ,libjpeg) + ("libpng" ,libpng) + ("libtiff" ,libtiff) + ("giflib" ,giflib) + ("bzip2" ,bzip2))) + (home-page "http://sourceforge.net/projects/enlightenment/") + (synopsis + "Library for loading, saving, rendering and manipulating image files") + (description + "Imlib2 is a library that does image file loading and saving as well as +rendering, manipulation, arbitrary polygon support, etc. + +It does ALL of these operations FAST. Imlib2 also tries to be highly +intelligent about doing them, so writing naive programs can be done easily, +without sacrificing speed. + +This is a complete rewrite over the Imlib 1.x series. The architecture is +more modular, simple, and flexible.") + (license (license:bsd-style "file://COPYING" + "See COPYING in the distribution.")))) -- 2.1.0