]> spindle.queued.net Git - midori/commitdiff
Provide default adblock config with easylist
authorChristian Dywan <christian@twotoasts.de>
Fri, 2 Oct 2009 21:13:47 +0000 (23:13 +0200)
committerChristian Dywan <christian@twotoasts.de>
Fri, 2 Oct 2009 23:37:07 +0000 (01:37 +0200)
data/extensions/adblock/config [new file with mode: 0644]
wscript

diff --git a/data/extensions/adblock/config b/data/extensions/adblock/config
new file mode 100644 (file)
index 0000000..8b1daa5
--- /dev/null
@@ -0,0 +1,2 @@
+[settings]
+filters=http://adblockplus.mozdev.org/easylist/easylist.txt
diff --git a/wscript b/wscript
index de8d81376c381416353a4d54c965c999b5355d5c..8c0df7409ea086a59485a4b2b10b19a21034ca03 100644 (file)
--- a/wscript
+++ b/wscript
@@ -454,6 +454,16 @@ def build (bld):
     bld.install_files ('${MDATADIR}/' + APPNAME + '/res', 'data/speeddial.json')
     bld.install_files ('${MDATADIR}/' + APPNAME + '/res', 'data/mootools.js')
 
+    # FIXME: Determine the library naming for other platforms
+    if Options.platform == 'linux':
+        extensions = os.listdir ('data/extensions')
+        for extension in extensions:
+            folder = 'lib' + extension + '.so'
+            source = 'data/extensions/' + extension +  '/config'
+            if os.path.exists (source):
+                bld.install_files ('${SYSCONFDIR}/' + APPNAME + \
+                                   '/extensions/' + folder, source)
+
     if Options.commands['check']:
         bld.add_subdirs ('tests')