diff options
Diffstat (limited to 'devel/ruby-glib2')
-rw-r--r-- | devel/ruby-glib2/Makefile | 7 | ||||
-rw-r--r-- | devel/ruby-glib2/files/patch-extconf.rb | 10 | ||||
-rw-r--r-- | devel/ruby-glib2/pkg-plist | 3 |
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 |