aboutsummaryrefslogtreecommitdiff
path: root/devel/ruby-intl
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2000-09-07 14:39:47 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2000-09-07 14:39:47 +0000
commit6be33926020dcfa43ec8a1bf94700238962f3b92 (patch)
treeb915338a31558eaf368cfd16cdf2b7ec1e6e80db /devel/ruby-intl
parent79507948280cacb290417077cbdc3e8420c3f9c1 (diff)
downloadports-6be33926020dcfa43ec8a1bf94700238962f3b92.tar.gz
ports-6be33926020dcfa43ec8a1bf94700238962f3b92.zip
Notes
Diffstat (limited to 'devel/ruby-intl')
-rw-r--r--devel/ruby-intl/Makefile36
-rw-r--r--devel/ruby-intl/pkg-plist18
2 files changed, 23 insertions, 31 deletions
diff --git a/devel/ruby-intl/Makefile b/devel/ruby-intl/Makefile
index 61fc77133f9c..b63088f1ffa7 100644
--- a/devel/ruby-intl/Makefile
+++ b/devel/ruby-intl/Makefile
@@ -9,38 +9,30 @@ PORTNAME= intl
PORTVERSION= 0.11
CATEGORIES= devel ruby
MASTER_SITES= http://www.page.sannet.ne.jp/hirata-naoto/
-PKGNAMEPREFIX= ruby-
-DISTNAME= ${PKGNAMEPREFIX}${PORTNAME}-${PORTVERSION}
+PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
+DISTNAME= ruby-${PORTNAME}-${PORTVERSION}
DIST_SUBDIR= ruby
MAINTAINER= knu@FreeBSD.org
-BUILD_DEPENDS= ruby:${PORTSDIR}/lang/ruby
LIB_DEPENDS= intl.1:${PORTSDIR}/devel/gettext
-RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby
-INSTALL_TARGET= site-install
-CONFIGURE_ARGS= --with-opt-dir="${LOCALBASE}"
+USE_RUBY= yes
+USE_RUBY_EXTCONF= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
-PLIST_SUB= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}"
-
-RUBY?= ${LOCALBASE}/bin/ruby
-RUBY_VER?= 1.4
-RUBY_ARCH?= ${ARCH}-freebsd${OSREL}
-
-do-configure:
- @cd ${WRKSRC}; \
- ${SETENV} ${CONFIGURE_ENV} ${RUBY} extconf.rb ${CONFIGURE_ARGS}
+INSTALL_TARGET= site-install
post-install:
.if !defined(NOPORTDOCS)
- ${MKDIR} ${PREFIX}/share/examples/ruby/intl/po/
- ${INSTALL_DATA} ${WRKSRC}/hello.rb ${PREFIX}/share/examples/ruby/intl/
- ${INSTALL_DATA} ${WRKSRC}/ja.po ${PREFIX}/share/examples/ruby/intl/po/
- ${MKDIR} ${PREFIX}/share/doc/ruby/intl/ja
- ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/ruby/intl/
- ${INSTALL_DATA} ${WRKSRC}/README.jp ${PREFIX}/share/doc/ruby/intl/ja/
+ ${MKDIR} ${RUBY_EXAMPLESDIR}/intl/po/
+ ${INSTALL_DATA} ${WRKSRC}/hello.rb ${RUBY_EXAMPLESDIR}/intl/
+ ${INSTALL_DATA} ${WRKSRC}/ja.po ${RUBY_EXAMPLESDIR}/intl/po/
+ ${MKDIR} ${RUBY_DOCDIR}/intl/ja
+ ${INSTALL_DATA} ${WRKSRC}/README ${RUBY_DOCDIR}/intl/
+ ${INSTALL_DATA} ${WRKSRC}/README.jp ${RUBY_DOCDIR}/intl/ja/
.endif
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+.include "${PORTSDIR}/Mk/bsd.ruby.mk"
+.include <bsd.port.post.mk>
diff --git a/devel/ruby-intl/pkg-plist b/devel/ruby-intl/pkg-plist
index f082543350dc..0cf5de5731e2 100644
--- a/devel/ruby-intl/pkg-plist
+++ b/devel/ruby-intl/pkg-plist
@@ -1,9 +1,9 @@
-lib/ruby/site_ruby/%%RUBY_VER%%/%%RUBY_ARCH%%/intl.so
-share/examples/ruby/intl/hello.rb
-share/examples/ruby/intl/po/ja.po
-@dirrm share/examples/ruby/intl/po
-@dirrm share/examples/ruby/intl
-share/doc/ruby/intl/README
-share/doc/ruby/intl/ja/README.jp
-@dirrm share/doc/ruby/intl/ja
-@dirrm share/doc/ruby/intl
+%%RUBY_SITEARCHLIBDIR%%/intl.so
+%%RUBY_EXAMPLESDIR%%/intl/hello.rb
+%%RUBY_EXAMPLESDIR%%/intl/po/ja.po
+@dirrm %%RUBY_EXAMPLESDIR%%/intl/po
+@dirrm %%RUBY_EXAMPLESDIR%%/intl
+%%RUBY_DOCDIR%%/intl/README
+%%RUBY_DOCDIR%%/intl/ja/README.jp
+@dirrm %%RUBY_DOCDIR%%/intl/ja
+@dirrm %%RUBY_DOCDIR%%/intl