summary refs log tree commit diff
diff options
context:
space:
mode:
authorRoelof Wobben <rwobben@hotmail.com>2013-11-30 09:57:30 +0100
committerVladimír Čunát <vcunat@gmail.com>2013-11-30 22:46:38 +0100
commit34df0b45ba0b4b27bdb3daa2f41faf1a3ad647d7 (patch)
tree921c7eb1f20e3cfaa0ec5e4a72adf64c16791808
parent796a60613e511467620990cdc65c498edf791083 (diff)
downloadnixlib-34df0b45ba0b4b27bdb3daa2f41faf1a3ad647d7.tar
nixlib-34df0b45ba0b4b27bdb3daa2f41faf1a3ad647d7.tar.gz
nixlib-34df0b45ba0b4b27bdb3daa2f41faf1a3ad647d7.tar.bz2
nixlib-34df0b45ba0b4b27bdb3daa2f41faf1a3ad647d7.tar.lz
nixlib-34df0b45ba0b4b27bdb3daa2f41faf1a3ad647d7.tar.xz
nixlib-34df0b45ba0b4b27bdb3daa2f41faf1a3ad647d7.tar.zst
nixlib-34df0b45ba0b4b27bdb3daa2f41faf1a3ad647d7.zip
GJS error
-rw-r--r--pkgs/desktops/cinnamon/cjs/default.nix39
-rw-r--r--pkgs/desktops/cinnamon/cjs/fix_configure_ac_gobject.patch186
-rw-r--r--pkgs/top-level/all-packages.nix2
3 files changed, 227 insertions, 0 deletions
diff --git a/pkgs/desktops/cinnamon/cjs/default.nix b/pkgs/desktops/cinnamon/cjs/default.nix
new file mode 100644
index 000000000000..3b55ae80bb7a
--- /dev/null
+++ b/pkgs/desktops/cinnamon/cjs/default.nix
@@ -0,0 +1,39 @@
+{ stdenv, autoreconfHook, fetchurl }:
+
+stdenv.mkDerivation rec {
+  name = "cjs";
+  version="2.0.0";
+
+  src = fetchurl {
+    url = "http://github.com/linuxmint/cjs/archive/${version}.tar.gz";
+    sha256 = "16iazd5h2z27v9jxs4a8imwls5c1c690wk7i05r5ds3c3r4nrsig";
+  };
+
+  buildInputs = [ autoreconfHook ];
+  
+  patches = [./fix_configure_ac_gobject.patch]; 
+  
+  configureFlags = [
+    "--disable-static"
+  ];
+
+  meta = {
+    homepage = "http://cinnamon.linuxmint.com";
+    description = " This module contains JavaScript bindings based on gobject-introspection." ;
+   
+    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.      
+
+    '';
+
+    platforms = stdenv.lib.platforms.linux;
+    maintainers = [ stdenv.lib.maintainers.roelof ];
+  };
+}
+
+
diff --git a/pkgs/desktops/cinnamon/cjs/fix_configure_ac_gobject.patch b/pkgs/desktops/cinnamon/cjs/fix_configure_ac_gobject.patch
new file mode 100644
index 000000000000..a72c74d651dd
--- /dev/null
+++ b/pkgs/desktops/cinnamon/cjs/fix_configure_ac_gobject.patch
@@ -0,0 +1,186 @@
+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/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 52e9581a57ac..33981913d5ba 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -9523,6 +9523,8 @@ let
 
 
   ### DESKTOP ENVIRONMENTS
+  
+  cjs = callPackage ../desktops/cinnamon/cjs { } ;
 
   enlightenment = callPackage ../desktops/enlightenment { };