configure, meson: missing OpenRaster MIME type in desktop file.
Adding support for .ora files when Python plug-ins are installed.
This commit is contained in:
parent
dffab0e9a4
commit
1de810f6de
2 changed files with 7 additions and 6 deletions
11
configure.ac
11
configure.ac
|
|
@ -2287,12 +2287,10 @@ GOAT_EXERCISES="goat-exercise-c$BUILD_EXEEXT"
|
|||
|
||||
# By default, we want packagers to install Python plug-ins to get the
|
||||
# optimum experience. --with-python=yes will check for a Python 3
|
||||
# interpreter and PyGObject, and fails without.
|
||||
# --with-python=force will install the plug-ins even though the
|
||||
# dependencies are not found at build time. It is up to the packager to
|
||||
# ensure they are available at run time. This can be useful in
|
||||
# particular when cross-compiling since anyway the interpreter is not
|
||||
# useful at build time.
|
||||
# interpreter and PyGObject, but still succeeds without, simply
|
||||
# outputting a warning (these are runtime not build dependencies).
|
||||
# This can be useful in particular when cross-compiling since anyway the
|
||||
# interpreter is not useful at build time.
|
||||
# --with-python=no won't install Python plug-ins. It is discouraged.
|
||||
AC_ARG_WITH(python,
|
||||
[ --with-python=no|yes install Python 3 plug-ins (default=yes)], ,
|
||||
|
|
@ -2324,6 +2322,7 @@ WARNING: ${warning_python}
|
|||
AC_SUBST(PYBIN_PATH)
|
||||
|
||||
GOAT_EXERCISES="$GOAT_EXERCISES:goat-exercise-py3.py"
|
||||
MIME_TYPES="$MIME_TYPES;image/openraster"
|
||||
else
|
||||
with_python="no (disabled)"
|
||||
fi
|
||||
|
|
|
|||
|
|
@ -959,6 +959,8 @@ if have_python
|
|||
warning(python_warning)
|
||||
warnings += python_warning
|
||||
endif
|
||||
|
||||
MIMEtypes += 'image/openraster'
|
||||
endif
|
||||
|
||||
## Javascript
|
||||
|
|
|
|||
Loading…
Reference in a new issue