diff options
author | ahoka <ahoka@pkgsrc.org> | 2008-12-18 00:32:14 +0000 |
---|---|---|
committer | ahoka <ahoka@pkgsrc.org> | 2008-12-18 00:32:14 +0000 |
commit | d12302c17c999940dc67cfb16752a976384b6151 (patch) | |
tree | f71205f1683077b60b5690a9c2b591f7d3a20430 /x11/libunique | |
parent | a7304d6ffe94834b0276bb7d24af6dbaeeb551fa (diff) | |
download | pkgsrc-d12302c17c999940dc67cfb16752a976384b6151.tar.gz |
Import libunique-1.0.4 as x11/libunique.
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.
Diffstat (limited to 'x11/libunique')
-rw-r--r-- | x11/libunique/DESCR | 10 | ||||
-rw-r--r-- | x11/libunique/Makefile | 24 | ||||
-rw-r--r-- | x11/libunique/PLIST | 27 | ||||
-rw-r--r-- | x11/libunique/buildlink3.mk | 28 | ||||
-rw-r--r-- | x11/libunique/distinfo | 5 | ||||
-rw-r--r-- | x11/libunique/options.mk | 16 |
6 files changed, 110 insertions, 0 deletions
diff --git a/x11/libunique/DESCR b/x11/libunique/DESCR new file mode 100644 index 00000000000..6affc41cc2e --- /dev/null +++ b/x11/libunique/DESCR @@ -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. diff --git a/x11/libunique/Makefile b/x11/libunique/Makefile new file mode 100644 index 00000000000..803d7369b7b --- /dev/null +++ b/x11/libunique/Makefile @@ -0,0 +1,24 @@ +# $NetBSD: Makefile,v 1.1.1.1 2008/12/18 00:32:14 ahoka Exp $ +# + +DISTNAME= unique-1.0.4 +PKGNAME= lib${DISTNAME} +CATEGORIES= devel +MASTER_SITES= http://www.gnome.org/~ebassi/source/ + +MAINTAINER= ahoka@NetBSD.org +HOMEPAGE= http://live.gnome.org/LibUnique +COMMENT= Library for writing single instance applications + +PKG_DESTDIR_SUPPORT= user-destdir + +GNU_CONFIGURE= yes +USE_LIBTOOL= yes +USE_TOOLS+= pkg-config + +PKGCONFIG_OVERRIDE+= unique.pc.in + +.include "options.mk" + +.include "../../x11/gtk2/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/x11/libunique/PLIST b/x11/libunique/PLIST new file mode 100644 index 00000000000..187e45c632a --- /dev/null +++ b/x11/libunique/PLIST @@ -0,0 +1,27 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2008/12/18 00:32:14 ahoka Exp $ +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.la +lib/pkgconfig/unique-1.0.pc +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 +@dirrm share/gtk-doc/html/unique +@dirrm include/unique-1.0/unique +@dirrm include/unique-1.0 diff --git a/x11/libunique/buildlink3.mk b/x11/libunique/buildlink3.mk new file mode 100644 index 00000000000..e3fdd437f01 --- /dev/null +++ b/x11/libunique/buildlink3.mk @@ -0,0 +1,28 @@ +# $NetBSD: buildlink3.mk,v 1.1.1.1 2008/12/18 00:32:14 ahoka Exp $ + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ +LIBUNIQUE_BUILDLINK3_MK:= ${LIBUNIQUE_BUILDLINK3_MK}+ + +.if ${BUILDLINK_DEPTH} == "+" +BUILDLINK_DEPENDS+= libunique +.endif + +BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nlibunique} +BUILDLINK_PACKAGES+= libunique +BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}libunique + +.if ${LIBUNIQUE_BUILDLINK3_MK} == "+" +BUILDLINK_API_DEPENDS.libunique+= libunique>=1.0.4 +BUILDLINK_PKGSRCDIR.libunique?= ../../x11/libunique +.endif # LIBUNIQUE_BUILDLINK3_MK + +pkgbase := libunique +.include "../../mk/pkg-build-options.mk" + +.if !empty(PKG_BUILD_OPTIONS.libunique:Mdbus) +.include "../../sysutils/dbus-glib/buildlink3.mk" +.endif + +.include "../../x11/gtk2/buildlink3.mk" + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//} diff --git a/x11/libunique/distinfo b/x11/libunique/distinfo new file mode 100644 index 00000000000..fffb1d84164 --- /dev/null +++ b/x11/libunique/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2008/12/18 00:32:14 ahoka Exp $ + +SHA1 (unique-1.0.4.tar.gz) = 79a9534507f8f3307561175e021c25214a3191a8 +RMD160 (unique-1.0.4.tar.gz) = ffe4a6b91bd1778662d7116c051f158be2b73f33 +Size (unique-1.0.4.tar.gz) = 448957 bytes diff --git a/x11/libunique/options.mk b/x11/libunique/options.mk new file mode 100644 index 00000000000..26b59ef39a6 --- /dev/null +++ b/x11/libunique/options.mk @@ -0,0 +1,16 @@ +# $NetBSD: options.mk,v 1.1.1.1 2008/12/18 00:32:14 ahoka Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.libunique + +PKG_SUPPORTED_OPTIONS= dbus +PKG_SUGGESTED_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 |