From ebc427576bfccc36e4567c2c448981c442d726d0 Mon Sep 17 00:00:00 2001 From: mezz Date: Sun, 6 Feb 2005 20:45:45 +0000 Subject: Fix a pixbufs demo by correct the gtk20 path. s|/usr|${X11BASE}|g Reported by: lofi via IRC --- x11-toolkits/ruby-gtk2/Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) 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 -- cgit