From 93e56fc27cf34833d787dc6d6d59ee4d141daf41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Thu, 16 Apr 2009 10:19:15 +0000 Subject: [PATCH] GTK+ 2.16 and companion libraries. svn path=/nixpkgs/branches/stdenv-updates/; revision=15079 --- .../libraries/gtk-libs/2.16/atk/default.nix | 30 +++++++++++++++ .../libraries/gtk-libs/2.16/default.nix | 20 ++++++++++ .../libraries/gtk-libs/2.16/glib/default.nix | 27 ++++++++++++++ .../gtk-libs/2.16/glibmm/default.nix | 21 +++++++++++ .../libraries/gtk-libs/2.16/gtk+/default.nix | 37 +++++++++++++++++++ .../libraries/gtk-libs/2.16/gtkmm/default.nix | 31 ++++++++++++++++ .../libraries/gtk-libs/2.16/pango/default.nix | 29 +++++++++++++++ .../gtk-libs/2.16/pangomm/default.nix | 28 ++++++++++++++ pkgs/top-level/all-packages.nix | 7 ++++ 9 files changed, 230 insertions(+) create mode 100644 pkgs/development/libraries/gtk-libs/2.16/atk/default.nix create mode 100644 pkgs/development/libraries/gtk-libs/2.16/default.nix create mode 100644 pkgs/development/libraries/gtk-libs/2.16/glib/default.nix create mode 100644 pkgs/development/libraries/gtk-libs/2.16/glibmm/default.nix create mode 100644 pkgs/development/libraries/gtk-libs/2.16/gtk+/default.nix create mode 100644 pkgs/development/libraries/gtk-libs/2.16/gtkmm/default.nix create mode 100644 pkgs/development/libraries/gtk-libs/2.16/pango/default.nix create mode 100644 pkgs/development/libraries/gtk-libs/2.16/pangomm/default.nix diff --git a/pkgs/development/libraries/gtk-libs/2.16/atk/default.nix b/pkgs/development/libraries/gtk-libs/2.16/atk/default.nix new file mode 100644 index 000000000000..320033bad009 --- /dev/null +++ b/pkgs/development/libraries/gtk-libs/2.16/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.16/default.nix b/pkgs/development/libraries/gtk-libs/2.16/default.nix new file mode 100644 index 000000000000..89abc0e62086 --- /dev/null +++ b/pkgs/development/libraries/gtk-libs/2.16/default.nix @@ -0,0 +1,20 @@ +args: with args; + +rec { + + glib = (import ./glib) args; + + atk = (import ./atk) (args // { inherit glib; }); + + pango = (import ./pango) (args // { inherit glib cairo; }); + + gtk = (import ./gtk+) (args // { + inherit glib atk pango; + }); + + glibmm = (import ./glibmm) (args // { inherit glib; }); + + pangomm = (import ./pangomm) (args // { inherit pango glibmm cairomm; }); + + gtkmm = (import ./gtkmm) (args // { inherit gtk atk glibmm pangomm; }); +} diff --git a/pkgs/development/libraries/gtk-libs/2.16/glib/default.nix b/pkgs/development/libraries/gtk-libs/2.16/glib/default.nix new file mode 100644 index 000000000000..1966c426e2a1 --- /dev/null +++ b/pkgs/development/libraries/gtk-libs/2.16/glib/default.nix @@ -0,0 +1,27 @@ +args: with args; + +stdenv.mkDerivation rec { + name = "glib-2.20.1"; + + src = fetchurl { + url = "mirror://gnome/sources/glib/2.20/${name}.tar.bz2"; + sha256 = "0ndgshcqzpj3piwmag3vrsv3rg4pnr12y70knl7z0k2i03cy5bav"; + }; + + 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.16/glibmm/default.nix b/pkgs/development/libraries/gtk-libs/2.16/glibmm/default.nix new file mode 100644 index 000000000000..952591011570 --- /dev/null +++ b/pkgs/development/libraries/gtk-libs/2.16/glibmm/default.nix @@ -0,0 +1,21 @@ +args: with args; + +stdenv.mkDerivation rec { + name = "glibmm-2.18.1"; + + src = fetchurl { + url = "mirror://gnome/sources/glibmm/2.18/${name}.tar.bz2"; + sha256 = "0jg65hv6pwxqk4fabsjjz2zwn5hb6rgy3szj956avliarbliyr3r"; + }; + + buildInputs = [pkgconfig]; + propagatedBuildInputs = [glib libsigcxx]; + + meta = { + description = "C++ interface to the GLib library"; + + homepage = http://gtkmm.org/; + + license = "LGPLv2+"; + }; +} diff --git a/pkgs/development/libraries/gtk-libs/2.16/gtk+/default.nix b/pkgs/development/libraries/gtk-libs/2.16/gtk+/default.nix new file mode 100644 index 000000000000..ee2fec4ce0b6 --- /dev/null +++ b/pkgs/development/libraries/gtk-libs/2.16/gtk+/default.nix @@ -0,0 +1,37 @@ +args: with args; + +stdenv.mkDerivation rec { + name = "gtk+-2.16.1"; + + src = fetchurl { + url = "mirror://gnome/sources/gtk+/2.16/${name}.tar.bz2"; + sha256 = "0l3dfznv07nmzavqp0shr5qf66alb6xyzmiq728hgygmnayky7rg"; + }; + + 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.16/gtkmm/default.nix b/pkgs/development/libraries/gtk-libs/2.16/gtkmm/default.nix new file mode 100644 index 000000000000..2379dc04c120 --- /dev/null +++ b/pkgs/development/libraries/gtk-libs/2.16/gtkmm/default.nix @@ -0,0 +1,31 @@ +args: with args; + +stdenv.mkDerivation rec { + name = "gtkmm-2.14.3"; + + src = fetchurl { + url = "mirror://gnome/sources/gtkmm/2.14/${name}.tar.bz2"; + sha256 = "18jral2lv9jv02d3balh0mi0wgbqhrz5y2laclri1skccc2q3c94"; + }; + + buildInputs = [pkgconfig]; + propagatedBuildInputs = [ glibmm gtk atk cairomm pangomm ]; + + meta = { + description = "C++ interface to the GTK+ graphical user interface library"; + + longDescription = '' + gtkmm is the official C++ interface for the popular GUI library + GTK+. Highlights include typesafe callbacks, and a + comprehensive set of widgets that are easily extensible via + inheritance. You can create user interfaces either in code or + with the Glade User Interface designer, using libglademm. + There's extensive documentation, including API reference and a + tutorial. + ''; + + homepage = http://gtkmm.org/; + + license = "LGPLv2+"; + }; +} diff --git a/pkgs/development/libraries/gtk-libs/2.16/pango/default.nix b/pkgs/development/libraries/gtk-libs/2.16/pango/default.nix new file mode 100644 index 000000000000..bbf4e63cd130 --- /dev/null +++ b/pkgs/development/libraries/gtk-libs/2.16/pango/default.nix @@ -0,0 +1,29 @@ +args: with args; + +stdenv.mkDerivation rec { + name = "pango-1.24.1"; + + src = fetchurl { + url = "mirror://gnome/sources/pango/1.24/${name}.tar.bz2"; + sha256 = "1cls9cbk6sx81101gh2pkiri8v14shqpvy37cydbh8scs4yk8370"; + }; + + buildInputs = [pkgconfig]; + + propagatedBuildInputs = [x11 glib cairo libpng]; + + 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/development/libraries/gtk-libs/2.16/pangomm/default.nix b/pkgs/development/libraries/gtk-libs/2.16/pangomm/default.nix new file mode 100644 index 000000000000..ca43437574e5 --- /dev/null +++ b/pkgs/development/libraries/gtk-libs/2.16/pangomm/default.nix @@ -0,0 +1,28 @@ +args: with args; + +stdenv.mkDerivation rec { + name ="pangomm-2.14.1"; + + src = fetchurl { + url = "mirror://gnome/sources/pangomm/2.14/${name}.tar.bz2"; + sha256 = "0mrm5hv8kb84qzb97lqbipzzc8g0b97pfgz2hqq33xs2ha3lswnp"; + }; + + buildInputs = [ pkgconfig ]; + propagatedBuildInputs = [ pango glibmm cairomm libpng ]; + + meta = { + description = "C++ interface to the Pango text rendering library"; + + 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 01d8741da3df..996e56b5630d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3157,6 +3157,13 @@ let xineramaSupport = true; }; + gtkLibs216 = import ../development/libraries/gtk-libs/2.16 { + 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;