aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesús Daniel Colmenares Oviedo <dtxdf@FreeBSD.org>2026-04-12 21:26:47 +0000
committerJesús Daniel Colmenares Oviedo <dtxdf@FreeBSD.org>2026-04-12 21:53:52 +0000
commit1542269afc1f0b4e8c5f4c3c0ce1c79cffed5d7f (patch)
treeb72f87cfb15408b8d39989a1dcf889ccc4207b7e
parentd7958f15c9e3ee36fda998c52a3775627f122cf4 (diff)
devel/hare-gi: New port: GObject Introspection code generator for Hare
hare-gi is a GObject Introspection code generator for Hare. In short, it creates bindings for GTK family of libraries (GTK+, GDK, Pango, etc). WWW: https://sr.ht/~yerinalexey/hare-gi
-rw-r--r--devel/Makefile1
-rw-r--r--devel/hare-gi/Makefile29
-rw-r--r--devel/hare-gi/distinfo3
-rw-r--r--devel/hare-gi/files/patch-Makefile11
-rw-r--r--devel/hare-gi/pkg-descr3
-rw-r--r--devel/hare-gi/pkg-plist22
6 files changed, 69 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index eac31dfd23d8..090ced053210 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -980,6 +980,7 @@
SUBDIR += gzstream
SUBDIR += hapy
SUBDIR += hare
+ SUBDIR += hare-gi
SUBDIR += hcs12mem
SUBDIR += heaptrack
SUBDIR += heimdall
diff --git a/devel/hare-gi/Makefile b/devel/hare-gi/Makefile
new file mode 100644
index 000000000000..0a9331d1c233
--- /dev/null
+++ b/devel/hare-gi/Makefile
@@ -0,0 +1,29 @@
+PORTNAME= hare-gi
+DISTVERSION= 0.1.0
+CATEGORIES= devel
+MASTER_SITES= https://git.sr.ht/~${SRHT_ACCOUNT}/${SRHT_PROJECT}/archive/${DISTVERSIONFULL}${EXTRACT_SUFX}?dummy=/
+
+MAINTAINER= dtxdf@FreeBSD.org
+COMMENT= GObject Introspection code generator for Hare
+WWW= https://sr.ht/~yerinalexey/hare-gi
+
+LICENSE= MPL20
+LICENSE_FILE= ${WRKSRC}/COPYING
+
+BUILD_DEPENDS= hare-lang>=0:devel/hare
+LIB_DEPENDS= libgraphene-1.0.so:graphics/graphene
+
+USES= gnome
+USE_GNOME= atk gdkpixbuf glib20 gtk30 gtk40 introspection pango
+
+MAKE_ARGS= DESTDIR=${STAGEDIR} \
+ PREFIX=${PREFIX}
+
+SRHT_ACCOUNT= yerinalexey
+SRHT_PROJECT= ${PORTNAME}
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|/usr/share|${PREFIX}/share|' ${WRKSRC}/scripts/generate-gtk3
+ @${REINPLACE_CMD} -e 's|/usr/share|${PREFIX}/share|' ${WRKSRC}/scripts/generate-gtk4
+
+.include <bsd.port.mk>
diff --git a/devel/hare-gi/distinfo b/devel/hare-gi/distinfo
new file mode 100644
index 000000000000..91b38faf11a3
--- /dev/null
+++ b/devel/hare-gi/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1776011597
+SHA256 (hare-gi-0.1.0.tar.gz) = 3d70fde77c07be396d5e7cfc1344e72a3fb4b1ce8a58eeb938bd792c6a1a452e
+SIZE (hare-gi-0.1.0.tar.gz) = 28569
diff --git a/devel/hare-gi/files/patch-Makefile b/devel/hare-gi/files/patch-Makefile
new file mode 100644
index 000000000000..43b46ff2c3c4
--- /dev/null
+++ b/devel/hare-gi/files/patch-Makefile
@@ -0,0 +1,11 @@
+--- Makefile.orig 2026-04-12 16:46:54 UTC
++++ Makefile
+@@ -6,7 +6,7 @@ BINDIR = $(PREFIX)/bin
+ DESTDIR =
+ PREFIX = /usr/local
+ BINDIR = $(PREFIX)/bin
+-SRCDIR = $(PREFIX)/src
++SRCDIR = $(PREFIX)/share
+ HARESRCDIR = $(SRCDIR)/hare
+ THIRDPARTYDIR = $(HARESRCDIR)/third-party
+
diff --git a/devel/hare-gi/pkg-descr b/devel/hare-gi/pkg-descr
new file mode 100644
index 000000000000..5ee4c31fc592
--- /dev/null
+++ b/devel/hare-gi/pkg-descr
@@ -0,0 +1,3 @@
+hare-gi is a GObject Introspection code generator for Hare. In
+short, it creates bindings for GTK family of libraries (GTK+, GDK,
+Pango, etc).
diff --git a/devel/hare-gi/pkg-plist b/devel/hare-gi/pkg-plist
new file mode 100644
index 000000000000..4f7d68f7d8d3
--- /dev/null
+++ b/devel/hare-gi/pkg-plist
@@ -0,0 +1,22 @@
+bin/hare-gi
+share/hare/third-party/gi/atk/_generated.ha
+share/hare/third-party/gi/cairo/_generated.ha
+share/hare/third-party/gi/freetype/_generated.ha
+share/hare/third-party/gi/gdk/_generated.ha
+share/hare/third-party/gi/gdk4/_generated.ha
+share/hare/third-party/gi/gdkpixbuf/_generated.ha
+share/hare/third-party/gi/gio/_generated.ha
+share/hare/third-party/gi/glib/_generated.ha
+share/hare/third-party/gi/glib/types.ha
+share/hare/third-party/gi/gmodule/_generated.ha
+share/hare/third-party/gi/gobject/_generated.ha
+share/hare/third-party/gi/gobject/types.ha
+share/hare/third-party/gi/graphene/_generated.ha
+share/hare/third-party/gi/gsk/_generated.ha
+share/hare/third-party/gi/gtk/_generated.ha
+share/hare/third-party/gi/gtk4/_generated.ha
+share/hare/third-party/gi/harfbuzz/_generated.ha
+share/hare/third-party/gi/libc/types.ha
+share/hare/third-party/gi/pango/_generated.ha
+share/hare/third-party/gi/pangocairo/_generated.ha
+share/hare/third-party/gi/xlib/_generated.ha