gnu: Use define-public to export packages.

* gnu/packages/bison.scm (bison): Define public.
* gnu/packages/flex.scm (flex): Define public.
* gnu/packages/pulseaudio.scm (libsndfile, libsamplerate, pulseaudio): Define
public.
* gnu/packages/sdl.scm (sdl, sdl2, libmikmod, sdl-gfx, sdl-image, sdl-mixer,
sdl-net, sdl-ttf): Define public.
* gnu/packages/search.scm (xapian): Remove unnecessary #:export.
* gnu/packages/swig.scm (swig): Define public.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
David Craven 2016-07-29 10:23:51 +02:00 committed by Ludovic Courtès
parent 35e4b3d546
commit 0160458bf8
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
6 changed files with 21 additions and 38 deletions

View File

@ -24,10 +24,9 @@
#:use-module (gnu packages m4) #:use-module (gnu packages m4)
#:use-module (gnu packages perl) #:use-module (gnu packages perl)
#:use-module (gnu packages flex) #:use-module (gnu packages flex)
#:use-module (srfi srfi-1) #:use-module (srfi srfi-1))
#:export (bison))
(define bison (define-public bison
(package (package
(name "bison") (name "bison")
(version "3.0.4") (version "3.0.4")
@ -65,4 +64,3 @@ simple tools through complex programming languages.")
(sha256 (sha256
(base32 (base32
"1zd77ilmpv5mi3kr55jrj6ncqlcnyhpianhrwzak2q28cv2cbn23")))))) "1zd77ilmpv5mi3kr55jrj6ncqlcnyhpianhrwzak2q28cv2cbn23"))))))

View File

@ -26,10 +26,9 @@
#:use-module (gnu packages m4) #:use-module (gnu packages m4)
#:use-module (gnu packages bison) #:use-module (gnu packages bison)
#:use-module (gnu packages indent) #:use-module (gnu packages indent)
#:use-module (srfi srfi-1) #:use-module (srfi srfi-1))
#:export (flex))
(define flex (define-public flex
(package (package
(name "flex") (name "flex")
(version "2.6.0") (version "2.6.0")
@ -79,4 +78,3 @@ regular expressions for each rule. Whenever it finds a match, it
executes the corresponding C code.") executes the corresponding C code.")
(license (non-copyleft "file://COPYING" (license (non-copyleft "file://COPYING"
"See COPYING in the distribution.")))) "See COPYING in the distribution."))))

View File

