summaryrefslogtreecommitdiff
path: root/japanese/ruby-kakasi
diff options
context:
space:
mode:
Diffstat (limited to 'japanese/ruby-kakasi')
-rw-r--r--japanese/ruby-kakasi/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/japanese/ruby-kakasi/Makefile b/japanese/ruby-kakasi/Makefile
index 2d58cacc27cd..85b324f33d53 100644
--- a/japanese/ruby-kakasi/Makefile
+++ b/japanese/ruby-kakasi/Makefile
@@ -9,7 +9,6 @@ PORTNAME= kakasi
PORTVERSION= 000124
CATEGORIES= japanese ruby
MASTER_SITES= http://www.notwork.org/~gotoken/ruby/p/kakasi/
-PKGNAMEPREFIX= ruby-
DIST_SUBDIR= ruby
MAINTAINER= knu@FreeBSD.org
@@ -30,6 +29,10 @@ RUBY_ARCH?= ${ARCH}-freebsd${OSREL}
DOCS_EN= ChangeLog README wdcnt.html
DOCS_JA= README.jp
+.include <bsd.port.pre.mk>
+
+PKGNAMEPREFIX:= ${PKGNAMEPREFIX}ruby-
+
post-patch:
${PERL} -i -pe 's,/usr/local,${PREFIX},g' ${WRKSRC}/extconf.rb
${PERL} -i -pe 's,\./(kakasi),$$1,g' ${WRKSRC}/test.rb
@@ -52,4 +55,4 @@ post-install:
.endfor
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>