You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

156 lines
5.9 KiB

;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2014, 2015 Ludovic Courtès <>
;;; 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
;;; 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 photo)
#:use-module (guix licenses)
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix build-system gnu)
#:use-module (guix build-system perl)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages libusb)
#:use-module (gnu packages autotools)
#:use-module (gnu packages readline)
#:use-module (gnu packages popt)
#:use-module (gnu packages perl)
#:use-module (gnu packages base))
(define-public libexif
(name "libexif")
(version "0.6.21")
(source (origin
(method url-fetch)
(uri (string-append "mirror://sourceforge/libexif/libexif-"
version ".tar.bz2"))
(build-system gnu-build-system)
(home-page "")
(synopsis "Read and manipulate EXIF data in digital photographs")
"The libexif C library allows applications to read, edit, and save EXIF
data as produced by digital cameras.")
(license lgpl2.1+)))
(define-public libgphoto2
(name "libgphoto2")
(version "2.5.2")
(source (origin
(method url-fetch)
(uri (string-append "mirror://sourceforge/gphoto/libgphoto2-"
version ".tar.bz2"))
(build-system gnu-build-system)
(native-inputs `(("pkg-config" ,pkg-config)))
`(;; ("libjpeg-turbo" ,libjpeg-turbo)
("libltdl" ,libltdl)
("libusb" ,libusb)))
`(;; The .pc refers to libexif.
("libexif" ,libexif)))
(home-page "")
(synopsis "Accessing digital cameras")
"This is the library backend for gphoto2. It contains the code for PTP,
MTP, and other vendor specific protocols for controlling and transferring data
from digital cameras.")
;; 'COPYING' says LGPLv2.1+, but in practices files are under LGPLv2+.
(license lgpl2.1+)))
(define-public gphoto2
(name "gphoto2")
(version "2.5.2")
(source (origin
(method url-fetch)
(uri (string-append "mirror://sourceforge/gphoto/gphoto2-"
version ".tar.bz2"))
(build-system gnu-build-system)
`(("pkg-config" ,pkg-config)))
`(("readline" ,readline)
;; ("libjpeg-turbo" ,libjpeg-turbo)
("popt" ,popt)
("libexif" ,libexif)
("libgphoto2" ,libgphoto2)))
'(#:phases (alist-cons-before
'check 'pre-check
(lambda* (#:key inputs #:allow-other-keys)
(substitute* (find-files "tests/data" "\\.param$")
(which "env"))))
;; FIXME: There are 2 test failures, most likely related to the build
;; environment.
#:tests? #f))
(home-page "")
(synopsis "Command-line tools to access digital cameras")
"Gphoto2 is a set of command line utilities for manipulating a large
number of different digital cameras. Through libgphoto2, it supports PTP,
MTP, and much more.")
;; Files are typically under LGPLv2+, but 'COPYING' says GPLv2+.
(license gpl2+)))
(define-public perl-image-exiftool
(name "perl-image-exiftool")
(version "9.70")
(source (origin
(method url-fetch)
(uri (string-append
version ".tar.gz"))
(build-system perl-build-system)
'(#:phases (alist-cons-after
'install 'post-install
(lambda* (#:key outputs #:allow-other-keys)
;; Make sure the 'exiftool' commands finds the library.
;; XXX: Shouldn't it be handled by PERL-BUILD-SYSTEM?
(let* ((out (assoc-ref outputs "out"))
(pm (find-files out "^ExifTool\\.pm$"))
(lib (dirname (dirname (car pm)))))
(wrap-program (string-append out "/bin/exiftool")
`("PERL5LIB" prefix (,lib)))))
(synopsis "Program and Perl library to manipulate EXIF tags")
"This package provides the 'exiftool' command and the 'Image::ExifTool'
Perl library to manipulate EXIF tags of digital images.")
(license (package-license perl))))