summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOz Tiram <[email protected]>2025-04-01 09:46:32 +0200
committerLuke from DC <[email protected]>2025-04-04 22:19:13 +0000
commit2085c6c8e734ec64081b08be6df13b1ebdf6adb8 (patch)
tree87ba096574a44a78d8f6332572e1d7adba9e2842
parent27fc5fef126e173d922db3aa22df12ed6a4aa6ea (diff)
downloadatril-2085c6c8e734ec64081b08be6df13b1ebdf6adb8.tar.bz2
atril-2085c6c8e734ec64081b08be6df13b1ebdf6adb8.tar.xz
chore: remove unused intltool
Signed-off-by: Oz Tiram <[email protected]>
-rw-r--r--backend/djvu/meson.build14
-rw-r--r--backend/dvi/meson.build14
-rw-r--r--backend/epub/meson.build14
-rw-r--r--backend/pdf/meson.build14
-rw-r--r--backend/pixbuf/meson.build14
-rw-r--r--backend/ps/meson.build14
-rw-r--r--backend/tiff/meson.build14
-rw-r--r--backend/xps/meson.build14
-rw-r--r--data/meson.build12
-rw-r--r--meson.build2
10 files changed, 62 insertions, 64 deletions
diff --git a/backend/djvu/meson.build b/backend/djvu/meson.build
index 2b4cfc2e..25ce393c 100644
--- a/backend/djvu/meson.build
+++ b/backend/djvu/meson.build
@@ -26,11 +26,11 @@ shared_module(
install_dir: backendsdir,
)
-custom_target(
- 'djvu_backend',
- input: 'djvudocument.xreader-backend.in',
- output: 'djvudocument.xreader-backend',
- command: [intltool_merge, '-d', '-u', po_dir, '@INPUT@', '@OUTPUT@'],
- install: true,
- install_dir: backendsdir,
+i18n.merge_file(
+ input: 'djvudocument.atril-backend.desktop.in',
+ output: 'djvudocument.atril-backed',
+ type: 'desktop',
+ po_dir: po_dir,
+ install: true,
+ install_dir: backendsdir,
)
diff --git a/backend/dvi/meson.build b/backend/dvi/meson.build
index 612477eb..4ea861d4 100644
--- a/backend/dvi/meson.build
+++ b/backend/dvi/meson.build
@@ -31,11 +31,11 @@ shared_module(
install_dir: backendsdir,
)
-custom_target(
- 'dvi_backend',
- input: 'dvidocument.xreader-backend.in',
- output: 'dvidocument.xreader-backend',
- command: [intltool_merge, '-d', '-u', po_dir, '@INPUT@', '@OUTPUT@'],
- install: true,
- install_dir: backendsdir,
+i18n.merge_file(
+ input: 'dvidocument.atril-backend.desktop.in',
+ output: 'dvidocument.atril-backed',
+ type: 'desktop',
+ po_dir: po_dir,
+ install: true,
+ install_dir: backendsdir,
)
diff --git a/backend/epub/meson.build b/backend/epub/meson.build
index f16b918b..5e3f00b0 100644
--- a/backend/epub/meson.build
+++ b/backend/epub/meson.build
@@ -25,11 +25,11 @@ shared_module(
install_dir: backendsdir,
)
-custom_target(
- 'epub_backend',
- input: 'epubdocument.atril-backend.desktop.in',
- output: 'epubdocument.atril-backend',
- command: [intltool_merge, '-d', '-u', po_dir, '@INPUT@', '@OUTPUT@'],
- install: true,
- install_dir: backendsdir,
+i18n.merge_file(
+ input: 'epubdocument.atril-backend.desktop.in',
+ output: 'epubdocument.atril-backed',
+ type: 'desktop',
+ po_dir: po_dir,
+ install: true,
+ install_dir: backendsdir,
)
diff --git a/backend/pdf/meson.build b/backend/pdf/meson.build
index 7fd40eda..489cc649 100644
--- a/backend/pdf/meson.build
+++ b/backend/pdf/meson.build
@@ -20,11 +20,11 @@ shared_module(
install_dir: backendsdir,
)
-custom_target(
- 'pdf_backend',
- input: 'pdfdocument.atril-backend.desktop.in',
- output: 'pdfdocument.atril-backend',
- command: [intltool_merge, '-d', '-u', po_dir, '@INPUT@', '@OUTPUT@'],
- install: true,
- install_dir: backendsdir,
+i18n.merge_file(
+ input: 'pdfdocument.atril-backend.desktop.in',
+ output: 'pdfdocument.atril-backed',
+ type: 'desktop',
+ po_dir: po_dir,
+ install: true,
+ install_dir: backendsdir,
)
diff --git a/backend/pixbuf/meson.build b/backend/pixbuf/meson.build
index 146a5105..1b0af653 100644
--- a/backend/pixbuf/meson.build
+++ b/backend/pixbuf/meson.build
@@ -20,11 +20,11 @@ shared_module(
install_dir: backendsdir,
)
-custom_target(
- 'pixbuf_backend',
- input: 'pixbufdocument.xreader-backend.in',
- output: 'pixbufdocument.xreader-backend',
- command: [intltool_merge, '-d', '-u', po_dir, '@INPUT@', '@OUTPUT@'],
- install: true,
- install_dir: backendsdir,
+i18n.merge_file(
+ input: 'pixbuf.atril-backend.desktop.in',
+ output: 'pixbuf.atril-backed',
+ type: 'desktop',
+ po_dir: po_dir,
+ install: true,
+ install_dir: backendsdir,
)
diff --git a/backend/ps/meson.build b/backend/ps/meson.build
index b09fe662..e0f57df2 100644
--- a/backend/ps/meson.build
+++ b/backend/ps/meson.build
@@ -21,11 +21,11 @@ shared_module(
install_dir: backendsdir,
)
-custom_target(
- 'ps_backend',
- input: 'psdocument.atril-backend.desktop.in',
- output: 'psdocument.atril-backend',
- command: [intltool_merge, '-d', '-u', po_dir, '@INPUT@', '@OUTPUT@'],
- install: true,
- install_dir: backendsdir,
+i18n.merge_file(
+ input: 'psdocument.atril-backend.desktop.in',
+ output: 'psdocument.atril-backed',
+ type: 'desktop',
+ po_dir: po_dir,
+ install: true,
+ install_dir: backendsdir,
)
diff --git a/backend/tiff/meson.build b/backend/tiff/meson.build
index b0eb52bf..96b9dbd1 100644
--- a/backend/tiff/meson.build
+++ b/backend/tiff/meson.build
@@ -24,11 +24,11 @@ shared_module(
install_dir: backendsdir,
)
-custom_target(
- 'tiff_backend',
- input: 'tiffdocument.atril-backend.desktop.in',
- output: 'tiffdocument.atril-backend',
- command: [intltool_merge, '-d', '-u', po_dir, '@INPUT@', '@OUTPUT@'],
- install: true,
- install_dir: backendsdir,
+i18n.merge_file(
+ input: 'tiffdocument.atril-backend.desktop.in',
+ output: 'tiffdocument.atril-backed',
+ type: 'desktop',
+ po_dir: po_dir,
+ install: true,
+ install_dir: backendsdir,
)
diff --git a/backend/xps/meson.build b/backend/xps/meson.build
index f7ac1991..41c65bba 100644
--- a/backend/xps/meson.build
+++ b/backend/xps/meson.build
@@ -21,11 +21,11 @@ shared_module(
install_dir: backendsdir,
)
-custom_target(
- 'xps_backend',
- input: 'xpsdocument.xreader-backend.in',
- output: 'xpsdocument.xreader-backend',
- command: [intltool_merge, '-d', '-u', po_dir, '@INPUT@', '@OUTPUT@'],
- install: true,
- install_dir: backendsdir,
+i18n.merge_file(
+ input: 'xpsdocument.atril-backend.desktop.in',
+ output: 'xpsdocument.atril-backed',
+ type: 'desktop',
+ po_dir: po_dir,
+ install: true,
+ install_dir: backendsdir,
)
diff --git a/data/meson.build b/data/meson.build
index ea61da21..a24f6ebb 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -31,20 +31,20 @@ desktop = configure_file(
configuration: desktop_conf,
)
-custom_target(
- 'desktop',
+i18n.merge_file(
input: desktop,
output: 'atril.desktop',
- command: [intltool_merge, '-d', '-u', po_dir, '@INPUT@', '@OUTPUT@'],
+ type: 'desktop',
+ po_dir: po_dir,
install: true,
install_dir: desktopdir,
)
-appdata = custom_target(
- 'appdata',
+appdata = i18n.merge_file(
input: 'atril.appdata.xml.in',
output: 'atril.appdata.xml',
- command: [intltool_merge, '-x', '-u', po_dir, '@INPUT@', '@OUTPUT@'],
+ type: 'xml',
+ po_dir: po_dir,
install: true,
install_dir: join_paths(datadir, 'metainfo'),
)
diff --git a/meson.build b/meson.build
index c2d9d1c1..f1b8a45b 100644
--- a/meson.build
+++ b/meson.build
@@ -133,8 +133,6 @@ atril_conf.set_quoted('SUPPORTED_MIMETYPES', atril_mime_types) # This is generat
# on some systems we need to find the math lib to make sure it builds
math = cc.find_library('m', required: false)
-intltool_merge = find_program('intltool-merge')
-
mathjax_directory = get_option('mathjax-directory')
if mathjax_directory == ''
foreach dir: [