summaryrefslogtreecommitdiff
path: root/textproc/ruby-hpricot/Makefile
diff options
context:
space:
mode:
authorminskim <minskim>2007-05-26 01:34:44 +0000
committerminskim <minskim>2007-05-26 01:34:44 +0000
commitf768cdafd35f602350878988865cdeac2e815573 (patch)
tree9005e3f65e346e6b9d016f2715481a1e28f90a6b /textproc/ruby-hpricot/Makefile
parent0bca8ca95ab677e5b24a7f123b7a11fed0a5a4fe (diff)
downloadpkgsrc-f768cdafd35f602350878988865cdeac2e815573.tar.gz
Import ruby-hpricot.
Hpricot is a very flexible HTML parser, based on Tanaka Akira's HTree and John Resig's JQuery, but with the scanner recoded in C (using Ragel for scanning).
Diffstat (limited to 'textproc/ruby-hpricot/Makefile')
-rw-r--r--textproc/ruby-hpricot/Makefile34
1 files changed, 34 insertions, 0 deletions
diff --git a/textproc/ruby-hpricot/Makefile b/textproc/ruby-hpricot/Makefile
new file mode 100644
index 00000000000..60c14f4ee9f
--- /dev/null
+++ b/textproc/ruby-hpricot/Makefile
@@ -0,0 +1,34 @@
+# $NetBSD: Makefile,v 1.1.1.1 2007/05/26 01:34:44 minskim Exp $
+
+DISTNAME= hpricot-0.5.140
+PKGNAME= ${RUBY_PKGPREFIX}-${DISTNAME}
+CATEGORIES= textproc ruby
+MASTER_SITES= http://code.whytheluckystiff.net/dist/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= minskim@NetBSD.org
+HOMEPAGE= http://code.whytheluckystiff.net/hpricot/
+COMMENT= Fast, enjoyable HTML parser for Ruby
+
+BUILD_DEPENDS+= ragel-[0-9]*:../../devel/ragel
+BUILD_DEPENDS+= rake>=0.7:../../devel/rake
+
+RUBY_HAS_ARCHLIB= yes
+
+FIND_PREFIX:= RAKE_PREFIX=rake
+.include "../../mk/find-prefix.mk"
+
+.include "../../lang/ruby/modules.mk"
+
+do-build:
+ cd ${WRKSRC} && ${RAKE_PREFIX}/bin/rake
+
+do-install:
+ ${INSTALL_LIB} ${WRKSRC}/lib/hpricot_scan.${RUBY_DLEXT} \
+ ${RUBY_SITEARCHLIBDIR}
+ ${INSTALL_DATA} ${WRKSRC}/lib/hpricot.rb ${RUBY_SITELIBDIR}
+ ${INSTALL_DATA_DIR} ${RUBY_SITELIBDIR}/hpricot
+ ${INSTALL_DATA} ${WRKSRC}/lib/hpricot/*.rb \
+ ${RUBY_SITELIBDIR}/hpricot
+
+.include "../../mk/bsd.pkg.mk"