mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
- Add p5-Gtk2-Notify 0.05
Gtk2::Notify provides a Perl XS API to the The Desktop Notifications framework, which provides a standard way of doing passive pop-up notifications on the desktop. WWW: http://search.cpan.org/dist/Gtk2-Notify/ PR: ports/161571 Submitted by: Zhihao Yuan <lichray@gmail.com>
This commit is contained in:
parent
0a00780373
commit
8e60487fda
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=295685
@ -1889,6 +1889,7 @@
|
||||
SUBDIR += p5-Google-Checkout
|
||||
SUBDIR += p5-Google-ProtocolBuffers
|
||||
SUBDIR += p5-Gravatar-URL
|
||||
SUBDIR += p5-Gtk2-Notify
|
||||
SUBDIR += p5-Gtk2-Spell
|
||||
SUBDIR += p5-Guard
|
||||
SUBDIR += p5-HOP-Lexer
|
||||
|
30
devel/p5-Gtk2-Notify/Makefile
Normal file
30
devel/p5-Gtk2-Notify/Makefile
Normal file
@ -0,0 +1,30 @@
|
||||
# New ports collection makefile for: p5-Gtk2-Notify
|
||||
# Date created: 2011-10-13
|
||||
# Whom: Roman Bogorodskiy <novel@FreeBSD.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= Gtk2-Notify
|
||||
PORTVERSION= 0.05
|
||||
CATEGORIES= devel perl5
|
||||
MASTER_SITES= CPAN
|
||||
PKGNAMEPREFIX= p5-
|
||||
|
||||
MAINTAINER= lichray@gmail.com
|
||||
COMMENT= Perl interface to libnotify
|
||||
|
||||
BUILD_DEPENDS= p5-ExtUtils-Depends>=0:${PORTSDIR}/devel/p5-ExtUtils-Depends \
|
||||
p5-ExtUtils-PkgConfig>=0:${PORTSDIR}/devel/p5-ExtUtils-PkgConfig \
|
||||
p5-Glib2>=0:${PORTSDIR}/devel/p5-Glib2 \
|
||||
p5-Gtk2>=0:${PORTSDIR}/x11-toolkits/p5-Gtk2
|
||||
LIB_DEPENDS= notify.4:${PORTSDIR}/devel/libnotify
|
||||
RUN_DEPENDS= p5-Gtk2>=0:${PORTSDIR}/x11-toolkits/p5-Gtk2
|
||||
|
||||
TEST_DEPENDS= p5-Test-Exception>=0:${PORTSDIR}/devel/p5-Test-Exception
|
||||
|
||||
PERL_CONFIGURE= yes
|
||||
|
||||
MAN3= Gtk2::Notify.3 Gtk2::Notify::index.3
|
||||
|
||||
.include <bsd.port.mk>
|
2
devel/p5-Gtk2-Notify/distinfo
Normal file
2
devel/p5-Gtk2-Notify/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (Gtk2-Notify-0.05.tar.gz) = 88189ae68dfbd54615ad133df07e2ec8048d06d8b9586add1227d74eb2ebb047
|
||||
SIZE (Gtk2-Notify-0.05.tar.gz) = 60883
|
51
devel/p5-Gtk2-Notify/files/patch-t-notification.t
Normal file
51
devel/p5-Gtk2-Notify/files/patch-t-notification.t
Normal file
@ -0,0 +1,51 @@
|
||||
--- t/notification.t.orig 2006-08-27 14:11:57.000000000 -0500
|
||||
+++ t/notification.t 2012-04-29 05:36:50.252318938 -0500
|
||||
@@ -2,20 +2,18 @@
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
-use Gtk2::TestHelper tests => 35;
|
||||
+use Gtk2::TestHelper tests => 32;
|
||||
use Test::Exception;
|
||||
use Gtk2::Notify -init, $0;
|
||||
|
||||
ginterfaces_ok('Gtk2::Notify');
|
||||
|
||||
-my $w = Gtk2::Window->new;
|
||||
-my $n = Gtk2::Notify->new('foo', 'bar', '', $w);
|
||||
+my $n = Gtk2::Notify->new('foo', 'bar', '');
|
||||
|
||||
isa_ok($n, 'Gtk2::Notify');
|
||||
|
||||
my @methods = qw(
|
||||
add_action
|
||||
- attach_to_widget
|
||||
clear_actions
|
||||
clear_hints
|
||||
close
|
||||
@@ -46,16 +44,6 @@ lives_ok(sub {
|
||||
}, 42);
|
||||
}, 'add_action');
|
||||
|
||||
-{
|
||||
- my $nw = Gtk2::Window->new;
|
||||
- lives_ok(sub {
|
||||
- $n->attach_to_widget($nw);
|
||||
- }, 'attach_to_widget');
|
||||
- lives_ok(sub {
|
||||
- $n->attach_to_widget($w);
|
||||
- }, 'attach_to_widget');
|
||||
-}
|
||||
-
|
||||
lives_ok(sub {
|
||||
$n->clear_actions;
|
||||
}, 'clear_actions with existing actions');
|
||||
@@ -99,8 +87,6 @@ lives_ok(sub {
|
||||
$n->close;
|
||||
}, 'close before show');
|
||||
|
||||
-$w->show_all;
|
||||
-
|
||||
lives_ok(sub {
|
||||
$n->show;
|
||||
}, 'show');
|
84
devel/p5-Gtk2-Notify/files/patch-xs-Notify.xs
Normal file
84
devel/p5-Gtk2-Notify/files/patch-xs-Notify.xs
Normal file
@ -0,0 +1,84 @@
|
||||
--- xs/Notify.xs.orig 2007-10-04 07:11:13.000000000 -0500
|
||||
+++ xs/Notify.xs 2012-04-29 05:18:14.725067334 -0500
|
||||
@@ -86,26 +86,12 @@ notify_get_server_info (class, OUTLIST c
|
||||
MODULE = Gtk2::Notify PACKAGE = Gtk2::Notify PREFIX = notify_notification_
|
||||
|
||||
NotifyNotification *
|
||||
-notify_notification_new (class, summary, body=NULL, icon=NULL, attach=NULL)
|
||||
+notify_notification_new (class, summary, body=NULL, icon=NULL)
|
||||
const gchar *summary
|
||||
const gchar *body
|
||||
const gchar *icon
|
||||
- GtkWidget_ornull *attach
|
||||
C_ARGS:
|
||||
- summary, body, icon, attach
|
||||
-
|
||||
-#if GTK_CHECK_VERSION (2, 9, 2)
|
||||
-
|
||||
-NotifyNotification *
|
||||
-notify_notification_new_with_status_icon (class, summary, body=NULL, icon=NULL, status_icon=NULL)
|
||||
- const gchar *summary
|
||||
- const gchar *body
|
||||
- const gchar *icon
|
||||
- GtkStatusIcon *status_icon
|
||||
- C_ARGS:
|
||||
- summary, body, icon, status_icon
|
||||
-
|
||||
-#endif
|
||||
+ summary, body, icon
|
||||
|
||||
gboolean
|
||||
notify_notification_update (notification, summary, message=NULL, icon=NULL)
|
||||
@@ -114,27 +100,6 @@ notify_notification_update (notification
|
||||
const gchar *message
|
||||
const gchar *icon
|
||||
|
||||
-void
|
||||
-notify_notification_attach_to_widget (notification, attach)
|
||||
- NotifyNotification *notification
|
||||
- GtkWidget *attach
|
||||
-
|
||||
-#if GTK_CHECK_VERSION (2, 9, 2)
|
||||
-
|
||||
-void
|
||||
-notify_notification_attach_to_status_icon (notification, status_icon)
|
||||
- NotifyNotification *notification
|
||||
- GtkStatusIcon *status_icon
|
||||
-
|
||||
-#endif
|
||||
-
|
||||
-void
|
||||
-notify_notification_set_geometry_hints (notification, screen, x, y)
|
||||
- NotifyNotification *notification
|
||||
- GdkScreen *screen
|
||||
- gint x
|
||||
- gint y
|
||||
-
|
||||
NO_OUTPUT gboolean
|
||||
notify_notification_show (notification)
|
||||
NotifyNotification *notification
|
||||
@@ -168,6 +133,11 @@ notify_notification_set_icon_from_pixbuf
|
||||
GdkPixbuf *icon
|
||||
|
||||
void
|
||||
+notify_notification_set_image_from_pixbuf (notification, pixbuf)
|
||||
+ NotifyNotification *notification
|
||||
+ GdkPixbuf *pixbuf
|
||||
+
|
||||
+void
|
||||
set_hint (notification, key, value)
|
||||
NotifyNotification *notification
|
||||
const gchar *key
|
||||
@@ -197,6 +167,12 @@ notify_notification_set_hint_int32 (noti
|
||||
gint value
|
||||
|
||||
void
|
||||
+notify_notification_set_hint_uint32 (notification, key, value)
|
||||
+ NotifyNotification *notification
|
||||
+ const gchar *key
|
||||
+ guint value
|
||||
+
|
||||
+void
|
||||
notify_notification_set_hint_double (notification, key, value)
|
||||
NotifyNotification *notification
|
||||
const gchar *key
|
5
devel/p5-Gtk2-Notify/pkg-descr
Normal file
5
devel/p5-Gtk2-Notify/pkg-descr
Normal file
@ -0,0 +1,5 @@
|
||||
Gtk2::Notify provides a Perl XS API to the The Desktop Notifications
|
||||
framework, which provides a standard way of doing passive pop-up
|
||||
notifications on the desktop.
|
||||
|
||||
WWW: http://search.cpan.org/dist/Gtk2-Notify/
|
12
devel/p5-Gtk2-Notify/pkg-plist
Normal file
12
devel/p5-Gtk2-Notify/pkg-plist
Normal file
@ -0,0 +1,12 @@
|
||||
%%SITE_PERL%%/%%PERL_ARCH%%/Gtk2/Notify.pm
|
||||
%%SITE_PERL%%/%%PERL_ARCH%%/Gtk2/Notify.pod
|
||||
%%SITE_PERL%%/%%PERL_ARCH%%/Gtk2/Notify/Install/Files.pm
|
||||
%%SITE_PERL%%/%%PERL_ARCH%%/Gtk2/Notify/Install/notify-autogen.h
|
||||
%%SITE_PERL%%/%%PERL_ARCH%%/Gtk2/Notify/Install/notify.typemap
|
||||
%%SITE_PERL%%/%%PERL_ARCH%%/Gtk2/Notify/index.pod
|
||||
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Gtk2/Notify/.packlist
|
||||
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Gtk2/Notify/Notify.bs
|
||||
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Gtk2/Notify/Notify.so
|
||||
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Gtk2/Notify
|
||||
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/Gtk2/Notify/Install
|
||||
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/Gtk2/Notify
|
Loading…
Reference in New Issue
Block a user