forked from ports/contrib
libido3: initial commit
This commit is contained in:
parent
6725e3a6f1
commit
babe1f8aa5
27
libido3/.footprint
Normal file
27
libido3/.footprint
Normal file
@ -0,0 +1,27 @@
|
||||
drwxr-xr-x root/root usr/
|
||||
drwxr-xr-x root/root usr/include/
|
||||
drwxr-xr-x root/root usr/include/libido3-0.1/
|
||||
drwxr-xr-x root/root usr/include/libido3-0.1/libido/
|
||||
-rw-r--r-- root/root usr/include/libido3-0.1/libido/idocalendarmenuitem.h
|
||||
-rw-r--r-- root/root usr/include/libido3-0.1/libido/idoentrymenuitem.h
|
||||
-rw-r--r-- root/root usr/include/libido3-0.1/libido/idomessagedialog.h
|
||||
-rw-r--r-- root/root usr/include/libido3-0.1/libido/idorange.h
|
||||
-rw-r--r-- root/root usr/include/libido3-0.1/libido/idoscalemenuitem.h
|
||||
-rw-r--r-- root/root usr/include/libido3-0.1/libido/idoswitchmenuitem.h
|
||||
-rw-r--r-- root/root usr/include/libido3-0.1/libido/idotimeline.h
|
||||
-rw-r--r-- root/root usr/include/libido3-0.1/libido/libido.h
|
||||
drwxr-xr-x root/root usr/lib/
|
||||
drwxr-xr-x root/root usr/lib/girepository-1.0/
|
||||
-rw-r--r-- root/root usr/lib/girepository-1.0/Ido3-0.1.typelib
|
||||
-rwxr-xr-x root/root usr/lib/libido3-0.1.la
|
||||
lrwxrwxrwx root/root usr/lib/libido3-0.1.so -> libido3-0.1.so.0.0.0
|
||||
lrwxrwxrwx root/root usr/lib/libido3-0.1.so.0 -> libido3-0.1.so.0.0.0
|
||||
-rwxr-xr-x root/root usr/lib/libido3-0.1.so.0.0.0
|
||||
drwxr-xr-x root/root usr/lib/pkgconfig/
|
||||
-rw-r--r-- root/root usr/lib/pkgconfig/libido3-0.1.pc
|
||||
drwxr-xr-x root/root usr/share/
|
||||
drwxr-xr-x root/root usr/share/gir-1.0/
|
||||
-rw-r--r-- root/root usr/share/gir-1.0/Ido3-0.1.gir
|
||||
drwxr-xr-x root/root usr/share/vala/
|
||||
drwxr-xr-x root/root usr/share/vala/vapi/
|
||||
-rw-r--r-- root/root usr/share/vala/vapi/Ido3-0.1.vapi
|
3
libido3/.md5sum
Normal file
3
libido3/.md5sum
Normal file
@ -0,0 +1,3 @@
|
||||
185a5f489226c3bf9d0c114ad7ed7833 0001-Temporarily-disable-previous-button-drop-shadow-draw.patch
|
||||
b1b77f163d171d72e15627794da7666c ido-optional-ubuntu-private.patch
|
||||
0f834f81ef5aed1a2468aff335ff497e libido3-16.10.tar.gz
|
7
libido3/.signature
Normal file
7
libido3/.signature
Normal file
@ -0,0 +1,7 @@
|
||||
untrusted comment: verify with /etc/ports/contrib.pub
|
||||
RWSagIOpLGJF36ZtoPwIjz+X9oUtcnhmodHQqKKUseQ00izrzma0EZJYgQG82pzZ8LbsqWQAEt9QSu1JBoHcoT4Jtk+tWiMoKQY=
|
||||
SHA256 (Pkgfile) = 7eeef6ca0be8cd18f65b6d2955305bcd08e9cdac5edb2144cc7a997db3e9fb95
|
||||
SHA256 (.footprint) = a1ffe32e490ba5e3b8e0f6c06cf89b31006903faae937c8c9451ccd63372a474
|
||||
SHA256 (libido3-16.10.tar.gz) = 9b205871268379560b00bc960fabc5c0c71b480d4469c738fb01f3f19e20ea6a
|
||||
SHA256 (ido-optional-ubuntu-private.patch) = 9b627a4c7ec2d3f2fa0c28761445e7b961a9ca5a473fe2b8a462018b667e2996
|
||||
SHA256 (0001-Temporarily-disable-previous-button-drop-shadow-draw.patch) = 735fdec1318655026840686d8c581cdd87d7aefed8b6ea8ea53901d3c903ed88
|
@ -0,0 +1,34 @@
|
||||
From 9e672e82e01f0bbe11869a4b67bd0a26c9494c50 Mon Sep 17 00:00:00 2001
|
||||
From: Xiao-Long Chen <chenxiaolong@cxl.epac.to>
|
||||
Date: Wed, 29 Oct 2014 00:36:15 -0400
|
||||
Subject: [PATCH] Temporarily disable previous-button drop-shadow drawing
|
||||
|
||||
When indicator-sound is connected to a media player through mpris,
|
||||
a bug in either cairo or ido causes unity-panel-service to segfault
|
||||
---
|
||||
src/idoplaybackmenuitem.c | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/src/idoplaybackmenuitem.c b/src/idoplaybackmenuitem.c
|
||||
index 11af9bb..5fb66da 100644
|
||||
--- a/src/idoplaybackmenuitem.c
|
||||
+++ b/src/idoplaybackmenuitem.c
|
||||
@@ -1443,6 +1443,7 @@ ido_playback_menu_item_draw (GtkWidget* button, cairo_t *cr)
|
||||
MIDDLE_END);
|
||||
}
|
||||
|
||||
+#if 0
|
||||
// draw previous-button drop-shadow
|
||||
if ((item->cur_pushed_button == BUTTON_PREVIOUS && item->keyboard_activated) ||
|
||||
item->cur_hover_button == BUTTON_PREVIOUS)
|
||||
@@ -1485,6 +1486,7 @@ ido_playback_menu_item_draw (GtkWidget* button, cairo_t *cr)
|
||||
_surface_blur (surf, 1);
|
||||
_finalize (cr, &cr_surf, &surf, abs_prev_x, PREV_Y + 1.0f);
|
||||
}
|
||||
+#endif
|
||||
|
||||
// draw previous-button
|
||||
_setup (&cr_surf, &surf, PREV_WIDTH, PREV_HEIGHT);
|
||||
--
|
||||
2.1.2
|
||||
|
23
libido3/Pkgfile
Normal file
23
libido3/Pkgfile
Normal file
@ -0,0 +1,23 @@
|
||||
# Description: Widgets and other objects used for indicators
|
||||
# URL: https://github.com/AyatanaIndicators/ayatana-ido
|
||||
# Maintainer: Tim Biermann, tbier at posteo dot de
|
||||
# Depends on: gtk3 vala gnome-common gtk-doc
|
||||
|
||||
name=libido3
|
||||
version=16.10
|
||||
release=1
|
||||
source=(http://unrealize.co.uk/source/libido3-16.10.tar.gz
|
||||
ido-optional-ubuntu-private.patch
|
||||
0001-Temporarily-disable-previous-button-drop-shadow-draw.patch)
|
||||
|
||||
build() {
|
||||
cd $name-$version
|
||||
sed -e 's/--enable-gtk-doc//g' -i autogen.sh
|
||||
patch -Np1 -i $SRC/ido-optional-ubuntu-private.patch
|
||||
patch -Np1 -i $SRC/0001-Temporarily-disable-previous-button-drop-shadow-draw.patch
|
||||
./autogen.sh
|
||||
./configure --prefix=/usr \
|
||||
--enable-ubuntu-private-api=no
|
||||
make
|
||||
make DESTDIR=$PKG install
|
||||
}
|
69
libido3/ido-optional-ubuntu-private.patch
Normal file
69
libido3/ido-optional-ubuntu-private.patch
Normal file
@ -0,0 +1,69 @@
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -140,6 +140,16 @@ dnl = GTK Doc Check ====================
|
||||
|
||||
GTK_DOC_CHECK([1.8])
|
||||
|
||||
+dnl = GTK+ Ubuntu Private API =================================================
|
||||
+
|
||||
+AC_ARG_ENABLE([ubuntu-private-api],
|
||||
+ [AS_HELP_STRING([--enable-ubuntu-private-api=@<:@no/yes@:>@],
|
||||
+ [Use Ubuntu GTK+ Private API @<:@default=yes@:>@])],
|
||||
+ [enable_ubuntu_private_api="$enableval"],
|
||||
+ [enable_ubuntu_private_api=yes])
|
||||
+
|
||||
+AM_CONDITIONAL([USE_UBUNTU_PRIVATE_API], [test "x$enable_ubuntu_private_api" != xno])
|
||||
+
|
||||
dnl ===========================================================================
|
||||
|
||||
AC_CONFIG_FILES([
|
||||
@@ -160,6 +170,7 @@ echo ""
|
||||
echo " Prefix : ${prefix}"
|
||||
echo " gcov : ${use_gcov}"
|
||||
echo " introspection: ${enable_introspection}"
|
||||
+echo " ubuntu gtk+ : ${enable_ubuntu_private_api}"
|
||||
echo ""
|
||||
echo " Documentation: ${enable_gtk_doc}"
|
||||
echo ""
|
||||
--- a/src/idomenuitemfactory.c
|
||||
+++ b/src/idomenuitemfactory.c
|
||||
@@ -17,6 +17,7 @@
|
||||
* Lars Uebernickel <lars.uebernickel@canonical.com>
|
||||
*/
|
||||
|
||||
+#ifdef USE_UBUNTU_PRIVATE_API
|
||||
#include <gtk/gtk.h>
|
||||
#include <gtk/ubuntu-private.h>
|
||||
|
||||
@@ -117,3 +118,4 @@ static void
|
||||
ido_menu_item_factory_init (IdoMenuItemFactory *factory)
|
||||
{
|
||||
}
|
||||
+#endif
|
||||
--- a/src/libido.c
|
||||
+++ b/src/libido.c
|
||||
@@ -28,9 +28,11 @@
|
||||
void
|
||||
ido_init (void)
|
||||
{
|
||||
+#ifdef USE_UBUNTU_PRIVATE_API
|
||||
GType ido_menu_item_factory_get_type (void);
|
||||
|
||||
/* make sure this extension point is registered so that gtk calls it
|
||||
* when finding custom menu items */
|
||||
g_type_ensure (ido_menu_item_factory_get_type ());
|
||||
+#endif
|
||||
}
|
||||
--- a/src/Makefile.am
|
||||
+++ b/src/Makefile.am
|
||||
@@ -68,6 +68,10 @@ AM_CPPFLAGS = \
|
||||
$(MAINTAINER_CFLAGS) \
|
||||
-Wall -Werror -Wextra -Wno-unused-parameter -Wno-error=deprecated-declarations
|
||||
|
||||
+if USE_UBUNTU_PRIVATE_API
|
||||
+AM_CPPFLAGS += -DUSE_UBUNTU_PRIVATE_API
|
||||
+endif
|
||||
+
|
||||
AM_CFLAGS = \
|
||||
$(COVERAGE_CFLAGS)
|
||||
|
Loading…
x
Reference in New Issue
Block a user