diff options
Diffstat (limited to 'devel/ruby-optparse/Makefile')
-rw-r--r-- | devel/ruby-optparse/Makefile | 31 |
1 files changed, 13 insertions, 18 deletions
diff --git a/devel/ruby-optparse/Makefile b/devel/ruby-optparse/Makefile index dd2405155605..612402472411 100644 --- a/devel/ruby-optparse/Makefile +++ b/devel/ruby-optparse/Makefile @@ -9,42 +9,37 @@ PORTNAME= optparse PORTVERSION= 0.7.5 CATEGORIES= devel ruby MASTER_SITES= http://member.nifty.ne.jp/nokada/archive/ -PKGNAMEPREFIX= ruby- +PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX} DIST_SUBDIR= ruby MAINTAINER= knu@FreeBSD.org -BUILD_DEPENDS= ruby:${PORTSDIR}/lang/ruby -RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby +USE_RUBY= yes NO_BUILD= yes -PLIST_SUB= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}" - -RUBY?= ${LOCALBASE}/bin/ruby -RUBY_VER?= 1.4 -RUBY_ARCH?= ${ARCH}-freebsd${OSREL} - do-install: - ${MKDIR} ${PREFIX}/lib/ruby/site_ruby/${RUBY_VER}/optparse + ${MKDIR} ${RUBY_SITELIBDIR}/optparse .for f in optparse.rb optparse/shellwords.rb optparse/time.rb - ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/lib/ruby/site_ruby/${RUBY_VER}/${f} + ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_SITELIBDIR}/${f} .endfor .if !defined(NOPORTDOCS) - ${MKDIR} ${PREFIX}/share/examples/ruby/optparse/ja - ${MKDIR} ${PREFIX}/share/doc/ruby/optparse/ja + ${MKDIR} ${RUBY_EXAMPLESDIR}/optparse/ja + ${MKDIR} ${RUBY_DOCDIR}/optparse/ja .for f in optparse.rlog - ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/ruby/optparse/ + ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/optparse/ .endfor .for f in optparse.ja.rd - ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/ruby/optparse/ja/ + ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/optparse/ja/ .endfor .for f in cmd-ls.rb cmd.rb getopts.test.en opttest.rb - ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/examples/ruby/optparse/ + ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_EXAMPLESDIR}/optparse/ .endfor .for f in getopts.test - ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/examples/ruby/optparse/ja + ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_EXAMPLESDIR}/optparse/ja .endfor .endif -.include <bsd.port.mk> +.include <bsd.port.pre.mk> +.include "${PORTSDIR}/Mk/bsd.ruby.mk" +.include <bsd.port.post.mk> |