summaryrefslogtreecommitdiffstats
path: root/devel/ruby-intl
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2000-09-07 14:39:47 +0000
committerknu <knu@FreeBSD.org>2000-09-07 14:39:47 +0000
commit96f951a2786bd495731135d2fc5fcb8749dee633 (patch)
treef2835ba67cd5363c99bf3d8b27d9d3019200754f /devel/ruby-intl
parent4ea073e1c6c57446d3193f6385a0d5ce1cc3e63f (diff)
downloadFreeBSD-ports-96f951a2786bd495731135d2fc5fcb8749dee633.zip
FreeBSD-ports-96f951a2786bd495731135d2fc5fcb8749dee633.tar.gz
Update with bsd.ruby.mk. :>
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 61fc771..b63088f 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 f082543..0cf5de5 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
OpenPOWER on IntegriCloud