aboutsummaryrefslogtreecommitdiff
path: root/japanese/gsuica
diff options
context:
space:
mode:
Diffstat (limited to 'japanese/gsuica')
-rw-r--r--japanese/gsuica/Makefile20
1 files changed, 8 insertions, 12 deletions
diff --git a/japanese/gsuica/Makefile b/japanese/gsuica/Makefile
index 27a77cbd89ce..69fbae17dd71 100644
--- a/japanese/gsuica/Makefile
+++ b/japanese/gsuica/Makefile
@@ -3,7 +3,7 @@
PORTNAME= gsuica
PORTVERSION= 0.9.1
-#PORTREVISION= 0
+PORTREVISION= 2
CATEGORIES= japanese ruby
MASTER_SITES= http://homepage3.nifty.com/slokar/pasori/
DISTNAME= ${PORTNAME}
@@ -19,6 +19,9 @@ RUN_DEPENDS= rubygem-gtk2>0:${PORTSDIR}/x11-toolkits/rubygem-gtk2 \
${RUBY_SITEARCHLIBDIR}/pasori.so:${PORTSDIR}/devel/libpafe-ruby
USE_RUBY= yes
+USES= shebangfix
+SHEBANG_FILES= ${PORTNAME}
+ruby_OLD_CMD= /usr/bin/ruby1.9.3
EXTRACT_CMD= ${CP}
EXTRACT_BEFORE_ARGS= -p
@@ -28,19 +31,12 @@ NO_BUILD= yes
PLIST_FILES= bin/${PORTNAME}
-.include <bsd.port.pre.mk>
-
-.if ${RUBY_DEFAULT_VER} != ${RUBY_VER}
-IGNORE= requires RUBY_DEFAULT_VER=${RUBY_VER}
-.endif
-
post-patch:
- @${REINPLACE_CMD} -e 's,#! /usr/bin/ruby1.9.3,#!${RUBY},g' \
- ${WRKSRC}/${PORTNAME}
+ @${REINPLACE_CMD} -e 's/Gdk::Atom.new(0)/Gdk::Selection::CLIPBOARD/g' \
+ ${WRKSRC}/${PORTNAME}
do-install:
- @${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} \
- ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
# Fetch station code database
station-code-fetch:
@@ -58,4 +54,4 @@ station-code-fetch:
station-code-install:
@(cd ${WRKDIR}; ${SH} station_code_conv.sh StationCode.xls)
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>