diff options
author | knu <knu@FreeBSD.org> | 2000-09-07 14:39:47 +0000 |
---|---|---|
committer | knu <knu@FreeBSD.org> | 2000-09-07 14:39:47 +0000 |
commit | 96f951a2786bd495731135d2fc5fcb8749dee633 (patch) | |
tree | f2835ba67cd5363c99bf3d8b27d9d3019200754f /devel/ruby-locale | |
parent | 4ea073e1c6c57446d3193f6385a0d5ce1cc3e63f (diff) | |
download | FreeBSD-ports-96f951a2786bd495731135d2fc5fcb8749dee633.zip FreeBSD-ports-96f951a2786bd495731135d2fc5fcb8749dee633.tar.gz |
Update with bsd.ruby.mk. :>
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 fcb6769..4690175 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 c401c7b..42159b5 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 |