unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Alex Vong <alexvong1995@gmail.com>
To: 30598@debbugs.gnu.org
Cc: alexvong1995@gmail.com
Subject: [bug#30598] [PATCH 4/5] gnu: Add perl-gtk2.
Date: Tue, 27 Feb 2018 02:51:02 +0800	[thread overview]
Message-ID: <87371nmvop.fsf@gmail.com> (raw)
In-Reply-To: <87sh9qvuhz.fsf@gmail.com>


[-- Attachment #1.1: 0004-gnu-Add-perl-gtk2.patch --]
[-- Type: text/x-diff, Size: 2494 bytes --]

From 92c6e1eedf87c38eb24a76aff41e8a1366ea6ebc Mon Sep 17 00:00:00 2001
From: Alex Vong <alexvong1995@gmail.com>
Date: Sun, 25 Feb 2018 06:51:09 +0800
Subject: [PATCH 4/5] gnu: Add perl-gtk2.

* gnu/packages/gtk.scm (perl-gtk2): New public variable.
---
 gnu/packages/gtk.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/gtk.scm b/gnu/packages/gtk.scm
index 2939e4f64..1eb1bffb6 100644
--- a/gnu/packages/gtk.scm
+++ b/gnu/packages/gtk.scm
@@ -17,6 +17,7 @@
 ;;; Copyright © 2017 Roel Janssen <roel@gnu.org>
 ;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
 ;;; Copyright © 2017 Marius Bakke <mbakke@fastmail.com>
+;;; Copyright © 2018 Alex Vong <alexvong1995@gmail.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -40,6 +41,7 @@
   #:use-module (guix download)
   #:use-module (guix git-download)
   #:use-module (guix build-system gnu)
+  #:use-module (guix build-system perl)
   #:use-module (guix build-system python)
   #:use-module (guix build-system waf)
   #:use-module (gnu packages)
@@ -1238,6 +1240,33 @@ targeted at GTK 2.x, and can be used in conjunction with gnome-python to
 write GNOME applications.")
     (license license:lgpl2.1+)))
 
+(define-public perl-gtk2
+  (package
+    (name "perl-gtk2")
+    (version "1.24992")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "mirror://cpan/authors/id/X/XA/XAOC/Gtk2-"
+                                  version ".tar.gz"))
+              (sha256
+               (base32
+                "1044rj3wbfmgaif2jb0k28m2aczli6ai2n5yvn6pr7zjyw16kvd2"))))
+    (build-system perl-build-system)
+    (native-inputs
+     `(("perl-extutils-depends" ,perl-extutils-depends)
+       ("perl-extutils-pkgconfig" ,perl-extutils-pkgconfig)))
+    (inputs
+     `(("gtk+" ,gtk+-2)))
+    (propagated-inputs
+     `(("perl-pango" ,perl-pango)))
+    (home-page "http://search.cpan.org/dist/Gtk2/")
+    (synopsis "Perl interface to the 2.x series of the Gimp Toolkit library")
+    (description "Perl bindings to the 2.x series of the Gtk+ widget set.
+This module allows you to write graphical user interfaces in a Perlish and
+object-oriented way, freeing you from the casting and memory management in C,
+yet remaining very close in spirit to original API.")
+    (license license:lgpl2.1+)))
+
 (define-public girara
   (package
     (name "girara")
-- 
2.16.2


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]

  parent reply	other threads:[~2018-02-26 18:52 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-24 23:27 [bug#30598] [PATCH 0/5] gnu: Add youtube-viewer Alex Vong
2018-02-24 23:30 ` [bug#30598] [PATCH 1/5] gnu: Add perl-cairo Alex Vong
2018-02-24 23:31 ` [bug#30598] [PATCH 2/5] gnu: Add perl-glib Alex Vong
2018-02-24 23:32 ` [bug#30598] [PATCH 3/5] gnu: Add perl-pango Alex Vong
2018-02-24 23:33 ` [bug#30598] [PATCH 4/5] gnu: Add perl-gtk2 Alex Vong
2018-02-24 23:33 ` [bug#30598] [PATCH 5/5] gnu: Add youtube-viewer Alex Vong
2018-02-26  0:58   ` Marius Bakke
2018-02-26  1:03 ` [bug#30598] [PATCH 0/5] " Marius Bakke
2018-02-26 19:30   ` Alex Vong
2018-02-28 16:07     ` bug#30598: " Marius Bakke
2018-02-26 18:49 ` [bug#30598] [PATCH 1/5] gnu: Add perl-cairo Alex Vong
2018-02-26 18:49 ` [bug#30598] [PATCH 2/5] gnu: Add perl-glib Alex Vong
2018-02-26 18:50 ` [bug#30598] [PATCH 3/5] gnu: Add perl-pango Alex Vong
2018-02-26 18:51 ` Alex Vong [this message]
2018-02-26 18:51 ` [bug#30598] [PATCH 5/5] gnu: Add youtube-viewer Alex Vong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87371nmvop.fsf@gmail.com \
    --to=alexvong1995@gmail.com \
    --cc=30598@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).