@ -36,12 +36,9 @@
#:use-module (gnu packages linux) #:use-module (gnu packages linux)
#:use-module (gnu packages m4) #:use-module (gnu packages m4)
#:use-module (gnu packages pkg-config) #:use-module (gnu packages pkg-config)
#:use-module (gnu packages xiph) #:use-module (gnu packages xiph))
#:export (libsndfile
libsamplerate
pulseaudio))
(define libsndfile (define-public libsndfile
(package (package
(name "libsndfile") (name "libsndfile")
(version "1.0.26") (version "1.0.26")
@ -74,7 +71,7 @@ SPARC. Hopefully the design of the library will also make it easy to extend
for reading and writing new sound file formats.") for reading and writing new sound file formats.")
(license l:gpl2+))) (license l:gpl2+)))
(define libsamplerate (define-public libsamplerate
(package (package
(name "libsamplerate") ; aka. Secret Rabbit Code (SRC) (name "libsamplerate") ; aka. Secret Rabbit Code (SRC)
(version "0.1.8") (version "0.1.8")
@ -112,7 +109,7 @@ the theoretical best bandwidth for a given pair of input and output sample
rates.") rates.")
(license l:gpl2+))) (license l:gpl2+)))
(define pulseaudio (define-public pulseaudio
(package (package
(name "pulseaudio") (name "pulseaudio")
(version "8.0") (version "8.0")

View File

@ -38,17 +38,9 @@
#:use-module (gnu packages gl) #:use-module (gnu packages gl)
#:use-module (gnu packages xiph) #:use-module (gnu packages xiph)
#:use-module (gnu packages xorg) #:use-module (gnu packages xorg)
#:export (sdl #:export (sdl-union))
sdl2
libmikmod
sdl-gfx
sdl-image
sdl-mixer
sdl-net
sdl-ttf
sdl-union))
(define sdl (define-public sdl
(package (package
(name "sdl") (name "sdl")
(version "1.2.15") (version "1.2.15")
@ -92,7 +84,7 @@ joystick, and graphics hardware.")
(home-page "http://libsdl.org/") (home-page "http://libsdl.org/")
(license lgpl2.1))) (license lgpl2.1)))
(define sdl2 (define-public sdl2
(package (inherit sdl) (package (inherit sdl)
(name "sdl2") (name "sdl2")
(version "2.0.4") (version "2.0.4")
@ -106,7 +98,7 @@ joystick, and graphics hardware.")
"0jqp46mxxbh9lhpx1ih6sp93k752j2smhpc0ad0q4cb3px0famfs")))) "0jqp46mxxbh9lhpx1ih6sp93k752j2smhpc0ad0q4cb3px0famfs"))))
(license bsd-3))) (license bsd-3)))
(define libmikmod (define-public libmikmod
(package (package
(name "libmikmod") (name "libmikmod")
(version "3.3.7") (version "3.3.7")
@ -131,7 +123,7 @@ system, such as sound redirection over the network.")
(license lgpl2.1) (license lgpl2.1)
(home-page "http://mikmod.sourceforge.net/"))) (home-page "http://mikmod.sourceforge.net/")))
(define sdl-gfx (define-public sdl-gfx
(package (package
(name "sdl-gfx") (name "sdl-gfx")
(version "2.0.24") (version "2.0.24")
@ -155,7 +147,7 @@ other supporting functions for SDL.")
;; MIPS, at least. ;; MIPS, at least.
(supported-systems '("i686-linux" "x86_64-linux")))) (supported-systems '("i686-linux" "x86_64-linux"))))
(define sdl-image (define-public sdl-image
(package (package
(name "sdl-image") (name "sdl-image")
(version "1.2.12") (version "1.2.12")
@ -191,7 +183,7 @@ WEBP, XCF, XPM, and XV.")
(home-page "http://www.libsdl.org/projects/SDL_image/") (home-page "http://www.libsdl.org/projects/SDL_image/")
(license zlib))) (license zlib)))
(define sdl-mixer (define-public sdl-mixer
(package (package
(name "sdl-mixer") (name "sdl-mixer")
(version "1.2.12") (version "1.2.12")
@ -229,7 +221,7 @@ MIDI, Ogg Vorbis, and MP3.")
(home-page "http://www.libsdl.org/projects/SDL_mixer/") (home-page "http://www.libsdl.org/projects/SDL_mixer/")
(license zlib))) (license zlib)))
(define sdl-net (define-public sdl-net
(package (package
(name "sdl-net") (name "sdl-net")
(version "1.2.8") (version "1.2.8")
@ -250,7 +242,7 @@ SDL.")
(home-page "http://www.libsdl.org/projects/SDL_net/") (home-page "http://www.libsdl.org/projects/SDL_net/")
(license zlib))) (license zlib)))
(define sdl-ttf (define-public sdl-ttf
(package (package
(name "sdl-ttf") (name "sdl-ttf")
(version "2.0.11") (version "2.0.11")

View File

@ -26,8 +26,7 @@
#:use-module (gnu packages compression) #:use-module (gnu packages compression)
#:use-module (gnu packages check) #:use-module (gnu packages check)
#:use-module (gnu packages databases) #:use-module (gnu packages databases)
#:use-module (gnu packages linux) #:use-module (gnu packages linux))
#:export (xapian))
(define-public xapian (define-public xapian
(package (package

View File

@ -26,10 +26,9 @@
#:use-module (gnu packages guile) #:use-module (gnu packages guile)
#:use-module (gnu packages boost) #:use-module (gnu packages boost)
#:use-module (gnu packages python) #:use-module (gnu packages python)
#:use-module (gnu packages perl) #:use-module (gnu packages perl))
#:export (swig))
(define swig (define-public swig
(package (package
(name "swig") (name "swig")
(version "3.0.5") (version "3.0.5")