diff options
author | Akinori MUSHA <knu@FreeBSD.org> | 2000-09-07 14:39:47 +0000 |
---|---|---|
committer | Akinori MUSHA <knu@FreeBSD.org> | 2000-09-07 14:39:47 +0000 |
commit | 6be33926020dcfa43ec8a1bf94700238962f3b92 (patch) | |
tree | b915338a31558eaf368cfd16cdf2b7ec1e6e80db /devel/ruby-locale | |
parent | 79507948280cacb290417077cbdc3e8420c3f9c1 (diff) | |
download | ports-6be33926020dcfa43ec8a1bf94700238962f3b92.tar.gz ports-6be33926020dcfa43ec8a1bf94700238962f3b92.zip |
Notes
Diffstat (limited to 'devel/ruby-locale')
-rw-r--r-- | devel/ruby-locale/Makefile | 33 | ||||
-rw-r--r-- | devel/ruby-locale/pkg-plist | 10 |
2 files changed, 17 insertions, 26 deletions
diff --git a/devel/ruby-locale/Makefile b/devel/ruby-locale/Makefile index fcb6769999ef..4690175d9795 100644 --- a/devel/ruby-locale/Makefile +++ b/devel/ruby-locale/Makefile @@ -9,36 +9,27 @@ PORTNAME= locale PORTVERSION= 0.2 CATEGORIES= devel ruby MASTER_SITES= http://kafka.salem.mass.edu/~yashi/ruby/ -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 -RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby - #USE_BZIP2= yes # only saves 500 bytes.. - -INSTALL_TARGET= site-install +USE_RUBY= yes +USE_RUBY_EXTCONF= yes WRKSRC= ${WRKDIR}/${DISTNAME} -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 +INSTALL_TARGET= site-install post-install: .if !defined(NOPORTDOCS) - ${MKDIR} ${PREFIX}/share/examples/ruby/locale - ${INSTALL_DATA} ${WRKSRC}/test.rb ${PREFIX}/share/examples/ruby/locale/ - ${MKDIR} ${PREFIX}/share/doc/ruby/locale - ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/ruby/locale/ + ${MKDIR} ${RUBY_EXAMPLESDIR}/locale + ${INSTALL_DATA} ${WRKSRC}/test.rb ${RUBY_EXAMPLESDIR}/locale/ + ${MKDIR} ${RUBY_DOCDIR}/locale + ${INSTALL_DATA} ${WRKSRC}/README ${RUBY_DOCDIR}/locale/ .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-locale/pkg-plist b/devel/ruby-locale/pkg-plist index c401c7b0d5f6..42159b51724a 100644 --- a/devel/ruby-locale/pkg-plist +++ b/devel/ruby-locale/pkg-plist @@ -1,5 +1,5 @@ -lib/ruby/site_ruby/%%RUBY_VER%%/%%RUBY_ARCH%%/locale.so -share/examples/ruby/locale/test.rb -@dirrm share/examples/ruby/locale -share/doc/ruby/locale/README -@dirrm share/doc/ruby/locale +%%RUBY_SITEARCHLIBDIR%%/locale.so +%%RUBY_EXAMPLESDIR%%/locale/test.rb +@dirrm %%RUBY_EXAMPLESDIR%%/locale +%%RUBY_DOCDIR%%/locale/README +@dirrm %%RUBY_DOCDIR%%/locale |