mid-kid
7 years ago
21 changed files with 295 additions and 57 deletions
@ -0,0 +1,22 @@ |
|||
+++ plugins/trayicon.py
|
|||
@@ -110,8 +110,6 @@
|
|||
self.window = self.shell.get_window() |
|||
self.minimize_to_tray_delete_handler = self.window.connect("delete_event", |
|||
self.trayicon_minimize_on_close) |
|||
- self.minimize_to_tray_minimize_handler = self.window.connect("window-state-event",
|
|||
- self.window_state_event_cb)
|
|||
|
|||
# show the window if it is hidden when starting liferea |
|||
self.window.deiconify() |
|||
@@ -123,11 +121,6 @@
|
|||
self.feedlist_new_items_cb_id = sigid |
|||
self.feedlist = feedlist |
|||
|
|||
- def window_state_event_cb(self, widget, event):
|
|||
- "Hide window when minimize"
|
|||
- if event.changed_mask & event.new_window_state & Gdk.WindowState.ICONIFIED:
|
|||
- self.window.hide()
|
|||
-
|
|||
def trayicon_click(self, widget, data = None): |
|||
self.window.deiconify() |
|||
self.window.show() |
@ -0,0 +1,38 @@ |
|||
compile_meson() { |
|||
local olddir="$PWD" |
|||
local builddir='build' |
|||
local noinstall=false |
|||
|
|||
local OPTIND=1 |
|||
local opt |
|||
while getopts 'b:I' opt; do case "$opt" in |
|||
b) local builddir="$OPTARG" ;; |
|||
I) local noinstall=true ;; |
|||
esac; done |
|||
shift $(expr $OPTIND - 1) |
|||
[ "$#" -ge 1 ] && [ "$1" = '--' ] && shift || true |
|||
|
|||
mkdir -p "$builddir"; cd "$builddir" |
|||
meson "$olddir" \ |
|||
--buildtype=release \ |
|||
--prefix="/$dir_prefix" \ |
|||
--libdir="/$dir_prefix/$dir_lib" \ |
|||
--libexecdir="/$dir_prefix/$dir_libexec" \ |
|||
--bindir="/$dir_prefix/$dir_bin" \ |
|||
--sbindir="/$dir_prefix/$dir_sbin" \ |
|||
--includedir="/$dir_prefix/$dir_include" \ |
|||
--datadir="/$dir_prefix/$dir_data" \ |
|||
--mandir="/$dir_prefix/$dir_man" \ |
|||
--infodir="/$dir_prefix/$dir_info" \ |
|||
--localedir="/$dir_prefix/$dir_locale" \ |
|||
--sysconfdir="/$dir_prefix/$dir_sysconf" \ |
|||
"$@" |
|||
|
|||
ninja $NINJAFLAGS |
|||
|
|||
if [ "$noinstall" = false ]; then |
|||
DESTDIR="$dir_install" ninja $NINJAFLAGS install |
|||
fi |
|||
|
|||
cd "$olddir" |
|||
} |
@ -0,0 +1,15 @@ |
|||
import 'compile/meson' |
|||
|
|||
name=json-glib |
|||
majver=1.3 |
|||
version=$majver.2 |
|||
update_url="https://download.gnome.org/sources/$name/cache.json" |
|||
|
|||
dlextract "https://download.gnome.org/sources/$name/$majver/$name-$version.tar.xz" \ |
|||
'ff8469fe2f6243dc7e7ffd17a3641618' |
|||
_ |
|||
|
|||
cd "$name-$version" |
|||
compile_meson |
|||
|
|||
# vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab: |
@ -0,0 +1,15 @@ |
|||
import 'compile/configure' |
|||
|
|||
name=libpeas |
|||
majver=1.21 |
|||
version=$majver.0 |
|||
update_url="https://download.gnome.org/sources/$name/cache.json" |
|||
|
|||
dlextract "https://download.gnome.org/sources/$name/$majver/$name-$version.tar.xz" \ |
|||
'2ee1b1507bd0a9da864970ab3f977f33' |
|||
_ |
|||
|
|||
cd "$name-$version" |
|||
compile_configure |
|||
|
|||
# vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab: |
@ -0,0 +1,18 @@ |
|||
import 'compile/configure' |
|||
|
|||
name=libwebp |
|||
version=0.6.0 |
|||
update_url='https://developers.google.com/speed/webp/download' |
|||
|
|||
dlextract "https://storage.googleapis.com/downloads.webmproject.org/releases/webp/$name-$version.tar.gz" \ |
|||
'19a6e926ab1721268df03161b84bb4a0' |
|||
_ |
|||
|
|||
cd "$name-$version" |
|||
compile_configure -- --disable-static \ |
|||
--enable-libwebpmux \ |
|||
--enable-libwebpdemux \ |
|||
--enable-libwebpdecoder \ |
|||
--enable-libwebpextras |
|||
|
|||
# vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab: |
@ -0,0 +1,19 @@ |
|||
import 'compile/configure' |
|||
|
|||
name=liferea |
|||
version=1.12-rc3 |
|||
update_url="https://github.com/lwindolf/$name/releases" |
|||
|
|||
define_option '!patch: Apply some custom patches' |
|||
|
|||
dlextract "https://github.com/lwindolf/$name/releases/download/v$version/$name-$version.tar.bz2" \ |
|||
'7a42afc775ac7b78ea324730052f649a' |
|||
option patch extrafile "$name-$version-dont-hide-window.patch" |
|||
_ |
|||
|
|||
cd "$name-$version" |
|||
option patch patch -p0 -i "../$name-$version-dont-hide-window.patch" |
|||
|
|||
compile_configure -- --disable-schemas-compile |
|||
|
|||
# vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab: |
@ -0,0 +1,18 @@ |
|||
import 'compile/python' |
|||
|
|||
name=meson |
|||
version=0.42.0 |
|||
update_url="https://github.com/mesonbuild/$name/releases" |
|||
|
|||
dlextract "https://github.com/mesonbuild/$name/releases/download/$version/$name-$version.tar.gz" \ |
|||
'b2518db2c56348f17a65d5edb04e0c60' |
|||
_ |
|||
|
|||
cd "$name-$version" |
|||
|
|||
# Fix paths |
|||
sed -i -e "/data_files=\[(/s/share\/man/$(safe_sed "$dir_man")/" setup.py |
|||
|
|||
compile_python 3 |
|||
|
|||
# vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab: |
@ -0,0 +1,18 @@ |
|||
import 'compile/python' |
|||
|
|||
name=pycairo |
|||
version=1.15.1 |
|||
update_url="https://github.com/pygobject/$name/releases" |
|||
|
|||
dlextract "https://github.com/pygobject/$name/releases/download/v$version/$name-$version.tar.gz" \ |
|||
'29620ad9b0fa4a7052760e4fa4b71b4c' |
|||
_ |
|||
|
|||
cd "$name-$version" |
|||
|
|||
# Fix paths |
|||
sed -i -e "/libdir =/s/\"lib\"/\"$(safe_sed "$dir_lib")\"/" setup.py |
|||
|
|||
compile_python 3 |
|||
|
|||
# vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab: |
@ -0,0 +1,15 @@ |
|||
import 'compile/configure' |
|||
|
|||
name=pygobject |
|||
majver=3.25 |
|||
version=$majver.1 |
|||
update_url="https://download.gnome.org/sources/$name/cache.json" |
|||
|
|||
dlextract "https://download.gnome.org/sources/$name/$majver/$name-$version.tar.xz" \ |
|||
'493319f2a9f5931aee82429b02aba375' |
|||
_ |
|||
|
|||
cd "$name-$version" |
|||
compile_configure -- --without-common |
|||
|
|||
# vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab: |
@ -0,0 +1,41 @@ |
|||
import 'compile/cmake' |
|||
|
|||
name=webkitgtk |
|||
version=2.16.6 |
|||
update_url='https://webkitgtk.org/' |
|||
|
|||
dlextract "https://webkitgtk.org/releases/$name-$version.tar.xz" \ |
|||
'0e2d142a586e4ff79cf0324f4fdbf20c' |
|||
_ |
|||
|
|||
cd "$name-$version" |
|||
|
|||
# This is configured to not to be used for a full-fledged web browser, |
|||
# but rather simple things such as a feed reader. |
|||
# As such, I've just went and disabled everything that is shown after configure |
|||
# except for a few performance-related options. |
|||
compile_cmake -- -DPORT=GTK \ |
|||
-DENABLE_ACCELERATED_2D_CANVAS=OFF \ |
|||
-DENABLE_DRAG_SUPPORT=OFF \ |
|||
-DENABLE_GEOLOCATION=OFF \ |
|||
-DENABLE_GLES2=OFF \ |
|||
-DENABLE_GTKDOC=OFF \ |
|||
-DENABLE_ICONDATABASE=OFF \ |
|||
-DENABLE_INTROSPECTION=OFF \ |
|||
-DENABLE_JIT=ON \ |
|||
-DENABLE_MEMORY_SAMPLER=OFF \ |
|||
-DENABLE_MINIBROWSER=OFF \ |
|||
-DENABLE_OPENGL=OFF \ |
|||
-DENABLE_PLUGIN_PROCESS_GTK2=OFF \ |
|||
-DENABLE_QUARTZ_TARGET=OFF \ |
|||
-DENABLE_SAMPLING_PROFILER=OFF \ |
|||
-DENABLE_SPELLCHECK=OFF \ |
|||
-DENABLE_TOUCH_EVENTS=OFF \ |
|||
-DENABLE_VIDEO=OFF \ |
|||
-DENABLE_WEB_AUDIO=OFF \ |
|||
-DUSE_LIBHYPHEN=OFF \ |
|||
-DUSE_LIBNOTIFY=OFF \ |
|||
-DUSE_LIBSECRET=OFF \ |
|||
-DUSE_SYSTEM_MALLOC=ON |
|||
|
|||
# vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab:Tools/Scripts/update-webkitgtk-libs |
Loading…
Reference in new issue