summaryrefslogtreecommitdiff
path: root/xfce-extra/thunar-dropbox/files/thunar-dropbox-0.2.0-wscript.patch
diff options
context:
space:
mode:
authorBlackNoxis <steven.darklight@gmail.com>2014-02-15 23:24:26 +0200
committerBlackNoxis <steven.darklight@gmail.com>2014-02-15 23:24:26 +0200
commit7224c1253228e5c29c78cb3f0f26ce34770f2356 (patch)
tree1684924656132935256e034f35f92abee6623265 /xfce-extra/thunar-dropbox/files/thunar-dropbox-0.2.0-wscript.patch
Added ebuilds for kogaion desktop
Diffstat (limited to 'xfce-extra/thunar-dropbox/files/thunar-dropbox-0.2.0-wscript.patch')
-rw-r--r--xfce-extra/thunar-dropbox/files/thunar-dropbox-0.2.0-wscript.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/xfce-extra/thunar-dropbox/files/thunar-dropbox-0.2.0-wscript.patch b/xfce-extra/thunar-dropbox/files/thunar-dropbox-0.2.0-wscript.patch
new file mode 100644
index 00000000..cb434205
--- /dev/null
+++ b/xfce-extra/thunar-dropbox/files/thunar-dropbox-0.2.0-wscript.patch
@@ -0,0 +1,36 @@
+thunar-dropbox-0.2.0
+Disable gtk-update-icon-cache, install library with proper permissions,
+respect --libdir.
+slawomir.nizio at sabayon.org
+--- wscript
++++ wscript
+@@ -13,11 +13,13 @@
+ def set_options(opt):
+ opt.tool_options('compiler_cc')
+ opt.tool_options('gnu_dirs')
++ opt.add_option('--libdir', action='store', default="/usr/lib", help="libdir")
+
+ def configure(conf):
+ conf.check_tool('compiler_cc')
+ conf.check_cfg(package='thunarx-2', uselib_store='THUNARX', mandatory=True, args='--cflags --libs')
+ conf.check_cfg(package='gio-2.0', uselib_store='GIO', mandatory=True, args='--cflags --libs')
++ conf.env.LIBDIR = Options.options.libdir
+
+ def build(bld):
+ prog = bld.new_task_gen('cc', 'cshlib')
+@@ -27,14 +29,4 @@
+ prog.includes = 'src'
+ prog.find_sources_in_dirs('src')
+ bld.install_files('${PREFIX}/share/icons/hicolor/16x16/apps', 'data/icons/hicolor/16x16/apps/thunar-dropbox.png')
+- bld.install_as('${PREFIX}/lib/thunarx-2/thunar-dropbox.so', 'libthunar-dropbox.so')
+-
+-def shutdown():
+- if Options.commands['install'] or Options.commands['uninstall']:
+- dir = '%s/share/icons/hicolor' % Build.bld.env['PREFIX']
+- command = 'gtk-update-icon-cache -q -t -f %s 2> /dev/null' % dir
+- try:
+- if Utils.exec_command(command):
+- Utils.pprint('YELLOW', 'Icon cache not updated.')
+- except:
+- pass
++ bld.install_as(bld.env.LIBDIR + '/thunarx-2/thunar-dropbox.so', 'libthunar-dropbox.so', chmod=0755)