-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4fbb204
commit f51efc2
Showing
15 changed files
with
473 additions
and
282 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
install_data(['gummi.png',], install_dir: join_paths(icondir,'512x512/apps/')) | ||
install_data(['icon.png',], install_dir: join_paths(gummidir,'icons/')) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
subdir('icons') | ||
subdir('misc') | ||
subdir('snippets') | ||
subdir('ui') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
|
||
configure_file(input: 'gummi.desktop.in', output: 'gummi.desktop', install_dir: appdir, install: true, configuration: conf_data) | ||
install_data(['default.tex',], install_dir: join_paths(gummidir,'misc/')) | ||
install_man('gummi.1') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
|
||
install_data(['snippets.cfg',], install_dir: join_paths(gummidir, 'snippets')) | ||
install_data(['snippets.lang',], install_dir: join_paths(gummidir, 'snippets')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
install_data(['gummi.glade',], install_dir: join_paths(gummidir, 'ui')) | ||
install_data(['prefs.glade',], install_dir: join_paths(gummidir, 'ui')) | ||
install_data(['snippets.glade',], install_dir: join_paths(gummidir, 'ui')) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
|
||
install_data(['latex_dvi.sh',], install_dir: join_paths(libdir,'gummi')) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import os | ||
import subprocess | ||
|
||
prefix = os.environ.get('MESON_INSTALL_PREFIX', '/usr/') | ||
datadir = os.path.join(prefix, 'share') | ||
|
||
# Packaging tools define DESTDIR and this isn't needed for them | ||
if not 'DESTDIR' in os.environ: | ||
print('Compiling gsettings schemas...') | ||
subprocess.call(['glib-compile-schemas', os.path.join(datadir, 'glib-2.0', 'schemas')]) | ||
|
||
print('Updating icon cache...') | ||
subprocess.call(['gtk-update-icon-cache', '-qtf', os.path.join(datadir, 'icons', 'hicolor')]) | ||
|
||
print('Updating desktop database...') | ||
subprocess.call(['update-desktop-database', '-q', os.path.join(datadir, 'applications')]) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
project( | ||
'gummi', | ||
'c', | ||
version: '0.8.3', | ||
license: 'MIT', | ||
meson_version: '>=0.50.0' | ||
) | ||
|
||
i18n = import('i18n') | ||
|
||
|
||
#dependency('setconf') | ||
|
||
prefix = get_option('prefix') | ||
bindir = get_option('bindir') | ||
datadir = get_option('datadir') | ||
libdir = get_option('libdir') | ||
localesdir = get_option('localedir') | ||
appdir = join_paths(datadir, 'applications') | ||
policydir = join_paths(datadir, 'polkit-1/actions') | ||
icondir = join_paths(datadir, 'icons/hicolor/') | ||
schemadir = join_paths(datadir, 'glib-2.0/schemas') | ||
mandir = join_paths(datadir, 'man/man1/') | ||
gummidir = join_paths(datadir, meson.project_name()) | ||
|
||
project_dependencies = [ | ||
dependency('gtk+-3.0'), | ||
dependency('glib-2.0'), | ||
dependency('gtksourceview-3.0'), | ||
dependency('gtkspell3-3.0'), | ||
dependency('poppler-glib'), | ||
dependency('synctex'), | ||
] | ||
|
||
build_args = [ | ||
'-Wl,--export-dynamic', | ||
'-DGUMMI_DATA=' + '"' + join_paths(prefix, gummidir) + '"', | ||
'-DGUMMI_LIBS=' + '"' + join_paths(prefix, libdir, meson.project_name()) + '"', | ||
'-DGUMMI_LOCALES=' + '"' + join_paths(prefix, localesdir) + '"', | ||
] | ||
|
||
add_project_arguments([ | ||
'-DGETTEXT_PACKAGE=\"@0@\"'.format(meson.project_name()) | ||
], | ||
language: 'c', | ||
) | ||
|
||
i18n = import('i18n') | ||
|
||
conf_data = configuration_data() | ||
conf_data.set('PACKAGE_NAME', 'Gummi') | ||
conf_data.set('PACKAGE', meson.project_name()) | ||
conf_data.set_quoted('GETTEXT_PACKAGE', meson.project_name()) | ||
conf_data.set_quoted('LOCALEDIR', join_paths(get_option('prefix'), get_option('localedir'))) | ||
|
||
install_data(['COPYING',], install_dir: join_paths(datadir,'licences/gummi/')) | ||
|
||
subdir('src') | ||
subdir('data') | ||
subdir('lib') | ||
subdir('po') | ||
|
||
meson.add_install_script('meson-post-install.py') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ar ca cs da de el es fr hu ie it nl pl pt pt_BR ro ru sv zh_CN zh_TW |
Oops, something went wrong.