summary refs log tree commit diff
path: root/pkgs/desktops/cinnamon
diff options
context:
space:
mode:
authorRoelof Wobben <rwobben@hotmail.com>2013-11-30 17:16:55 +0100
committerVladimír Čunát <vcunat@gmail.com>2013-11-30 22:46:39 +0100
commitf668fd37dff914fdfd310002ac59fbaed9faefa8 (patch)
treee363ce06eb0ae40acd935cd948b23c3c266063ee /pkgs/desktops/cinnamon
parent43b894a5b30f4170433dffc8187ef54011bddf2b (diff)
downloadnixpkgs-f668fd37dff914fdfd310002ac59fbaed9faefa8.tar
nixpkgs-f668fd37dff914fdfd310002ac59fbaed9faefa8.tar.gz
nixpkgs-f668fd37dff914fdfd310002ac59fbaed9faefa8.tar.bz2
nixpkgs-f668fd37dff914fdfd310002ac59fbaed9faefa8.tar.lz
nixpkgs-f668fd37dff914fdfd310002ac59fbaed9faefa8.tar.xz
nixpkgs-f668fd37dff914fdfd310002ac59fbaed9faefa8.tar.zst
nixpkgs-f668fd37dff914fdfd310002ac59fbaed9faefa8.zip
broken patch
Diffstat (limited to 'pkgs/desktops/cinnamon')
-rw-r--r--pkgs/desktops/cinnamon/cjs.nix (renamed from pkgs/desktops/cinnamon/cjs/default.nix)27
-rw-r--r--pkgs/desktops/cinnamon/cjs/fix_configure_ac_gobject.patch186
-rw-r--r--pkgs/desktops/cinnamon/fix_configure_ac_gobject.patch24
3 files changed, 37 insertions, 200 deletions
diff --git a/pkgs/desktops/cinnamon/cjs/default.nix b/pkgs/desktops/cinnamon/cjs.nix
index 381fd26b036..2e5f261b286 100644
--- a/pkgs/desktops/cinnamon/cjs/default.nix
+++ b/pkgs/desktops/cinnamon/cjs.nix
@@ -1,4 +1,5 @@
-{ stdenv, autoreconfHook, fetchurl, pkgconfig, gobjectIntrospection, glib }:
+{ stdenv, fetchurl, pkgconfig, autoreconfHook, python
+, dbus_glib, cairo, spidermonkey_185 }:
 
 stdenv.mkDerivation rec {
   name = "cjs";
@@ -9,31 +10,29 @@ stdenv.mkDerivation rec {
     sha256 = "16iazd5h2z27v9jxs4a8imwls5c1c690wk7i05r5ds3c3r4nrsig";
   };
 
-  buildInputs = [ autoreconfHook pkgconfig gobjectIntrospection glib];
-  
-  patches = [./fix_configure_ac_gobject.patch]; 
-  
-  configureFlags = [
-    "--disable-static"
+  buildInputs = [
+    pkgconfig autoreconfHook python
+    dbus_glib cairo spidermonkey_185
   ];
 
+  patches = [ ./fix_configure_ac_gobject.patch]; 
+  
+  preBuild = "patchShebangs ./scripts";
+
   meta = {
     homepage = "http://cinnamon.linuxmint.com";
-    description = " This module contains JavaScript bindings based on gobject-introspection." ;
-   
+    description = "JavaScript bindings for Cinnamon" ;
+
     longDescription = ''
        This module contains JavaScript bindings based on gobject-introspection.
 
        Because JavaScript is pretty free-form, consistent coding style and unit tests
        are critical to give it some structure and keep it readable.
        We propose that all GNOME usage of JavaScript conform to the style guide
-       in doc/Style_Guide.txt to help keep things sane.      
-
+       in doc/Style_Guide.txt to help keep things sane.
     '';
 
     platforms = stdenv.lib.platforms.linux;
     maintainers = [ stdenv.lib.maintainers.roelof ];
   };
-}
-
-
+}
\ No newline at end of file
diff --git a/pkgs/desktops/cinnamon/cjs/fix_configure_ac_gobject.patch b/pkgs/desktops/cinnamon/cjs/fix_configure_ac_gobject.patch
deleted file mode 100644
index a72c74d651d..00000000000
--- a/pkgs/desktops/cinnamon/cjs/fix_configure_ac_gobject.patch
+++ /dev/null
@@ -1,186 +0,0 @@
-From 88fcac23027d35b2dc4b7dd337d1028c55f68ecc Mon Sep 17 00:00:00 2001
-From: Roelof Wobben <rwobben@hotmail.com>
-Date: Fri, 29 Nov 2013 19:01:24 +0100
-Subject: [PATCH 1/3] fix
-
----
- Makefile.am         |  2 +-
- configure.ac        |  1 +
- m4/introspection.m4 | 89 +++++++++++++++++++++++++++++++++++++++++++++++++++++
- 3 files changed, 91 insertions(+), 1 deletion(-)
- create mode 100644 m4/introspection.m4
-
-diff --git a/Makefile.am b/Makefile.am
-index 8957ede..0d82657 100644
---- a/Makefile.am
-+++ b/Makefile.am
-@@ -16,7 +16,7 @@ cjstest_files_with_tests =
- TEST_PROGS =
- check_PROGRAMS = $(TEST_PROGS)
- INTROSPECTION_GIRS =
--ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS}
-+ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} -Im4
- 
- gjsjsdir = @gjsjsdir@
- gjsoverridedir = $(gjsjsdir)/overrides
-diff --git a/configure.ac b/configure.ac
-index a1433c8..fa208c1 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -11,6 +11,7 @@ AC_INIT([cjs], pkg_version, [http://bugzilla.gnome.org/enter_bug.cgi?product=cjs
- AM_INIT_AUTOMAKE([dist-bzip2 no-dist-gzip])
- AC_CONFIG_SRCDIR([cjs/console.c])
- AC_CONFIG_HEADER([config.h])
-+AC_CONFIG_MACRO_DIR([m4])
- 
- GETTEXT_PACKAGE=cjs
- AC_SUBST([GETTEXT_PACKAGE])
-diff --git a/m4/introspection.m4 b/m4/introspection.m4
-new file mode 100644
-index 0000000..35ab79e
---- /dev/null
-+++ b/m4/introspection.m4
-@@ -0,0 +1,89 @@
-+dnl -*- mode: autoconf -*-
-+dnl Copyright 2009 Johan Dahlin
-+dnl
-+dnl This file is free software; the author(s) gives unlimited
-+dnl permission to copy and/or distribute it, with or without
-+dnl modifications, as long as this notice is preserved.
-+dnl
-+
-+# serial 1
-+
-+m4_define([_GOBJECT_INTROSPECTION_CHECK_INTERNAL],
-+[
-+    AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
-+    AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
-+    AC_BEFORE([LT_INIT],[$0])dnl setup libtool first
-+
-+    dnl enable/disable introspection
-+    m4_if([$2], [require],
-+    [dnl
-+        enable_introspection=yes
-+    ],[dnl
-+        AC_ARG_ENABLE(introspection,
-+                  AS_HELP_STRING([--enable-introspection[=@<:@no/auto/yes@:>@]],
-+                                 [Enable introspection for this build]),,
-+                                 [enable_introspection=auto])
-+    ])dnl
-+
-+    AC_MSG_CHECKING([for gobject-introspection])
-+
-+    dnl presence/version checking
-+    AS_CASE([$enable_introspection],
-+    [no], [dnl
-+        found_introspection="no (disabled, use --enable-introspection to enable)"
-+    ],dnl
-+    [yes],[dnl
-+        PKG_CHECK_EXISTS([gobject-introspection-1.0],,
-+                         AC_MSG_ERROR([gobject-introspection-1.0 is not installed]))
-+        PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $1],
-+                         found_introspection=yes,
-+                         AC_MSG_ERROR([You need to have gobject-introspection >= $1 installed to build AC_PACKAGE_NAME]))
-+    ],dnl
-+    [auto],[dnl
-+        PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $1], found_introspection=yes, found_introspection=no)
-+    ],dnl
-+    [dnl
-+        AC_MSG_ERROR([invalid argument passed to --enable-introspection, should be one of @<:@no/auto/yes@:>@])
-+    ])dnl
-+
-+    AC_MSG_RESULT([$found_introspection])
-+
-+    INTROSPECTION_SCANNER=
-+    INTROSPECTION_COMPILER=
-+    INTROSPECTION_GENERATE=
-+    INTROSPECTION_GIRDIR=
-+    INTROSPECTION_TYPELIBDIR=
-+    if test "x$found_introspection" = "xyes"; then
-+       INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
-+       INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
-+       INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
-+       INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
-+       INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
-+    fi
-+    AC_SUBST(INTROSPECTION_SCANNER)
-+    AC_SUBST(INTROSPECTION_COMPILER)
-+    AC_SUBST(INTROSPECTION_GENERATE)
-+    AC_SUBST(INTROSPECTION_GIRDIR)
-+    AC_SUBST(INTROSPECTION_TYPELIBDIR)
-+
-+    AM_CONDITIONAL(HAVE_INTROSPECTION, test "x$found_introspection" = "xyes")
-+])
-+
-+
-+dnl Usage:
-+dnl   GOBJECT_INTROSPECTION_CHECK([minimum-g-i-version])
-+
-+AC_DEFUN([GOBJECT_INTROSPECTION_CHECK],
-+[
-+  _GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1])
-+])
-+
-+dnl Usage:
-+dnl   GOBJECT_INTROSPECTION_REQUIRE([minimum-g-i-version])
-+
-+
-+AC_DEFUN([GOBJECT_INTROSPECTION_REQUIRE],
-+[
-+  _GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1], [require])
-+])
-+
--- 
-1.8.4.3
-
-
-From e6bbed9baa1eb95abe8fd2655a266295cdf70914 Mon Sep 17 00:00:00 2001
-From: Roelof Wobben <rwobben@hotmail.com>
-Date: Fri, 29 Nov 2013 19:06:21 +0100
-Subject: [PATCH 2/3] test2
-
----
- configure.ac | 2 --
- 1 file changed, 2 deletions(-)
-
-diff --git a/configure.ac b/configure.ac
-index fa208c1..efd6a29 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -119,8 +119,6 @@ else
- fi
- CFLAGS="$save_CFLAGS"
- 
--GOBJECT_INTROSPECTION_REQUIRE([1.32.0])
--
- common_packages="gmodule-2.0 gthread-2.0 gio-2.0 >= glib_required_version mozjs185"
- gjs_packages="gobject-introspection-1.0 libffi $common_packages"
- gjs_cairo_gobject_packages="cairo-gobject $common_packages"
--- 
-1.8.4.3
-
-
-From 4286d5d73b5c66af48de062c637e37d5580d2be4 Mon Sep 17 00:00:00 2001
-From: Roelof Wobben <rwobben@hotmail.com>
-Date: Fri, 29 Nov 2013 19:31:55 +0100
-Subject: [PATCH 3/3] test3
-
----
- configure.ac | 1 -
- 1 file changed, 1 deletion(-)
-
-diff --git a/configure.ac b/configure.ac
-index efd6a29..4f415ae 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -128,7 +128,6 @@ gjs_gdbus_packages="gobject-2.0 >= glib_required_version gio-2.0"
- # gjs-tests links against everything
- gjstests_packages="$gjstests_packages $gjs_packages"
- 
--PKG_CHECK_MODULES([GOBJECT], [gobject-2.0 >= glib_required_version])
- PKG_CHECK_MODULES([GJS], [$gjs_packages])
- # Prefer cairo-gobject if we have it
- PKG_CHECK_MODULES([GJS_CAIRO], [$gjs_cairo_gobject_packages], have_cairo_gobject=yes, have_cairo_gobject=no)
--- 
-1.8.4.3
-
diff --git a/pkgs/desktops/cinnamon/fix_configure_ac_gobject.patch b/pkgs/desktops/cinnamon/fix_configure_ac_gobject.patch
new file mode 100644
index 00000000000..454dde18797
--- /dev/null
+++ b/pkgs/desktops/cinnamon/fix_configure_ac_gobject.patch
@@ -0,0 +1,24 @@
+From cf9d3296fa1077474415e248c43e3acdebef46af Mon Sep 17 00:00:00 2001
+From: Roelof Wobben <rwobben@hotmail.com>
+Date: Sat, 30 Nov 2013 17:02:27 +0100
+Subject: [PATCH] fix
+
+---
+ configure.ac | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/configure.ac b/configure.ac
+index 4b34c01..34ab7f5 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -11,6 +11,7 @@ AC_INIT([cjs], pkg_version, [http://bugzilla.gnome.org/enter_bug.cgi?product=cjs
+ AM_INIT_AUTOMAKE([dist-bzip2 no-dist-gzip])
+ AC_CONFIG_SRCDIR([cjs/console.c])
+ AC_CONFIG_HEADER([config.h])
++AC_CONFIG_MACRO_DIR([m4])
+  
+ GETTEXT_PACKAGE=cjs
+ AC_SUBST([GETTEXT_PACKAGE])
+-- 
+1.8.4.3
+