diff options
author | Edinaldo P. Silva <edps.mundognu@gmail.com> | 2015-09-11 18:47:44 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-09-11 18:47:44 +0700 |
commit | 792f8ee41dbaee1f5701d878dd5ca4f6d20d5bef (patch) | |
tree | 83562d7a67ea4374881d440fe2e17eee7c561c9c | |
parent | f3aa7130043cf5d7e1a497431d2d22015f77babf (diff) | |
download | slackbuilds-792f8ee41dbaee1f5701d878dd5ca4f6d20d5bef.tar.gz |
libraries/libdbusmenu: Added (library for passing menus over DBus).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | libraries/libdbusmenu/README | 7 | ||||
-rw-r--r-- | libraries/libdbusmenu/g_type_init.patch | 26 | ||||
-rw-r--r-- | libraries/libdbusmenu/libdbusmenu.SlackBuild | 102 | ||||
-rw-r--r-- | libraries/libdbusmenu/libdbusmenu.info | 10 | ||||
-rw-r--r-- | libraries/libdbusmenu/reference-xinclude.patch | 22 | ||||
-rw-r--r-- | libraries/libdbusmenu/slack-desc | 19 |
6 files changed, 186 insertions, 0 deletions
diff --git a/libraries/libdbusmenu/README b/libraries/libdbusmenu/README new file mode 100644 index 0000000000..0bb930475c --- /dev/null +++ b/libraries/libdbusmenu/README @@ -0,0 +1,7 @@ +libdbusmenu (library for passing menus over DBus) + +libdbusmenu is a small little library that was created by pulling out some comon +code out of indicator-applet. + +It passes a menu structure across DBus so that a program can create a menu simply +without worrying about how it is displayed on the other side of the bus. diff --git a/libraries/libdbusmenu/g_type_init.patch b/libraries/libdbusmenu/g_type_init.patch new file mode 100644 index 0000000000..a050f169e4 --- /dev/null +++ b/libraries/libdbusmenu/g_type_init.patch @@ -0,0 +1,26 @@ +--- a/tools/dbusmenu-dumper.c ++++ b/tools/dbusmenu-dumper.c +@@ -388,7 +388,10 @@ + int + main (int argc, char ** argv) + { ++#if GLIB_VERSION_CUR_STABLE < G_ENCODE_VERSION(2, 36) ++ // g_type_init is deprecated after 2.36 + g_type_init(); ++#endif + GError * error = NULL; + GOptionContext * context; + +--- a/tools/testapp/main.c ++++ b/tools/testapp/main.c +@@ -135,7 +135,10 @@ + + int main (int argc, char ** argv) + { ++#if GLIB_VERSION_CUR_STABLE < G_ENCODE_VERSION(2, 36) ++ // g_type_init is deprecated after 2.36 + g_type_init(); ++#endif + + if (argc != 2) { + g_warning(USAGE); diff --git a/libraries/libdbusmenu/libdbusmenu.SlackBuild b/libraries/libdbusmenu/libdbusmenu.SlackBuild new file mode 100644 index 0000000000..03bdc11d85 --- /dev/null +++ b/libraries/libdbusmenu/libdbusmenu.SlackBuild @@ -0,0 +1,102 @@ +#!/bin/sh +# +# Slackware build script for libdbusmenu. +# +# Copyright 2015 Edinaldo P. Silva, Rio de Janeiro, Brazil. +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +PRGNAM=libdbusmenu +VERSION=${VERSION:-12.10.2} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +rm -rf $TMP/$PRGNAM-$VERSION +cd $TMP +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION +chown -R root:root . +find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +patch -p1 < $CWD/g_type_init.patch +patch -p1 < $CWD/reference-xinclude.patch + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/man \ + --docdir=/usr/doc/$PRGNAM-$VERSION \ + --build=$ARCH-slackware-linux + +make +make install DESTDIR=$PKG + +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +DOCS="AUTHORS ChangeLog COPYING* INSTALL NEWS README" + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM-SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/libraries/libdbusmenu/libdbusmenu.info b/libraries/libdbusmenu/libdbusmenu.info new file mode 100644 index 0000000000..2946514cec --- /dev/null +++ b/libraries/libdbusmenu/libdbusmenu.info @@ -0,0 +1,10 @@ +PRGNAM="libdbusmenu" +VERSION="12.10.2" +HOMEPAGE="https://launchpad.net/libdbusmenu/" +DOWNLOAD="https://launchpad.net/libdbusmenu/12.10/12.10.2/+download/libdbusmenu-12.10.2.tar.gz" +MD5SUM="e30fc986b447f62513d61225fa573a70" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="json-glib" +MAINTAINER="Edinaldo P. Silva" +EMAIL="edps.mundognu@gmail.com" diff --git a/libraries/libdbusmenu/reference-xinclude.patch b/libraries/libdbusmenu/reference-xinclude.patch new file mode 100644 index 0000000000..a4e6ee3a0b --- /dev/null +++ b/libraries/libdbusmenu/reference-xinclude.patch @@ -0,0 +1,22 @@ +--- a/docs/libdbusmenu-glib/reference/libdbusmenu-glib-docs.sgml ++++ b/docs/libdbusmenu-glib/reference/libdbusmenu-glib-docs.sgml +@@ -15,9 +15,6 @@ + <xi:include href="xml/menuitem-proxy.xml"/> + <xi:include href="xml/menuitem.xml"/> + <xi:include href="xml/client.xml"/> +- <xi:include href="xml/client-menuitem.xml"/> +- <xi:include href="xml/dbusmenu-client.xml"/> +- <xi:include href="xml/dbusmenu-server.xml"/> + <xi:include href="xml/types.xml"/> + + </chapter> +--- a/docs/libdbusmenu-gtk/reference/libdbusmenu-gtk-docs.sgml ++++ b/docs/libdbusmenu-gtk/reference/libdbusmenu-gtk-docs.sgml +@@ -15,7 +15,6 @@ + <xi:include href="xml/menuitem.xml"/> + <xi:include href="xml/client.xml"/> + <xi:include href="xml/parser.xml"/> +- <xi:include href="xml/serializablemenuitem.xml"/> + + </chapter> + <chapter id="object-tree"> diff --git a/libraries/libdbusmenu/slack-desc b/libraries/libdbusmenu/slack-desc new file mode 100644 index 0000000000..6e0f840eb5 --- /dev/null +++ b/libraries/libdbusmenu/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +libdbusmenu: libdbusmenu (library for passing menus over DBus) +libdbusmenu: +libdbusmenu: libdbusmenu passes a menu structure across DBus so that a program can +libdbusmenu: create a menu simply without worrying about how it is displayed on +libdbusmenu: the other side of the bus. +libdbusmenu: +libdbusmenu: Home page: https://launchpad.net/libdbusmenu/ +libdbusmenu: +libdbusmenu: +libdbusmenu: +libdbusmenu: |