summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Soriano <csoriano@gnome.org>2017-03-27 11:04:16 +0200
committerErnestas Kulik <ernestask@gnome.org>2017-03-27 12:14:47 +0300
commit13c959d38950bb593d63a519e081921c47a285f3 (patch)
tree5a23a1a0038db8c87d1607c6e8e32ebbf5740217
parentb4d6cfc3f97518a03404fe64c720dc828fa753ad (diff)
downloadnautilus-13c959d38950bb593d63a519e081921c47a285f3.tar.gz
build: Update flatpak build and organize folder structure
Flatpak doesn't need to build meson or a patch for ninja and meson to work properly: https://github.com/flatpak/flatpak/issues/607 https://bugzilla.gnome.org/show_bug.cgi?id=774368 https://github.com/flatpak/freedesktop-sdk-images/commit/273e2460aa55a0fd80d4b2feef38795991b4d665 This patch updates this and improves the folder structure with a build-aux folder to clear up the root folder. https://bugzilla.gnome.org/show_bug.cgi?id=780580
-rwxr-xr-xbuild-aux/make_release.sh (renamed from make_release.sh)2
-rwxr-xr-xbuild-aux/meson/check_libgd.sh (renamed from build-scripts/check_libgd.sh)0
-rwxr-xr-xbuild-aux/meson/postinstall.sh13
-rwxr-xr-xbuild-scripts/compile_gschemas.sh7
-rw-r--r--meson-glib-check.patch11
-rw-r--r--meson.build4
-rw-r--r--org.gnome.Nautilus.json22
-rw-r--r--setuptools-makefile5
8 files changed, 16 insertions, 48 deletions
diff --git a/make_release.sh b/build-aux/make_release.sh
index f33e48996..c0aa56762 100755
--- a/make_release.sh
+++ b/build-aux/make_release.sh
@@ -1,5 +1,5 @@
#!/bin/sh
-test -n "$srcdir" || srcdir=$(dirname "$0")
+test -n "$srcdir" || srcdir=$1
test -n "$srcdir" || srcdir=.
cd $srcdir
diff --git a/build-scripts/check_libgd.sh b/build-aux/meson/check_libgd.sh
index f1fabc0c3..f1fabc0c3 100755
--- a/build-scripts/check_libgd.sh
+++ b/build-aux/meson/check_libgd.sh
diff --git a/build-aux/meson/postinstall.sh b/build-aux/meson/postinstall.sh
new file mode 100755
index 000000000..9d10bf1e2
--- /dev/null
+++ b/build-aux/meson/postinstall.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+# Package managers set this so we don't need to run
+if [ -z "$DESTDIR" ]; then
+ echo Compiling GSettings schemas...
+ glib-compile-schemas ${MESON_INSTALL_PREFIX}/share/glib-2.0/schemas
+
+ echo Updating desktop database...
+ update-desktop-database -q ${MESON_INSTALL_PREFIX}/share/applications
+
+ echo Updating icon cache...
+ gtk-update-icon-cache -q -t -f ${MESON_INSTALL_PREFIX}/share/icons/hicolor
+fi \ No newline at end of file
diff --git a/build-scripts/compile_gschemas.sh b/build-scripts/compile_gschemas.sh
deleted file mode 100755
index 01010099d..000000000
--- a/build-scripts/compile_gschemas.sh
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/bin/sh
-
-# Avoid compiling schemas when packaging.
-if [ -z "$DESTDIR" ]
-then
- glib-compile-schemas "${MESON_INSTALL_PREFIX}/share/glib-2.0/schemas"
-fi
diff --git a/meson-glib-check.patch b/meson-glib-check.patch
deleted file mode 100644
index eea326f76..000000000
--- a/meson-glib-check.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- mesonbuild/modules/gnome.py.glib 2017-02-21 20:45:17.187843787 -0500
-+++ mesonbuild/modules/gnome.py 2017-02-21 20:46:18.062188395 -0500
-@@ -37,7 +37,7 @@
- #
- # https://github.com/ninja-build/ninja/issues/1184
- # https://bugzilla.gnome.org/show_bug.cgi?id=774368
--gresource_dep_needed_version = '>= 2.52.0'
-+gresource_dep_needed_version = '>= 2.50.0'
-
- native_glib_version = None
- girwarning_printed = False
diff --git a/meson.build b/meson.build
index 6aa73125a..68c3f33f0 100644
--- a/meson.build
+++ b/meson.build
@@ -101,7 +101,7 @@ subdir ('eel')
subdir ('libnautilus-extension')
message ('Checking for libgd…')
-run_command ('build-scripts/check_libgd.sh')
+run_command ('build-aux/meson/check_libgd.sh')
libgd_options = ['static=true',
'with-gtk-hacks=true',
@@ -128,4 +128,4 @@ if get_option ('enable-nst-extension')
endif
# Compile GSettings schemas when installing from source.
-meson.add_install_script ('build-scripts/compile_gschemas.sh')
+meson.add_install_script ('build-aux/meson/postinstall.sh')
diff --git a/org.gnome.Nautilus.json b/org.gnome.Nautilus.json
index 04f10f000..a8caa50da 100644
--- a/org.gnome.Nautilus.json
+++ b/org.gnome.Nautilus.json
@@ -29,28 +29,6 @@
},
"cleanup": [ "/include", "/share/bash-completion" ],
"modules": [
- {
- "name": "meson",
- "no-autogen": true,
- "sources": [
- {
- "type": "archive",
- "url": "https://github.com/mesonbuild/meson/releases/download/0.38.1/meson-0.38.1.tar.gz",
- "sha256": "dcb05349b32427924fa2a258a5e23e40e09c1bf9dd09919198c3a2ae1c38ba53"
- },
- {
- "type": "patch",
- "path": "meson-glib-check.patch",
- "strip-components": 0
-
- },
- {
- "type": "file",
- "path": "setuptools-makefile",
- "dest-filename": "Makefile"
- }
- ]
- },
{
"name": "libexif",
"sources": [
diff --git a/setuptools-makefile b/setuptools-makefile
deleted file mode 100644
index 96c28f093..000000000
--- a/setuptools-makefile
+++ /dev/null
@@ -1,5 +0,0 @@
-all:
- python3 ./setup.py build
-
-install:
- python3 ./setup.py install --prefix=/app --skip-build --optimize=1