2011-09-10 11:13:51 +02:00
|
|
|
#! /usr/bin/env python
|
|
|
|
|
|
|
|
from waflib import Utils
|
|
|
|
|
|
|
|
def build(bld):
|
|
|
|
|
2016-07-25 23:33:54 +02:00
|
|
|
def post_update(bld):
|
2011-09-10 11:13:51 +02:00
|
|
|
try:
|
|
|
|
bld.exec_command(["update-mime-database", Utils.subst_vars("${DATADIR}/mime", bld.env)])
|
|
|
|
bld.exec_command(["update-desktop-database", Utils.subst_vars("${DATADIR}/applications", bld.env)])
|
2016-07-25 23:33:54 +02:00
|
|
|
except Exception:
|
2011-09-10 11:13:51 +02:00
|
|
|
pass
|
|
|
|
|
2016-07-25 23:33:54 +02:00
|
|
|
if bld.cmd == 'install':
|
|
|
|
bld.add_post_fun(post_update)
|
|
|
|
|
2011-09-10 11:13:51 +02:00
|
|
|
bld(
|
|
|
|
features = "intltool_in",
|
|
|
|
podir = "../po",
|
2014-09-22 18:53:57 +02:00
|
|
|
style = "desktop",
|
2011-09-10 11:13:51 +02:00
|
|
|
source = 'kupfer.desktop.in',
|
|
|
|
target = 'kupfer.desktop',
|
|
|
|
install_path = "${DATADIR}/applications",
|
|
|
|
)
|
|
|
|
|
|
|
|
bld(
|
|
|
|
features = "intltool_in",
|
|
|
|
podir = "../po",
|
2014-09-22 18:53:57 +02:00
|
|
|
style = "xml",
|
2011-09-10 11:13:51 +02:00
|
|
|
source = 'kupfer-mimetypes.xml.in',
|
|
|
|
target = 'kupfer-mimetypes.xml',
|
|
|
|
install_path = "${DATADIR}/mime/packages/",
|
|
|
|
)
|
|
|
|
|
|
|
|
|