From af5de76f506521d544229057410ede83bf728efc Mon Sep 17 00:00:00 2001 From: Akinori MUSHA Date: Sun, 12 Aug 2001 06:41:10 +0000 Subject: Update to 2.B, and use the new ruby-uri module. --- www/ruby-http-access/Makefile | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) (limited to 'www/ruby-http-access/Makefile') diff --git a/www/ruby-http-access/Makefile b/www/ruby-http-access/Makefile index d57e1f16e13b..1eb7a0e4131f 100644 --- a/www/ruby-http-access/Makefile +++ b/www/ruby-http-access/Makefile @@ -6,10 +6,11 @@ # PORTNAME= http-access -PORTVERSION= 0.0.4p3 +PORTVERSION= 2.B CATEGORIES= www ruby MASTER_SITES= http://www.jin.gr.jp/~nahi/Ruby/http-access/ PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX} +DISTNAME= ${PORTNAME}${PORTVERSION:S/./_/} DIST_SUBDIR= ruby MAINTAINER= knu@FreeBSD.org @@ -20,19 +21,15 @@ USE_RUBY= yes NO_BUILD= yes -DOCS_EN= README_en.txt -DOCS_JA= README_ja.txt +post-patch: + ${RUBY} -i.orig -pe 'gsub(/\burb\b/, "uri"); gsub(/\bURb\b/, "URI")' \ + ${WRKSRC}/lib/http-access2.rb do-install: - ${INSTALL_DATA} ${WRKSRC}/http-access.rb ${RUBY_SITELIBDIR}/ + cd ${WRKSRC}; ${RUBY} install.rb .if !defined(NOPORTDOCS) - ${MKDIR} ${RUBY_DOCDIR}/${PORTNAME}/ja -.for f in ${DOCS_EN} - ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/${PORTNAME}/ -.endfor -.for f in ${DOCS_JA} - ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/${PORTNAME}/ja/ -.endfor + ${MKDIR} ${RUBY_EXAMPLESDIR}/${PORTNAME} + ${INSTALL_DATA} ${WRKSRC}/sample/*.rb ${RUBY_EXAMPLESDIR}/${PORTNAME}/ .endif .include -- cgit v1.2.3