summaryrefslogtreecommitdiff
path: root/www/ruby-http-access/Makefile
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2001-08-12 06:41:10 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2001-08-12 06:41:10 +0000
commitaf5de76f506521d544229057410ede83bf728efc (patch)
tree09a1d737c2fe78112b4974743ca498c436baf72b /www/ruby-http-access/Makefile
parentThe URb module has been renamed to URI and replaced the formerly (diff)
Update to 2.B, and use the new ruby-uri module.
Notes
Notes: svn path=/head/; revision=46114
Diffstat (limited to 'www/ruby-http-access/Makefile')
-rw-r--r--www/ruby-http-access/Makefile19
1 files changed, 8 insertions, 11 deletions
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 <bsd.port.mk>