From 6be33926020dcfa43ec8a1bf94700238962f3b92 Mon Sep 17 00:00:00 2001 From: Akinori MUSHA Date: Thu, 7 Sep 2000 14:39:47 +0000 Subject: Update with bsd.ruby.mk. :> --- textproc/ruby-html-parser/Makefile | 21 ++++++++------------- textproc/ruby-html-parser/pkg-plist | 10 +++++----- 2 files changed, 13 insertions(+), 18 deletions(-) (limited to 'textproc/ruby-html-parser') diff --git a/textproc/ruby-html-parser/Makefile b/textproc/ruby-html-parser/Makefile index 84824836762b..5851fb3d1782 100644 --- a/textproc/ruby-html-parser/Makefile +++ b/textproc/ruby-html-parser/Makefile @@ -9,32 +9,27 @@ PORTNAME= html-parser PORTVERSION= 19990912.p1 CATEGORIES= textproc ruby MASTER_SITES= http://www.jin.gr.jp/~nahi/Ruby/html-parser/ -PKGNAMEPREFIX= ruby- +PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX} DISTNAME= ${PORTNAME}-${PORTVERSION:S/.//} 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} - MODULES= formatter.rb html-parser.rb sgml-parser.rb do-install: .for f in ${MODULES} - ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/lib/ruby/site_ruby/${RUBY_VER}/ + ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_SITELIBDIR} .endfor .if !defined(NOPORTDOCS) - ${MKDIR} ${PREFIX}/share/doc/ruby/html-parser - ${INSTALL_DATA} ${WRKSRC}/README.html ${PREFIX}/share/doc/ruby/html-parser/ + ${MKDIR} ${RUBY_DOCDIR}/html-parser + ${INSTALL_DATA} ${WRKSRC}/README.html ${RUBY_DOCDIR}/html-parser/ .endif -.include +.include +.include "${PORTSDIR}/Mk/bsd.ruby.mk" +.include diff --git a/textproc/ruby-html-parser/pkg-plist b/textproc/ruby-html-parser/pkg-plist index 8f7bb694a3a3..e7b29450ca02 100644 --- a/textproc/ruby-html-parser/pkg-plist +++ b/textproc/ruby-html-parser/pkg-plist @@ -1,5 +1,5 @@ -lib/ruby/site_ruby/%%RUBY_VER%%/formatter.rb -lib/ruby/site_ruby/%%RUBY_VER%%/html-parser.rb -lib/ruby/site_ruby/%%RUBY_VER%%/sgml-parser.rb -share/doc/ruby/html-parser/README.html -@dirrm share/doc/ruby/html-parser +%%RUBY_SITELIBDIR%%/formatter.rb +%%RUBY_SITELIBDIR%%/html-parser.rb +%%RUBY_SITELIBDIR%%/sgml-parser.rb +%%RUBY_DOCDIR%%/html-parser/README.html +@dirrm %%RUBY_DOCDIR%%/html-parser -- cgit v1.2.3