aboutsummaryrefslogtreecommitdiffstats
path: root/devel/ruby-glib2
diff options
context:
space:
mode:
authormezz <mezz@FreeBSD.org>2005-03-12 19:05:18 +0800
committermezz <mezz@FreeBSD.org>2005-03-12 19:05:18 +0800
commitd518f80dc208ca5cfc3977ffcd7b9980df98eacf (patch)
tree631d8a392e2260b38227e09139ea9c432f755f4a /devel/ruby-glib2
parent6cd4f98b305f25abf152ac61bd5ab8d1977b27a9 (diff)
downloadfreebsd-ports-gnome-d518f80dc208ca5cfc3977ffcd7b9980df98eacf.tar.gz
freebsd-ports-gnome-d518f80dc208ca5cfc3977ffcd7b9980df98eacf.tar.zst
freebsd-ports-gnome-d518f80dc208ca5cfc3977ffcd7b9980df98eacf.zip
-Update to 0.12.0, works with GTK 2.6/GNOME 2.10.
http://ruby-gnome2.sourceforge.jp/hiki.cgi?News_20050306_1 -A few clean up such as correct paths, dependencies and etc.
Diffstat (limited to 'devel/ruby-glib2')
-rw-r--r--devel/ruby-glib2/Makefile7
-rw-r--r--devel/ruby-glib2/files/patch-extconf.rb10
-rw-r--r--devel/ruby-glib2/pkg-plist3
3 files changed, 20 insertions, 0 deletions
diff --git a/devel/ruby-glib2/Makefile b/devel/ruby-glib2/Makefile
index 060e024656be..d9cba0d4a2b7 100644
--- a/devel/ruby-glib2/Makefile
+++ b/devel/ruby-glib2/Makefile
@@ -19,6 +19,7 @@ COMMENT= Ruby binding for GLib2
USE_RUBY= yes
USE_GNOME= glib20
+USE_REINPLACE= yes
USE_RUBY_EXTCONF= yes
.include "${.CURDIR}/../../x11/ruby-gnome2/Makefile.common"
@@ -28,10 +29,16 @@ INSTALL_TARGET= site-install
DOCS= COPYING.LIB ChangeLog README
+post-patch:
+ @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
+ ${WRKSRC}/sample/utils.rb
+ @${FIND} ${WRKSRC} -name '*.bak' -delete
+
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${RUBY_MODEXAMPLESDIR}
@${INSTALL_DATA} ${WRKSRC}/sample/* ${RUBY_MODEXAMPLESDIR}/
+ @${INSTALL_DATA} ${WRKSRC}/tests/* ${RUBY_MODEXAMPLESDIR}/
@${MKDIR} ${RUBY_MODDOCDIR}
.for f in ${DOCS}
@${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/
diff --git a/devel/ruby-glib2/files/patch-extconf.rb b/devel/ruby-glib2/files/patch-extconf.rb
new file mode 100644
index 000000000000..bf39d382ec17
--- /dev/null
+++ b/devel/ruby-glib2/files/patch-extconf.rb
@@ -0,0 +1,10 @@
+--- extconf.rb.orig Sun Mar 6 22:41:34 2005
++++ extconf.rb Sun Mar 6 22:41:59 2005
+@@ -13,6 +13,7 @@
+ require 'mkmf-gnome2'
+
+ PKGConfig.have_package('gobject-2.0') or exit 1
++PKGConfig.have_package('gthread-2.0') or exit 1
+
+ setup_win32(PACKAGE_NAME)
+
diff --git a/devel/ruby-glib2/pkg-plist b/devel/ruby-glib2/pkg-plist
index 24c8eae093fb..35cb6bc383e4 100644
--- a/devel/ruby-glib2/pkg-plist
+++ b/devel/ruby-glib2/pkg-plist
@@ -4,6 +4,9 @@
%%RUBY_SITEARCHLIBDIR%%/rbgutil.h
%%RUBY_SITELIBDIR%%/glib2.rb
%%RUBY_SITELIBDIR%%/mkmf-gnome2.rb
+%%RUBY_SITELIBDIR%%/pkg-config.rb
+%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/spawn.rb
+%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/test-glib2.rb
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/type-register.rb
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/type-register2.rb
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/utils.rb