From 3e20a89b3d2e0d72900fc69f0f9c3e83f18f04ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Thu, 22 Jan 2009 22:32:02 +0000 Subject: [PATCH] GTK+ 2.14.7 and companion libraries. svn path=/nixpkgs/trunk/; revision=13821 --- .../libraries/gtk-libs/2.14/atk/default.nix | 30 +++++++++++++++ .../libraries/gtk-libs/2.14/default.nix | 25 +++++++++++++ .../libraries/gtk-libs/2.14/glib/default.nix | 27 ++++++++++++++ .../libraries/gtk-libs/2.14/gtk+/default.nix | 37 +++++++++++++++++++ .../libraries/gtk-libs/2.14/pango/default.nix | 34 +++++++++++++++++ pkgs/top-level/all-packages.nix | 7 ++++ 6 files changed, 160 insertions(+) create mode 100644 pkgs/development/libraries/gtk-libs/2.14/atk/default.nix create mode 100644 pkgs/development/libraries/gtk-libs/2.14/default.nix create mode 100644 pkgs/development/libraries/gtk-libs/2.14/glib/default.nix create mode 100644 pkgs/development/libraries/gtk-libs/2.14/gtk+/default.nix create mode 100644 pkgs/development/libraries/gtk-libs/2.14/pango/default.nix diff --git a/pkgs/development/libraries/gtk-libs/2.14/atk/default.nix b/pkgs/development/libraries/gtk-libs/2.14/atk/default.nix new file mode 100644 index 00000000000..320033bad00 --- /dev/null +++ b/pkgs/development/libraries/gtk-libs/2.14/atk/default.nix @@ -0,0 +1,30 @@ +args: with args; + +stdenv.mkDerivation rec { + name = "atk-1.24.0"; + + src = fetchurl { + url = "mirror://gnome/sources/atk/1.24/${name}.tar.bz2"; + sha256 = "0mjxliarzcy7iksh6v1npxsqdpc9sjj3q4wcl567asbdzdpbd803"; + }; + + buildInputs = [pkgconfig perl]; + propagatedBuildInputs = [glib]; + + meta = { + description = "ATK, the accessibility toolkit"; + + longDescription = '' + ATK is the Accessibility Toolkit. It provides a set of generic + interfaces allowing accessibility technologies such as screen + readers to interact with a graphical user interface. Using the + ATK interfaces, accessibility tools have full access to view and + control running applications. + ''; + + homepage = http://library.gnome.org/devel/atk/; + + license = "LGPLv2+"; + }; + +} diff --git a/pkgs/development/libraries/gtk-libs/2.14/default.nix b/pkgs/development/libraries/gtk-libs/2.14/default.nix new file mode 100644 index 00000000000..72e7b0bbf6b --- /dev/null +++ b/pkgs/development/libraries/gtk-libs/2.14/default.nix @@ -0,0 +1,25 @@ +args: with args; + +# FIXME: Someone please upgrade the remaining libraries in `legacy'. +let legacy = { + inherit ((import ../2.12) args) glibmm gtkmm; + }; +in + + rec { + + glib = (import ./glib) args; + + atk = (import ./atk) (args // { inherit glib; }); + + pango = (import ./pango) (args // { inherit glib; }); + + gtk = (import ./gtk+) (args // { + inherit glib atk pango; + }); + + } + + // + + legacy diff --git a/pkgs/development/libraries/gtk-libs/2.14/glib/default.nix b/pkgs/development/libraries/gtk-libs/2.14/glib/default.nix new file mode 100644 index 00000000000..fa575b13a6e --- /dev/null +++ b/pkgs/development/libraries/gtk-libs/2.14/glib/default.nix @@ -0,0 +1,27 @@ +args: with args; + +stdenv.mkDerivation rec { + name = "glib-2.18.4"; + + src = fetchurl { + url = "mirror://gnome/sources/glib/2.18/${name}.tar.bz2"; + sha256 = "00711nscyya6j1kdda7sbxy01qspccpvmnmc8f4kip4zbs22rsva"; + }; + + buildInputs = [pkgconfig gettext perl]; + + meta = { + description = "GLib, a C library of programming buildings blocks"; + + longDescription = '' + GLib provides the core application building blocks for libraries + and applications written in C. It provides the core object + system used in GNOME, the main loop implementation, and a large + set of utility functions for strings and common data structures. + ''; + + homepage = http://www.gtk.org/; + + license = "LGPLv2+"; + }; +} diff --git a/pkgs/development/libraries/gtk-libs/2.14/gtk+/default.nix b/pkgs/development/libraries/gtk-libs/2.14/gtk+/default.nix new file mode 100644 index 00000000000..99d84d62285 --- /dev/null +++ b/pkgs/development/libraries/gtk-libs/2.14/gtk+/default.nix @@ -0,0 +1,37 @@ +args: with args; + +stdenv.mkDerivation rec { + name = "gtk+-2.14.7"; + + src = fetchurl { + url = "mirror://gnome/sources/gtk+/2.14/${name}.tar.bz2"; + sha256 = "053yn2fdxhqd4jhds4j96daw2zd4cfw5wx9vf4szrfidwll4fbz8"; + }; + + buildInputs = [ pkgconfig perl jasper ]; + + propagatedBuildInputs = [ + x11 glib atk pango libtiff libjpeg libpng cairo libXrandr + ] ++ stdenv.lib.optional xineramaSupport libXinerama; + + passthru = { inherit libtiff libjpeg libpng; }; + + meta = { + description = "A multi-platform toolkit for creating graphical user interfaces"; + + longDescription = '' + GTK+ is a highly usable, feature rich toolkit for creating + graphical user interfaces which boasts cross platform + compatibility and an easy to use API. GTK+ it is written in C, + but has bindings to many other popular programming languages + such as C++, Python and C# among others. GTK+ is licensed + under the GNU LGPL 2.1 allowing development of both free and + proprietary software with GTK+ without any license fees or + royalties. + ''; + + homepage = http://www.gtk.org/; + + license = "LGPLv2+"; + }; +} diff --git a/pkgs/development/libraries/gtk-libs/2.14/pango/default.nix b/pkgs/development/libraries/gtk-libs/2.14/pango/default.nix new file mode 100644 index 00000000000..9c69cfc226b --- /dev/null +++ b/pkgs/development/libraries/gtk-libs/2.14/pango/default.nix @@ -0,0 +1,34 @@ +args: with args; + +stdenv.mkDerivation rec { + name = "pango-1.20.5"; + + src = fetchurl { + url = "mirror://gnome/sources/pango/1.20/${name}.tar.bz2"; + sha256 = "1cpsm32prbxwq7hhfpc2f6a1hhz61nnllpy9sqr4r8hqmm5skxc6"; + }; + + buildInputs = [pkgconfig]; + + propagatedBuildInputs = [x11 glib cairo libpng]; + + # The configure script doesn't seem to pick up the Cairo cflags. + preConfigure = '' + CAIRO_CFLAGS=$(pkg-config --cflags cairo --debug) + ''; + + meta = { + description = "A library for laying out and rendering of text, with an emphasis on internationalization"; + + longDescription = '' + Pango is a library for laying out and rendering of text, with an + emphasis on internationalization. Pango can be used anywhere + that text layout is needed, though most of the work on Pango so + far has been done in the context of the GTK+ widget toolkit. + Pango forms the core of text and font handling for GTK+-2.x. + ''; + + homepage = http://www.pango.org/; + license = "LGPLv2+"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b07f2e16ab7..e87773f3f79 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3066,6 +3066,13 @@ let xineramaSupport = true; }; + gtkLibs214 = import ../development/libraries/gtk-libs/2.14 { + inherit fetchurl stdenv pkgconfig gettext perl x11 jasper + libtiff libjpeg libpng cairo libsigcxx cairomm; + inherit (xlibs) libXinerama libXrandr; + xineramaSupport = true; + }; + gtkmozembedsharp = import ../development/libraries/gtkmozembed-sharp { inherit fetchurl stdenv mono pkgconfig monoDLLFixer; inherit (gnome) gtk;