gtksourceview4 4.4.0
Closes #44096. Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
parent
159bc4df28
commit
0cf22c461a
1 changed files with 55 additions and 10 deletions
|
@ -1,9 +1,8 @@
|
|||
class Gtksourceview4 < Formula
|
||||
desc "Text view with syntax, undo/redo, and text marks"
|
||||
homepage "https://projects.gnome.org/gtksourceview/"
|
||||
url "https://download.gnome.org/sources/gtksourceview/4.2/gtksourceview-4.2.0.tar.xz"
|
||||
sha256 "c431eb234dc83c7819e58f77dd2af973252c7750da1c9d125ddc94268f94f675"
|
||||
revision 1
|
||||
url "https://download.gnome.org/sources/gtksourceview/4.4/gtksourceview-4.4.0.tar.xz"
|
||||
sha256 "9ddb914aef70a29a66acd93b4f762d5681202e44094d2d6370e51c9e389e689a"
|
||||
|
||||
bottle do
|
||||
rebuild 1
|
||||
|
@ -13,18 +12,27 @@ class Gtksourceview4 < Formula
|
|||
end
|
||||
|
||||
depends_on "gobject-introspection" => :build
|
||||
depends_on "intltool" => :build
|
||||
depends_on "meson" => :build
|
||||
depends_on "ninja" => :build
|
||||
depends_on "pkg-config" => :build
|
||||
depends_on "vala" => :build
|
||||
depends_on "gettext"
|
||||
depends_on "gtk+3"
|
||||
|
||||
# submitted upstream as https://gitlab.gnome.org/GNOME/gtksourceview/merge_requests/61
|
||||
patch :DATA
|
||||
|
||||
def install
|
||||
system "./configure", "--disable-dependency-tracking",
|
||||
"--prefix=#{prefix}",
|
||||
"--enable-vala=yes",
|
||||
"--enable-gobject-introspection=yes"
|
||||
system "make", "install"
|
||||
args = %W[
|
||||
--prefix=#{prefix}
|
||||
-Dgir=true
|
||||
-Dvapi=true
|
||||
]
|
||||
|
||||
mkdir "build" do
|
||||
system "meson", *args, ".."
|
||||
system "ninja", "-v"
|
||||
system "ninja", "install", "-v"
|
||||
end
|
||||
end
|
||||
|
||||
test do
|
||||
|
@ -94,3 +102,40 @@ class Gtksourceview4 < Formula
|
|||
system "./test"
|
||||
end
|
||||
end
|
||||
|
||||
__END__
|
||||
diff --git a/gtksourceview/meson.build b/gtksourceview/meson.build
|
||||
index 14603ffe..82a28d2b 100644
|
||||
--- a/gtksourceview/meson.build
|
||||
+++ b/gtksourceview/meson.build
|
||||
@@ -248,6 +248,7 @@ if cc.get_id() == 'msvc'
|
||||
else
|
||||
gtksource_lib = shared_library(package_string, gtksource_res,
|
||||
version: lib_version,
|
||||
+ darwin_versions: lib_osx_version,
|
||||
include_directories: gtksourceview_include_dirs,
|
||||
dependencies: gtksource_deps,
|
||||
link_whole: gtksource_libs,
|
||||
diff --git a/meson.build b/meson.build
|
||||
index 78c2fc59..ef3d5d6b 100644
|
||||
--- a/meson.build
|
||||
+++ b/meson.build
|
||||
@@ -21,10 +21,14 @@ version_micro = version_arr[2].to_int()
|
||||
api_version = '4'
|
||||
|
||||
lib_version = '0.0.0'
|
||||
-lib_version_arr = version.split('.')
|
||||
-lib_version_major = version_arr[0].to_int()
|
||||
-lib_version_minor = version_arr[1].to_int()
|
||||
-lib_version_micro = version_arr[2].to_int()
|
||||
+lib_version_arr = lib_version.split('.')
|
||||
+lib_version_major = lib_version_arr[0].to_int()
|
||||
+lib_version_minor = lib_version_arr[1].to_int()
|
||||
+lib_version_micro = lib_version_arr[2].to_int()
|
||||
+
|
||||
+osx_current = lib_version_minor + 1
|
||||
+lib_osx_version = [osx_current, '@0@.@1@'.format(osx_current, lib_version_micro)]
|
||||
+
|
||||
|
||||
package_name = meson.project_name()
|
||||
package_string = '@0@-@1@'.format(package_name, api_version)
|
||||
|
|
Loading…
Reference in a new issue