public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
From: Daisuke Fujimura <booleanlabel@gmail.com>
To: cygwin-apps@cygwin.com
Subject: [ITA] ruby-gtk2 3.4.3
Date: Sun, 9 Jul 2023 23:05:25 +0900	[thread overview]
Message-ID: <CAA3frXSuXGNr=AUM_RWFt_ZZMo6_GSzV6YcZ7VNSb-5rCBhGRA@mail.gmail.com> (raw)

[-- 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-*"

             reply	other threads:[~2023-07-09 14:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-09 14:05 Daisuke Fujimura [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAA3frXSuXGNr=AUM_RWFt_ZZMo6_GSzV6YcZ7VNSb-5rCBhGRA@mail.gmail.com' \
    --to=booleanlabel@gmail.com \
    --cc=cygwin-apps@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).