aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormezz <mezz@FreeBSD.org>2005-02-07 04:45:45 +0800
committermezz <mezz@FreeBSD.org>2005-02-07 04:45:45 +0800
commitebc427576bfccc36e4567c2c448981c442d726d0 (patch)
tree9d3381f4e5716e4f8c462ca811a26c3451d552cd
parentecf0786db003327df2b3fa0939be6f406d29815e (diff)
downloadfreebsd-ports-gnome-ebc427576bfccc36e4567c2c448981c442d726d0.tar.gz
freebsd-ports-gnome-ebc427576bfccc36e4567c2c448981c442d726d0.tar.zst
freebsd-ports-gnome-ebc427576bfccc36e4567c2c448981c442d726d0.zip
Fix a pixbufs demo by correct the gtk20 path. s|/usr|${X11BASE}|g
Reported by: lofi via IRC
-rw-r--r--x11-toolkits/ruby-gtk2/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/x11-toolkits/ruby-gtk2/Makefile b/x11-toolkits/ruby-gtk2/Makefile
index 1b02304e42ff..6daf8c31fb38 100644
--- a/x11-toolkits/ruby-gtk2/Makefile
+++ b/x11-toolkits/ruby-gtk2/Makefile
@@ -7,6 +7,7 @@
PORTNAME= gtk2
PORTVERSION= ${RUBY_GNOME_PORTVERSION}
+PORTREVISION= 1
CATEGORIES= x11-toolkits ruby
MASTER_SITES= ${RUBY_GNOME_MASTER_SITES}
MASTER_SITE_SUBDIR= ${RUBY_GNOME_MASTER_SITE_SUBDIR}
@@ -24,6 +25,7 @@ RUN_DEPENDS= ${RUBY_SITEARCHLIBDIR}/atk.so:${PORTSDIR}/accessibility/ruby-atk \
USE_RUBY= yes
USE_XLIB= yes
USE_GNOME= gtk20
+USE_REINPLACE= yes
USE_RUBY_EXTCONF= yes
.include "${.CURDIR}/../../x11/ruby-gnome2/Makefile.common"
@@ -33,6 +35,13 @@ INSTALL_TARGET= site-install
DOCS= COPYING.LIB ChangeLog README
+post-patch:
+ @${REINPLACE_CMD} -e 's|/usr/share|${X11BASE}/share|g' \
+ ${WRKSRC}/sample/gtk-demo/common.rb
+ @${REINPLACE_CMD} -e 's|/usr/local/share|${X11BASE}/share|g' \
+ ${WRKSRC}/sample/testgtk/testgtkrc
+ @${FIND} ${WRKSRC} -name '*.bak' -delete
+
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${RUBY_MODEXAMPLESDIR}/gtk-demo