From 361407de582b8105018a0bd595adc474b2e48d1a Mon Sep 17 00:00:00 2001 From: Paul Reilly Date: Fri, 26 Jan 2024 11:54:55 +0000 Subject: [PATCH] add gspell package (#3174) remove unnecessary checks for on_fetch --- packages/g/gspell/xmake.lua | 12 ++++++++++++ packages/g/gtk+3/xmake.lua | 12 +++++------- 2 files changed, 17 insertions(+), 7 deletions(-) create mode 100644 packages/g/gspell/xmake.lua diff --git a/packages/g/gspell/xmake.lua b/packages/g/gspell/xmake.lua new file mode 100644 index 000000000..0269570bd --- /dev/null +++ b/packages/g/gspell/xmake.lua @@ -0,0 +1,12 @@ +package("gspell") + + set_homepage("https://gitlab.gnome.org/GNOME/gspell") + set_description("A spell-checking library for GTK applications") + set_license("LGPL-2.0-or-later") + + on_fetch("linux", function (package, opt) + if opt.system and package.find_package then + return package:find_package("pkgconfig::gspell") + end + end) + diff --git a/packages/g/gtk+3/xmake.lua b/packages/g/gtk+3/xmake.lua index 675edbfcf..68d304912 100644 --- a/packages/g/gtk+3/xmake.lua +++ b/packages/g/gtk+3/xmake.lua @@ -4,11 +4,9 @@ package("gtk+3") set_description("Toolkit for creating graphical user interfaces") set_license("LGPL-2.0-or-later") - if on_fetch then - on_fetch("linux", function (package, opt) - if opt.system and package.find_package then - return package:find_package("pkgconfig::gtk+-3.0") - end - end) - end + on_fetch("linux", function (package, opt) + if opt.system and package.find_package then + return package:find_package("pkgconfig::gtk+-3.0") + end + end)