Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nwg-launchers: update to 0.7.1.1 #40432

Merged
merged 1 commit into from
Dec 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions srcpkgs/nwg-launchers/patches/disable-readme-generation.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# https://github.com/nwg-piotr/nwg-launchers/commit/c4d8d369782d32becfe8a8105abec9b61119a629
diff --git a/meson.build b/meson.build
index f6159b4..fc5ef60 100644
--- a/meson.build
+++ b/meson.build
@@ -67,14 +67,15 @@ if get_option('grid')
subdir('grid')
endif

-python = find_program('python3', required: false)
-if not python.found()
- python = find_program('python', required: false)
-endif
+if get_option('generate-readme')
+ python = find_program('python3', required: false)
+ if not python.found()
+ message('python3 not found in PATH, trying python...')
+ python = find_program('python', required: true)
+ endif

-# generate README.md from template
-# make sure to copy it to the source directory!
-if python.found()
+ # generate README.md from template
+ # make sure to copy it to the source directory!
readme = custom_target('readme',
output: [ 'README.md' ],
input: [ 'README.md.in' ],
@@ -90,8 +91,6 @@ if python.found()
install_dir: conf_data.get('datadir'),
install: true
)
-else
- message('Python was not found, fresh README.md will not be generated')
endif

install_data(
diff --git a/meson_options.txt b/meson_options.txt
index 683699e..65888ae 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -3,3 +3,4 @@ option('dmenu', type: 'boolean', value: true, description: 'Build the dmenu app.
option('grid', type: 'boolean', value: true, description: 'Build the grid app.')
option('layer-shell', type: 'feature', value: 'auto', description: 'Enable layer-shell support')
option('gdk-x11', type: 'feature', value: 'auto', description: 'Use Gdk X11 API')
+option('generate-readme', type: 'boolean', value: false, description: 'Generate fresh README.md in build directory')

8 changes: 4 additions & 4 deletions srcpkgs/nwg-launchers/template
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Template file for 'nwg-launchers'
pkgname=nwg-launchers
version=0.6.3
revision=2
version=0.7.1.1
revision=1
build_style=meson
hostmakedepends="pkg-config"
makedepends="gtkmm-devel gtk-layer-shell-devel json-c++"
short_desc="GTK-based launchers for window managers"
maintainer="Érico Nogueira <ericonr@disroot.org>"
license="GPL-3.0-or-later"
homepage="https://github.com/nwg-piotr/nwg-launchers"
distfiles="${homepage}/archive/v${version}.tar.gz"
checksum=8be219ef7e8aead08b46215c9c545b1bf9d108cefee580ffcf297553dee9dfaf
distfiles="https://github.com/nwg-piotr/nwg-launchers/archive/refs/tags/v${version}.tar.gz"
checksum=3700fe67870ecead091abe672c93ce01a6351cb1e0be1904233050c22e86a7c4
sgn marked this conversation as resolved.
Show resolved Hide resolved