Skip to content

Commit

Permalink
ruby-gtk2: add kludge to make gtk2 gem work with newer ruby-gnome gems.
Browse files Browse the repository at this point in the history
At least mikutter works with the latest (and no longer updated) 3.4.3 gtk2
and newer 3.4.9 glib2 and other gems.

Bump PKGREVISION.
  • Loading branch information
tsutsui committed Aug 29, 2021
1 parent a1e994e commit f548f3b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
15 changes: 8 additions & 7 deletions x11/ruby-gtk2/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# $NetBSD: Makefile,v 1.6 2021/08/22 17:02:44 tsutsui Exp $
# $NetBSD: Makefile,v 1.7 2021/08/29 16:57:18 tsutsui Exp $
#

VERSION= 3.4.3
DISTNAME= gtk2-${VERSION}
DISTNAME= gtk2-3.4.3
PKGREVISION= 1
CATEGORIES= x11

MAINTAINER= [email protected]
Expand All @@ -13,11 +13,12 @@ LICENSE= gnu-lgpl-v2.1
CONFLICTS+= ruby-gnome2-gtk-[0-9]*
SUPERSEDES+= ruby-gnome2-gtk-[0-9]*

DEPENDS+= ${RUBY_PKGPREFIX}-atk>=${VERSION}:../../devel/ruby-atk
DEPENDS+= ${RUBY_PKGPREFIX}-pango>=${VERSION}:../../devel/ruby-pango
DEPENDS+= ${RUBY_PKGPREFIX}-gdk_pixbuf2>=${VERSION}:../../graphics/ruby-gdk_pixbuf2
DEPENDS+= ${RUBY_PKGPREFIX}-atk>=3.4.3:../../devel/ruby-atk
DEPENDS+= ${RUBY_PKGPREFIX}-pango>=3.4.3:../../devel/ruby-pango
DEPENDS+= ${RUBY_PKGPREFIX}-gdk_pixbuf2>=3.4.3:../../graphics/ruby-gdk_pixbuf2

OVERRIDE_GEMSPEC+= atk>=3.4.3 pango>=3.4.3 gdk_pixbuf2>=3.4.3

.include "../../devel/ruby-pango/buildlink3.mk"
.include "../../x11/gtk2/buildlink3.mk"
.include "../../lang/ruby/gem.mk"
.include "../../mk/bsd.pkg.mk"
4 changes: 2 additions & 2 deletions x11/ruby-gtk2/buildlink3.mk
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# $NetBSD: buildlink3.mk,v 1.5 2021/08/22 17:49:19 tsutsui Exp $
# $NetBSD: buildlink3.mk,v 1.6 2021/08/29 16:57:18 tsutsui Exp $

BUILDLINK_TREE+= ruby-gtk2

.if !defined(RUBY_GTK2_BUILDLINK3_MK)
RUBY_GTK2_BUILDLINK3_MK:=

BUILDLINK_API_DEPENDS.ruby-gtk2+= ${RUBY_PKGPREFIX}-gtk2>=3.3.8
BUILDLINK_ABI_DEPENDS.ruby-gtk2+= ${RUBY_PKGPREFIX}-gtk2>=3.4.2nb1
BUILDLINK_ABI_DEPENDS.ruby-gtk2+= ${RUBY_PKGPREFIX}-gtk2>=3.4.3nb1
BUILDLINK_PKGSRCDIR.ruby-gtk2?= ../../x11/ruby-gtk2

.include "../../devel/ruby-pango/buildlink3.mk"
Expand Down

0 comments on commit f548f3b

Please sign in to comment.