Skip to content

Commit

Permalink
optimized
Browse files Browse the repository at this point in the history
  • Loading branch information
leleliu008 committed Feb 3, 2025
1 parent f1555a4 commit 0c1bcb2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 20 deletions.
21 changes: 6 additions & 15 deletions formula/glib.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,18 @@
summary: A general-purpose, portable utility library which provides many useful data types, macros, type conversions, string utilities, file utilities, a mainloop abstraction, and so on
web-url: https://developer.gnome.org/glib
git-url: https://github.com/GNOME/glib
src-url: https://download.gnome.org/sources/glib/2.80/glib-2.80.4.tar.xz
src-uri: https://distfiles.macports.org/glib2/glib-2.80.4.tar.xz
src-sha: 24e029c5dfc9b44e4573697adf33078a9827c48938555004b3b9096fa4ea034f
src-url: https://download.gnome.org/sources/glib/2.82/glib-2.82.4.tar.xz
src-uri: https://distfiles.macports.org/glib2/glib-2.82.4.tar.xz
src-sha: 37dd0877fe964cd15e9a2710b044a1830fb1bd93652a6d0cb6b8b2dff187c709
license: LGPL-2.1-or-later
dep-pkg: libpcre2 libintl libffi libz
dep-upp: gettext-tools gm4 flex bison
dep-pym: packaging 'setuptools<65'
bsystem: meson

res-url: https://download.gnome.org/sources/gobject-introspection/1.80/gobject-introspection-1.80.1.tar.xz
res-uri: https://distfiles.macports.org/gobject-introspection/gobject-introspection-1.80.1.tar.xz
res-sha: a1df7c424e15bda1ab639c00e9051b9adf5cea1a9e512f8a603b53cd199bc6d8

dopatch: |
gsed -i "s|cc.find_library('resolv')|declare_dependency(link_args : ['-lresolv'])|" gio/meson.build
gsed -i "/libiconv =/c libiconv = dependency('libiconv', method : 'pkg-config')" meson.build
gsed -i '2228,2254d' meson.build
gsed -i "2228a libintl = cc.find_library('intl', dirs: ['$libintl_LIBRARY_DIR'])" meson.build
gsed -i '2229a libintl_deps = [libintl, libiconv]' meson.build
res-url: https://download.gnome.org/sources/gobject-introspection/1.82/gobject-introspection-1.82.0.tar.xz
res-uri: https://distfiles.macports.org/gobject-introspection/gobject-introspection-1.82.0.tar.xz
res-sha: 0f5a4c1908424bf26bc41e9361168c363685080fbdb87a196c891c8401ca2f09

install: |
if isCrossBuild ; then
Expand Down
6 changes: 3 additions & 3 deletions formula/gobject-introspection.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ pkgtype: lib
summary: A middleware layer between C libraries (using GObject) and language bindings
web-url: https://gi.readthedocs.io
git-url: https://gitlab.gnome.org/GNOME/gobject-introspection
src-url: https://download.gnome.org/sources/gobject-introspection/1.80/gobject-introspection-1.80.1.tar.xz
src-uri: https://distfiles.macports.org/gobject-introspection/gobject-introspection-1.80.1.tar.xz
src-sha: a1df7c424e15bda1ab639c00e9051b9adf5cea1a9e512f8a603b53cd199bc6d8
src-url: https://download.gnome.org/sources/gobject-introspection/1.82/gobject-introspection-1.82.0.tar.xz
src-uri: https://distfiles.macports.org/gobject-introspection/gobject-introspection-1.82.0.tar.xz
src-sha: 0f5a4c1908424bf26bc41e9361168c363685080fbdb87a196c891c8401ca2f09
license: MIT
dep-pkg: glib
dep-upp: gm4 flex bison
Expand Down
4 changes: 2 additions & 2 deletions formula/json-glib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ pkgtype: lib
summary: Library for JSON, based on GLib
web-url: https://wiki.gnome.org/Projects/JsonGlib
git-url: https://gitlab.gnome.org/GNOME/json-glib
src-url: https://download.gnome.org/sources/json-glib/1.8/json-glib-1.8.0.tar.xz
src-sha: 97ef5eb92ca811039ad50a65f06633f1aae64792789307be7170795d8b319454
src-url: https://download.gnome.org/sources/json-glib/1.10/json-glib-1.10.6.tar.xz
src-sha: 77f4bcbf9339528f166b8073458693f0a20b77b7059dbc2db61746a1928b0293
license: LGPL-2.1-or-later
dep-pkg: glib

Expand Down

0 comments on commit 0c1bcb2

Please sign in to comment.