diff options
author | drochner <drochner@pkgsrc.org> | 2012-07-04 18:04:44 +0000 |
---|---|---|
committer | drochner <drochner@pkgsrc.org> | 2012-07-04 18:04:44 +0000 |
commit | b2959f8e52f4a65957d487c205ad6ac42799fa0e (patch) | |
tree | 6aeced3759afcb3420786a8b9c8b68c33f1e3138 /games | |
parent | 6bcb42ca7515cf4c20726510f93343a455e19534 (diff) | |
download | pkgsrc-b2959f8e52f4a65957d487c205ad6ac42799fa0e.tar.gz |
add xcowsay-1.3, an X11 version of cowsay, from Leonardo Taccari
per pkgsrc-wip
Diffstat (limited to 'games')
-rw-r--r-- | games/xcowsay/DESCR | 2 | ||||
-rw-r--r-- | games/xcowsay/Makefile | 22 | ||||
-rw-r--r-- | games/xcowsay/PLIST | 11 | ||||
-rw-r--r-- | games/xcowsay/distinfo | 7 | ||||
-rw-r--r-- | games/xcowsay/options.mk | 14 | ||||
-rw-r--r-- | games/xcowsay/patches/patch-aa | 26 | ||||
-rw-r--r-- | games/xcowsay/patches/patch-ab | 13 |
7 files changed, 95 insertions, 0 deletions
diff --git a/games/xcowsay/DESCR b/games/xcowsay/DESCR new file mode 100644 index 00000000000..7fcdc9f70ec --- /dev/null +++ b/games/xcowsay/DESCR @@ -0,0 +1,2 @@ +xcowsay displays a cute cow and message on your desktop. Inspired by the +original cowsay. diff --git a/games/xcowsay/Makefile b/games/xcowsay/Makefile new file mode 100644 index 00000000000..5479c598eeb --- /dev/null +++ b/games/xcowsay/Makefile @@ -0,0 +1,22 @@ +# $NetBSD: Makefile,v 1.1 2012/07/04 18:04:44 drochner Exp $ +# + +DISTNAME= xcowsay-1.3 +CATEGORIES= misc +MASTER_SITES= http://www.nickg.me.uk/files/ + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://www.doof.me.uk/xcowsay/ +COMMENT= Display a cow and message on your desktop +LICENSE= gnu-gpl-v3 + +PKG_DESTDIR_SUPPORT= user-destdir + +GNU_CONFIGURE= yes +USE_PKGLOCALEDIR= yes +USE_TOOLS+= pkg-config + +.include "options.mk" + +.include "../../x11/gtk2/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/games/xcowsay/PLIST b/games/xcowsay/PLIST new file mode 100644 index 00000000000..33f7000e498 --- /dev/null +++ b/games/xcowsay/PLIST @@ -0,0 +1,11 @@ +@comment $NetBSD: PLIST,v 1.1 2012/07/04 18:04:44 drochner Exp $ +bin/xcowdream +bin/xcowfortune +bin/xcowsay +bin/xcowthink +man/man6/xcowsay.6 +share/locale/pt_BR/LC_MESSAGES/xcowsay.mo +share/locale/ru/LC_MESSAGES/xcowsay.mo +share/xcowsay/cow_large.png +share/xcowsay/cow_med.png +share/xcowsay/cow_small.png diff --git a/games/xcowsay/distinfo b/games/xcowsay/distinfo new file mode 100644 index 00000000000..a7b082c105b --- /dev/null +++ b/games/xcowsay/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1 2012/07/04 18:04:44 drochner Exp $ + +SHA1 (xcowsay-1.3.tar.gz) = 3af39a051a3bbd9940f3aa315f492099bb22bdad +RMD160 (xcowsay-1.3.tar.gz) = 485ebcc25ee2e31a8731debe1b8d4b790cc6ed4b +Size (xcowsay-1.3.tar.gz) = 269836 bytes +SHA1 (patch-aa) = 6873d5147406cad6098c326eb1d95fc684f64812 +SHA1 (patch-ab) = a4d2eb918a7983fd5e1eb75ae94a01d2fdee8ef9 diff --git a/games/xcowsay/options.mk b/games/xcowsay/options.mk new file mode 100644 index 00000000000..59886a26556 --- /dev/null +++ b/games/xcowsay/options.mk @@ -0,0 +1,14 @@ +# $NetBSD: options.mk,v 1.1 2012/07/04 18:04:44 drochner Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.xcowsay +PKG_SUPPORTED_OPTIONS= dbus + +.include "../../mk/bsd.options.mk" + +# +# D-BUS support +# +.if !empty(PKG_OPTIONS:Mdbus) +CONFIGURE_ARGS+= --enable-dbus +. include "../../sysutils/dbus-glib/buildlink3.mk" +.endif diff --git a/games/xcowsay/patches/patch-aa b/games/xcowsay/patches/patch-aa new file mode 100644 index 00000000000..312d26717b5 --- /dev/null +++ b/games/xcowsay/patches/patch-aa @@ -0,0 +1,26 @@ +$NetBSD: patch-aa,v 1.1 2012/07/04 18:04:44 drochner Exp $ + +--- src/xcowsayd.c.orig 2010-09-27 20:27:52.000000000 +0000 ++++ src/xcowsayd.c +@@ -141,8 +141,10 @@ static gpointer cow_display_thread(gpoin + display_cow(debug, mess, false, mode); + gdk_threads_leave(); + ++ g_mutex_lock(display_lock); + g_cond_wait(display_complete, display_lock); +- ++ g_mutex_unlock(display_lock); ++ + request_complete(); + } + +@@ -266,7 +268,9 @@ void run_cowsay_daemon(bool debug, int a + + debug_msg("Cowsay daemon starting...\n"); + for (;;) { ++ gdk_threads_enter(); + gtk_main(); ++ gdk_threads_leave(); + g_cond_signal(display_complete); + } + diff --git a/games/xcowsay/patches/patch-ab b/games/xcowsay/patches/patch-ab new file mode 100644 index 00000000000..bd2cee0579b --- /dev/null +++ b/games/xcowsay/patches/patch-ab @@ -0,0 +1,13 @@ +$NetBSD: patch-ab,v 1.1 2012/07/04 18:04:44 drochner Exp $ + +--- src/xcowsay.c.orig 2010-11-06 15:32:35.000000000 +0000 ++++ src/xcowsay.c +@@ -252,7 +252,7 @@ int main(int argc, char **argv) + parse_config_file(); + + int c, index = 0, failure = 0; +- const char *spec = "hvld:rt:f:"; ++ const char *spec = "hvld:r:t:f:"; + const char *dream_file = NULL; + while ((c = getopt_long(argc, argv, spec, long_options, &index)) != -1) { + switch (c) { |