public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
* [ITA] ruby-gtk2 3.4.3
@ 2023-07-09 14:05 Daisuke Fujimura
  2023-07-09 17:08 ` Jon Turney
  0 siblings, 1 reply; 5+ messages in thread
From: Daisuke Fujimura @ 2023-07-09 14:05 UTC (permalink / raw)
  To: cygwin-apps

[-- Attachment #1: Type: text/plain, Size: 492 bytes --]

Hello,

====

Cygportfile:
- https://cygwin.com/cgit/cygwin-packages/playground/tree/?h=ruby-gtk2

Packages, logs:
- https://github.com/cygwin/scallywag/actions/runs/5500133199

Changes:
- Remove patch : 3.2.4-cygwin-deps.patch
  - Deleted dependencies restored
- Add patch : 3.4.3-*.patch
  - Resolve undefined references
- Add fedora patch
- Add CFLAGS
  - rb_cData is deprecated, removed in ruby32
- Fix DEPS_PATH
  - ruby-gtk2 is inactive, it does not match the latest ruby-gnome version

[-- Attachment #2: ruby-gtk2.cygport.diff --]
[-- Type: application/octet-stream, Size: 1719 bytes --]

diff --git a/ruby-gtk2.cygport b/ruby-gtk2.cygport
index 66778b3..b99ce6d 100644
--- a/ruby-gtk2.cygport
+++ b/ruby-gtk2.cygport
@@ -1,14 +1,35 @@
 inherit rubygem
 
 NAME="ruby-gtk2"
-VERSION=3.2.9
+VERSION=3.4.3
 RELEASE=1
 CATEGORY="Ruby"
 SUMMARY="Ruby GTK+2 bindings"
 DESCRIPTION="Ruby/GTK2 is a Ruby binding of GTK+-2.x."
-HOMEPAGE="http://ruby-gnome2.sourceforge.jp/"
+HOMEPAGE="https://ruby-gnome.github.io/"
 
-PATCH_URI="3.2.4-cygwin-deps.patch"
+PATCH_URI="
+	https://src.fedoraproject.org/rpms/rubygem-gtk2/raw/rawhide/f/rubygem-gtk2-3.4.3-assign-nonzero-ID-to-relative-callback.patch
+	3.4.3-global.h.patch
+	3.4.3-rbgtkmacros.h.patch
+"
+
+BUILD_REQUIRES="libgtk2.0-devel ruby-atk ruby-cairo-devel ruby-gdk_pixbuf2 ruby-glib2-devel ruby-gobject-introspection-devel ruby-pango-devel ruby-pkg-config"
+LICENSE="LGPL-2.1-or-later"
+
+CFLAGS="${CFLAGS} -Drb_cData=rb_cObject"
+RUBYGEM_CONFIGURE_ARGS="--with-ldflags=-Wl,--out-implib=libruby-gtk2.a"
+
+src_install()
+{
+	cd ${S}
+	rubygem_install
+
+	pushd ${D}/usr/lib/pkgconfig
+	echo "" >> ${NAME}.pc
+	echo "Libs: -lruby-gtk2" >> ${NAME}.pc
+	popd
+}
 
 PKG_NAMES="${NAME} ${NAME}-devel ${NAME}-doc"
 ruby_gtk2_CONTENTS="--exclude=sample ${RUBYGEM_EXTDIR#/} ${RUBYGEM_INSTDIR#/} ${RUBYGEM_SPEC#/}"
@@ -16,4 +37,4 @@ ruby_gtk2_devel_REQUIRES="${NAME} ruby-glib2-devel libgtk2.0-devel"
 ruby_gtk2_devel_CONTENTS="usr/include/ usr/lib/lib*.a usr/lib/pkgconfig/"
 ruby_gtk2_doc_CONTENTS="${RUBYGEM_DOCDIR#/} ${RUBYGEM_INSTDIR#/}/sample/"
 
-DEPS_PATH="${RUBYGEM_EXTDIR%/*}/pango-${VERSION}:${RUBYGEM_EXTDIR%/*}/glib2-${VERSION}:${RUBYGEM_EXTDIR%/*}/cairo-*"
+DEPS_PATH="${RUBYGEM_EXTDIR%/*}/pango-*:${RUBYGEM_EXTDIR%/*}/glib2-*:${RUBYGEM_EXTDIR%/*}/cairo-*"

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-07-16 12:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-09 14:05 [ITA] ruby-gtk2 3.4.3 Daisuke Fujimura
2023-07-09 17:08 ` Jon Turney
2023-07-12 15:11   ` Daisuke Fujimura
2023-07-12 15:23     ` Brian Inglis
2023-07-16 12:43     ` Jon Turney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).