Import of libunique 1.0.2 :

LibUnique is a library for writing single instance applications, that is
applications that are run once and every further call to the same binary
either exits immediately or sends a command to the running instance.

with tweaks and ok jasper@ ajacoutot@
This commit is contained in:
landry 2008-10-25 12:47:46 +00:00
parent f9ff3ed4a7
commit 0f7ecb0a94
6 changed files with 102 additions and 0 deletions

32
devel/libunique/Makefile Normal file
View File

@ -0,0 +1,32 @@
# $OpenBSD: Makefile,v 1.1.1.1 2008/10/25 12:47:46 landry Exp $
COMMENT = library for writing single instance application
DISTNAME = unique-1.0.2
PKGNAME = lib${DISTNAME}
SHARED_LIBS = unique-1.0 0.0 #.2.0
CATEGORIES = devel
HOMEPAGE = http://live.gnome.org/LibUnique
MASTER_SITES = http://www.gnome.org/~ebassi/source/
# LGPLv2.1
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
USE_LIBTOOL = Yes
CONFIGURE_STYLE = gnu
MODULES = devel/gettext
LIB_DEPENDS = gdk-x11-2.0,gdk_pixbuf-2.0,gtk-x11-2.0::x11/gtk+2 \
dbus-glib-1::x11/dbus-glib
WANTLIB = X11 Xau Xcomposite Xcursor Xdamage Xdmcp Xext Xfixes \
Xi Xinerama Xrandr Xrender atk-1.0 cairo dbus-1 expat \
fontconfig freetype glib-2.0 glitz gmodule-2.0 gobject-2.0 \
m pango-1.0 pangocairo-1.0 pangoft2-1.0 pcre pixman-1 png z
.include <bsd.port.mk>

5
devel/libunique/distinfo Normal file
View File

@ -0,0 +1,5 @@
MD5 (unique-1.0.2.tar.gz) = MGSTCp3V84JkG7sgctE1Yw==
RMD160 (unique-1.0.2.tar.gz) = p5Wg3uUrJN2qyWXGFLu4xuxQw2M=
SHA1 (unique-1.0.2.tar.gz) = lew26zrbwbnAVSgaWpnC5kq4wog=
SHA256 (unique-1.0.2.tar.gz) = kgjeNkfGmrvOVRx6LbV/nmxZ06msNpKJLpG2W18dKBA=
SIZE (unique-1.0.2.tar.gz) = 448032

View File

@ -0,0 +1,21 @@
$OpenBSD: patch-unique_uniqueapp_c,v 1.1.1.1 2008/10/25 12:47:46 landry Exp $
--- unique/uniqueapp.c.orig Wed Oct 1 11:41:59 2008
+++ unique/uniqueapp.c Sat Oct 25 10:55:20 2008
@@ -73,7 +73,7 @@ unique_command_get_type (void)
if (G_UNLIKELY (etype == 0))
{
- const GEnumValue values[] = {
+ static const GEnumValue values[] = {
{ UNIQUE_INVALID, "UNIQUE_INVALID", "invalid" },
{ UNIQUE_ACTIVATE, "UNIQUE_ACTIVATE", "activate" },
{ UNIQUE_NEW, "UNIQUE_NEW", "new" },
@@ -95,7 +95,7 @@ unique_response_get_type (void)
if (G_UNLIKELY (etype == 0))
{
- const GEnumValue values[] = {
+ static const GEnumValue values[] = {
{ UNIQUE_RESPONSE_INVALID, "UNIQUE_RESPONSE_INVALID", "invalid" },
{ UNIQUE_RESPONSE_OK, "UNIQUE_RESPONSE_OK", "ok" },
{ UNIQUE_RESPONSE_CANCEL, "UNIQUE_RESPONSE_CANCEL", "cancel" },

10
devel/libunique/pkg/DESCR Normal file
View File

@ -0,0 +1,10 @@
Unique is a library for writing single instance application. If you
launch a single instance application twice, the second instance will
either just quit or will send a message to the running instance.
Unique makes it easy to write this kind of applications, by providing a
base class, taking care of all the IPC machinery needed to send messages
to a running instance, and also handling the startup notification side.
Unique aims to replace the BaconMessageConnection code that has been
copied by many projects and the code using Bonobo and D-Bus.

View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2008/10/25 12:47:46 landry Exp $
@lib lib/libunique-1.0.so.${LIBunique-1.0_VERSION}

32
devel/libunique/pkg/PLIST Normal file
View File

@ -0,0 +1,32 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2008/10/25 12:47:46 landry Exp $
%%SHARED%%
include/unique-1.0/
include/unique-1.0/unique/
include/unique-1.0/unique/unique.h
include/unique-1.0/unique/uniqueapp.h
include/unique-1.0/unique/uniquebackend.h
include/unique-1.0/unique/uniquemessage.h
include/unique-1.0/unique/uniqueversion.h
lib/libunique-1.0.a
lib/libunique-1.0.la
lib/pkgconfig/
lib/pkgconfig/unique-1.0.pc
share/gtk-doc/
share/gtk-doc/html/
share/gtk-doc/html/unique/
share/gtk-doc/html/unique/UniqueApp.html
share/gtk-doc/html/unique/UniqueBackend.html
share/gtk-doc/html/unique/home.png
share/gtk-doc/html/unique/index.html
share/gtk-doc/html/unique/index.sgml
share/gtk-doc/html/unique/ix01.html
share/gtk-doc/html/unique/left.png
share/gtk-doc/html/unique/license.html
share/gtk-doc/html/unique/right.png
share/gtk-doc/html/unique/style.css
share/gtk-doc/html/unique/unique-Message-Data.html
share/gtk-doc/html/unique/unique-Versioning-Information.html
share/gtk-doc/html/unique/unique-overview.html
share/gtk-doc/html/unique/unique.devhelp
share/gtk-doc/html/unique/unique.devhelp2
share/gtk-doc/html/unique/up.png