From patchwork Mon Jan 6 08:26:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brett Gilio X-Patchwork-Id: 19610 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 3F2D4179FE; Mon, 6 Jan 2020 08:27:15 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id EA5641798D for ; Mon, 6 Jan 2020 08:27:14 +0000 (GMT) Received: from localhost ([::1]:49320 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ioNjG-0001Jx-D2 for patchwork@mira.cbaines.net; Mon, 06 Jan 2020 03:27:14 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:41881) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ioNj9-0001Jl-Rk for guix-patches@gnu.org; Mon, 06 Jan 2020 03:27:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ioNj5-0002yk-Gp for guix-patches@gnu.org; Mon, 06 Jan 2020 03:27:07 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:38972) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ioNj3-0002xU-Rg for guix-patches@gnu.org; Mon, 06 Jan 2020 03:27:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ioNj3-0002zv-Op for guix-patches@gnu.org; Mon, 06 Jan 2020 03:27:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#38965] [PATCH 02/12] gnu: Add ocaml-lablgtk3. References: <874kx9xa9u.fsf@gnu.org> In-Reply-To: <874kx9xa9u.fsf@gnu.org> Resent-From: Brett Gilio Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 06 Jan 2020 08:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38965 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 38965@debbugs.gnu.org Received: via spool by 38965-submit@debbugs.gnu.org id=B38965.157829920311480 (code B ref 38965); Mon, 06 Jan 2020 08:27:01 +0000 Received: (at 38965) by debbugs.gnu.org; 6 Jan 2020 08:26:43 +0000 Received: from localhost ([127.0.0.1]:44942 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ioNik-0002z6-Pm for submit@debbugs.gnu.org; Mon, 06 Jan 2020 03:26:43 -0500 Received: from eggs.gnu.org ([209.51.188.92]:60916) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ioNij-0002yt-ID for 38965@debbugs.gnu.org; Mon, 06 Jan 2020 03:26:41 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:50841) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ioNib-0002dD-52 for 38965@debbugs.gnu.org; Mon, 06 Jan 2020 03:26:36 -0500 Received: from [2605:6000:1a0d:4c95::3d] (port=48298 helo=oryx) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ioNia-0005HU-GC for 38965@debbugs.gnu.org; Mon, 06 Jan 2020 03:26:32 -0500 From: Brett Gilio Date: Mon, 06 Jan 2020 02:26:41 -0600 Message-ID: <87y2ulvvlq.fsf@gnu.org> MIME-Version: 1.0 Content-Disposition: inline; filename=0002-gnu-Add-ocaml-lablgtk3.patch Content-Description: [PATCH 02/12] gnu: Add ocaml-lablgtk3. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches From 33425dcb8f66b7d7669c08a3f37f276087459717 Mon Sep 17 00:00:00 2001 From: Brett Gilio Date: Mon, 6 Jan 2020 01:26:49 -0600 Subject: [PATCH 02/12] gnu: Add ocaml-lablgtk3. To: guix-patches@gnu.org * gnu/packages/ocaml.scm (ocaml-lablgtk3): New variable. --- gnu/packages/ocaml.scm | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm index 198ff55078..a01ee475c9 100644 --- a/gnu/packages/ocaml.scm +++ b/gnu/packages/ocaml.scm @@ -5273,3 +5273,45 @@ with support for multiple output devices. Currently supported output targets include the X Window System, Quartz, Win32, image buffers, PostScript, PDF, and SVG file output.") (license license:lgpl3+))) + +(define-public ocaml-lablgtk3 + (package + (name "ocaml-lablgtk3") + (version "3.0.beta8") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/garrigue/lablgtk") + (commit version))) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "08pgwnia240i2rw1rbgiahg673kwa7b6bvhsg3z4b47xr5sh9pvz")))) + (build-system dune-build-system) + (arguments + `(#:tests? #f + #:phases + (modify-phases %standard-phases + (add-before 'build 'make-writable + (lambda _ + (for-each (lambda (file) (chmod file #o644)) (find-files "." ".")) + #t))))) + (propagated-inputs + `(("ocaml-cairo2" ,ocaml-cairo2))) + (inputs + `(("camlp5" ,camlp5) + ("gtk+" ,gtk+) + ("gtksourceview-3" ,gtksourceview-3) + ("gtkspell3" ,gtkspell3))) + (native-inputs + `(("pkg-config" ,pkg-config))) + (home-page "https://github.com/garrigue/lablgtk") + (synopsis "OCaml interface to GTK+3") + (description "LablGtk is an OCaml interface to GTK+ 1.2, 2.x and 3.x. It +provides a strongly-typed object-oriented interface that is compatible with the +dynamic typing of GTK+. Most widgets and methods are available. LablGtk +also provides bindings to gdk-pixbuf, the GLArea widget (in combination with +LablGL), gnomecanvas, gnomeui, gtksourceview, gtkspell, libglade (and it can +generate OCaml code from .glade files), libpanel, librsvg and quartz.") + ;; Version 2 only, with linking exception + (license license:lgpl2.0))) -- 2.24.1