From 5ce30ac868f05d04a8f7f68a84b6a6b0563ac9b6 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 11 Nov 2003 16:13:13 +0000 Subject: [PATCH] * Added gqview. svn path=/nixpkgs/trunk/; revision=497 --- pkgs-ng/README | 2 ++ .../applications/graphics/gqview/builder.sh | 10 +++++++++ .../applications/graphics/gqview/default.fix | 22 +++++++++++++++++++ pkgs-ng/system/all-packages-generic.fix | 8 +++++++ pkgs-ng/system/user-environment.fix | 1 + 5 files changed, 43 insertions(+) create mode 100755 pkgs-ng/applications/graphics/gqview/builder.sh create mode 100644 pkgs-ng/applications/graphics/gqview/default.fix diff --git a/pkgs-ng/README b/pkgs-ng/README index 1130c091c7e1..b315e1bfb7e5 100644 --- a/pkgs-ng/README +++ b/pkgs-ng/README @@ -84,6 +84,8 @@ ELSE IF it's an APPLICATION: ./applications/version-management ELSE IF it's for VIDEO playback/etc: ./applications/video + ELSE IF it's for GRAPHICS viewing/editing/etc: + ./applications/graphics ELSE IF it's for NETWORKING: IF it's a MAILREADER: ./applications/networking/mailreaders diff --git a/pkgs-ng/applications/graphics/gqview/builder.sh b/pkgs-ng/applications/graphics/gqview/builder.sh new file mode 100755 index 000000000000..be377db22781 --- /dev/null +++ b/pkgs-ng/applications/graphics/gqview/builder.sh @@ -0,0 +1,10 @@ +#! /bin/sh + +buildinputs="$pkgconfig $gtk $libpng" +. $stdenv/setup || exit 1 + +tar xvfz $src || exit 1 +cd gqview-* || exit 1 +./configure --prefix=$out || exit 1 +make || exit 1 +make install || exit 1 diff --git a/pkgs-ng/applications/graphics/gqview/default.fix b/pkgs-ng/applications/graphics/gqview/default.fix new file mode 100644 index 000000000000..e9edb7f0bd00 --- /dev/null +++ b/pkgs-ng/applications/graphics/gqview/default.fix @@ -0,0 +1,22 @@ +{stdenv, fetchurl, pkgconfig, gtk, libpng}: + +assert !isNull pkgconfig && !isNull gtk && !isNull png; +# Note that we cannot just copy gtk's png attribute, since gtk might +# not be linked against png. +assert libpng == gtk.libpng; + +derivation { + name = "gqview-1.3.5"; + system = stdenv.system; + + builder = ./builder.sh; + src = fetchurl { + url = http://heanet.dl.sourceforge.net/sourceforge/gqview/gqview-1.3.5.tar.gz; + md5 = "c44687bdd636ea6e5133fb936abf880a"; + }; + + stdenv = stdenv; + pkgconfig = pkgconfig; + gtk = gtk; + libpng = libpng; +} diff --git a/pkgs-ng/system/all-packages-generic.fix b/pkgs-ng/system/all-packages-generic.fix index d7262dfa56a2..9ac251446180 100644 --- a/pkgs-ng/system/all-packages-generic.fix +++ b/pkgs-ng/system/all-packages-generic.fix @@ -384,4 +384,12 @@ alsa = alsaLib; }; + gqview = (import ../applications/graphics/gqview) { + fetchurl = fetchurl; + stdenv = stdenv; + pkgconfig = pkgconfig; + gtk = gtk; + libpng = libpng; + }; + } diff --git a/pkgs-ng/system/user-environment.fix b/pkgs-ng/system/user-environment.fix index 0cc450754608..c868f3d62c12 100644 --- a/pkgs-ng/system/user-environment.fix +++ b/pkgs-ng/system/user-environment.fix @@ -16,6 +16,7 @@ pkgs.sylpheed pkgs.firebird pkgs.MPlayer + pkgs.gqview ]; # Create a user environment.