font-manager: switch to meson
This commit is contained in:
parent
bc312dc7ee
commit
baa4b0ca57
@ -0,0 +1,13 @@
|
|||||||
|
diff --git a/meson_post_install.py b/meson_post_install.py
|
||||||
|
index 8d00e70..c28d19e 100644
|
||||||
|
--- a/meson_post_install.py
|
||||||
|
+++ b/meson_post_install.py
|
||||||
|
@@ -7,7 +7,7 @@ prefix = environ['MESON_INSTALL_PREFIX']
|
||||||
|
data_dir = path.join(prefix, 'share')
|
||||||
|
schema_dir = path.join(data_dir, 'glib-2.0', 'schemas')
|
||||||
|
|
||||||
|
-if not environ['DESTDIR']:
|
||||||
|
+if not environ.get('DESTDIR'):
|
||||||
|
print('Compiling gsettings schemas...')
|
||||||
|
call(['glib-compile-schemas', schema_dir])
|
||||||
|
print('Updating desktop database...')
|
@ -1,11 +1,10 @@
|
|||||||
{ stdenv, fetchFromGitHub, automake, autoconf, libtool,
|
{ stdenv, fetchFromGitHub, meson, ninja, gettext, python3,
|
||||||
pkgconfig, file, libxml2, json-glib , sqlite, itstool,
|
pkgconfig, libxml2, json-glib , sqlite, itstool, librsvg,
|
||||||
librsvg, vala, gnome3, wrapGAppsHook, gobject-introspection,
|
vala, gnome3, desktop-file-utils, wrapGAppsHook, gobject-introspection
|
||||||
which
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "font-manager-${version}";
|
pname = "font-manager";
|
||||||
version = "0.7.4.1";
|
version = "0.7.4.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
@ -17,10 +16,12 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
pkgconfig
|
pkgconfig
|
||||||
automake autoconf libtool
|
meson
|
||||||
file
|
ninja
|
||||||
which
|
gettext
|
||||||
|
python3
|
||||||
itstool
|
itstool
|
||||||
|
desktop-file-utils
|
||||||
vala
|
vala
|
||||||
gnome3.yelp-tools
|
gnome3.yelp-tools
|
||||||
wrapGAppsHook
|
wrapGAppsHook
|
||||||
@ -37,17 +38,17 @@ stdenv.mkDerivation rec {
|
|||||||
gnome3.defaultIconTheme
|
gnome3.defaultIconTheme
|
||||||
];
|
];
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
patches = [ ./correct-post-install.patch ];
|
||||||
|
|
||||||
preConfigure = ''
|
mesonFlags = [
|
||||||
NOCONFIGURE=true ./autogen.sh
|
"-Ddisable_pycompile=true"
|
||||||
substituteInPlace configure --replace "/usr/bin/file" "${file}/bin/file"
|
|
||||||
'';
|
|
||||||
|
|
||||||
configureFlags = [
|
|
||||||
"--disable-pycompile"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
chmod +x meson_post_install.py
|
||||||
|
patchShebangs meson_post_install.py
|
||||||
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = https://fontmanager.github.io/;
|
homepage = https://fontmanager.github.io/;
|
||||||
description = "Simple font management for GTK+ desktop environments";
|
description = "Simple font management for GTK+ desktop environments";
|
||||||
|
Loading…
Reference in New Issue
Block a user