mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
Fix build on 9.2 and remove dependency to gcc [1].
PR: 188940 Submitted by: tijl [1] Reported by: Walter Schwarzenfeld <w.schwarzenfeld@utanet.at>
This commit is contained in:
parent
8a99b01709
commit
c9b6304881
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=352004
@ -3,7 +3,7 @@
|
||||
|
||||
PORTNAME= notify-osd
|
||||
PORTVERSION= 0.9.29
|
||||
PORTREVISION= 6
|
||||
PORTREVISION= 7
|
||||
CATEGORIES= deskutils
|
||||
MASTER_SITES= http://launchpadlibrarian.net/43419242/ \
|
||||
CRITICAL
|
||||
@ -23,8 +23,16 @@ GNU_CONFIGURE= yes
|
||||
USES= gmake libtool pkgconfig
|
||||
USE_GNOME= libwnck gconf2
|
||||
USE_XORG= pixman
|
||||
USE_GCC= yes
|
||||
|
||||
LDFLAGS+= -L${LOCALBASE}/lib -lpixman-1
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} '/SUBDIRS =/s/tests//' ${WRKSRC}/Makefile.in
|
||||
.if ${OSVERSION} < 900033
|
||||
@${REINPLACE_CMD} 's/-Bsymbolic-functions/-Bsymbolic/' \
|
||||
${WRKSRC}/src/Makefile.in
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,21 +0,0 @@
|
||||
--- tests/test-synchronous.c.orig 2011-08-16 13:55:36.000000000 +0200
|
||||
+++ tests/test-synchronous.c 2011-08-16 13:56:05.000000000 +0200
|
||||
@@ -38,7 +38,7 @@ send_normal (const gchar *message)
|
||||
NotifyNotification *n;
|
||||
n = notify_notification_new ("Test notification",
|
||||
g_strdup (message),
|
||||
- "", NULL);
|
||||
+ "");
|
||||
notify_notification_show (n, NULL);
|
||||
g_object_unref(G_OBJECT(n));
|
||||
}
|
||||
@@ -53,8 +53,7 @@ send_synchronous (const char *type,
|
||||
if (n == NULL)
|
||||
n = notify_notification_new (" ",
|
||||
"",
|
||||
- g_strdup (icon),
|
||||
- NULL);
|
||||
+ g_strdup (icon));
|
||||
else
|
||||
notify_notification_update (n,
|
||||
" ",
|
@ -1,113 +0,0 @@
|
||||
--- tests/test-withlib.c.orig 2011-08-16 13:52:38.000000000 +0200
|
||||
+++ tests/test-withlib.c 2011-08-16 13:54:51.000000000 +0200
|
||||
@@ -94,7 +94,7 @@ test_withlib_show_notification (void)
|
||||
|
||||
n = notify_notification_new ("Test",
|
||||
"You should see a normal notification",
|
||||
- "", NULL);
|
||||
+ "");
|
||||
notify_notification_show (n, NULL);
|
||||
sleep (3);
|
||||
|
||||
@@ -109,7 +109,7 @@ test_withlib_update_notification (void)
|
||||
|
||||
n = notify_notification_new ("Test",
|
||||
"New notification",
|
||||
- "", NULL);
|
||||
+ "");
|
||||
res = notify_notification_show (n, NULL);
|
||||
g_assert (res);
|
||||
sleep (1);
|
||||
@@ -135,7 +135,7 @@ test_withlib_pass_icon_data (void)
|
||||
|
||||
n = notify_notification_new ("Image Test",
|
||||
"You should see an image",
|
||||
- "", NULL);
|
||||
+ "");
|
||||
g_print ("iconpath: %s\n", SRCDIR"/icons/avatar.png");
|
||||
pixbuf = gdk_pixbuf_new_from_file_at_scale (SRCDIR"/icons/avatar.png",
|
||||
64, 64, TRUE, NULL);
|
||||
@@ -157,22 +157,22 @@ test_withlib_priority (void)
|
||||
|
||||
n1 = notify_notification_new ("Dummy Notification",
|
||||
"This is a test notification",
|
||||
- "", NULL);
|
||||
+ "");
|
||||
notify_notification_show (n1, NULL);
|
||||
n2 = notify_notification_new ("Normal Notification",
|
||||
"You should see this *after* the urgent notification.",
|
||||
- "", NULL);
|
||||
+ "");
|
||||
notify_notification_set_urgency (n2, NOTIFY_URGENCY_LOW);
|
||||
notify_notification_show (n2, NULL);
|
||||
n3 = notify_notification_new ("Synchronous Notification",
|
||||
"You should immediately see this notification.",
|
||||
- "", NULL);
|
||||
+ "");
|
||||
notify_notification_set_hint_string (n3, "synchronous", "test");
|
||||
notify_notification_set_urgency (n3, NOTIFY_URGENCY_NORMAL);
|
||||
notify_notification_show (n3, NULL);
|
||||
n4 = notify_notification_new ("Urgent Notification",
|
||||
"You should see a dialog box, and after, a normal notification.",
|
||||
- "", NULL);
|
||||
+ "");
|
||||
notify_notification_set_urgency (n4, NOTIFY_URGENCY_CRITICAL);
|
||||
notify_notification_show (n4, NULL);
|
||||
|
||||
@@ -207,7 +207,7 @@ test_withlib_actions (void)
|
||||
|
||||
n1 = notify_notification_new ("Notification with an action",
|
||||
"You should see that in a dialog box. Click the 'Action' button for the test to succeed.",
|
||||
- "", NULL);
|
||||
+ "");
|
||||
notify_notification_add_action (n1,
|
||||
"action",
|
||||
"Action",
|
||||
@@ -231,7 +231,7 @@ test_withlib_close_notification (void)
|
||||
|
||||
n = notify_notification_new ("Test Title",
|
||||
"This notification will be closed prematurely...",
|
||||
- "", NULL);
|
||||
+ "");
|
||||
notify_notification_show (n, NULL);
|
||||
|
||||
loop = g_main_loop_new(NULL, FALSE);
|
||||
@@ -256,8 +256,7 @@ test_withlib_append_hint (void)
|
||||
/* init notification, supply first line of body-text */
|
||||
n = notify_notification_new ("Test (append-hint)",
|
||||
"The quick brown fox jumps over the lazy dog.",
|
||||
- SRCDIR"/icons/avatar.png",
|
||||
- NULL);
|
||||
+ SRCDIR"/icons/avatar.png");
|
||||
res = notify_notification_show (n, NULL);
|
||||
g_assert (res);
|
||||
sleep (1);
|
||||
@@ -296,8 +295,7 @@ test_withlib_icon_only_hint (void)
|
||||
/* init notification, supply first line of body-text */
|
||||
n = notify_notification_new (" ", /* needs this to be non-NULL */
|
||||
NULL,
|
||||
- "notification-audio-play",
|
||||
- NULL);
|
||||
+ "notification-audio-play");
|
||||
notify_notification_set_hint_string (n, "icon-only", "allowed");
|
||||
res = notify_notification_show (n, NULL);
|
||||
g_assert (res);
|
||||
@@ -314,8 +312,7 @@ test_withlib_swallow_markup (void)
|
||||
|
||||
n = notify_notification_new ("Swallow markup test",
|
||||
"This text is hopefully neither <b>bold</b>, <i>italic</i> nor <u>underlined</u>.\n\nA little math-notation:\n\n\ta > b < c = 0",
|
||||
- SRCDIR"/icons/avatar.png",
|
||||
- NULL);
|
||||
+ SRCDIR"/icons/avatar.png");
|
||||
res = notify_notification_show (n, NULL);
|
||||
g_assert (res);
|
||||
sleep (2);
|
||||
@@ -341,7 +338,7 @@ test_withlib_throttle (void)
|
||||
|
||||
// create dummy notification
|
||||
snprintf (buf, 19, "Test #%.2d", i);
|
||||
- n = notify_notification_new (buf, buf, "", NULL);
|
||||
+ n = notify_notification_new (buf, buf, "");
|
||||
|
||||
// inject it into the queue
|
||||
res = notify_notification_show (n, &error);
|
Loading…
Reference in New Issue
Block a user