diff options
author | minskim <minskim> | 2007-05-26 01:34:44 +0000 |
---|---|---|
committer | minskim <minskim> | 2007-05-26 01:34:44 +0000 |
commit | f768cdafd35f602350878988865cdeac2e815573 (patch) | |
tree | 9005e3f65e346e6b9d016f2715481a1e28f90a6b /textproc/ruby-hpricot | |
parent | 0bca8ca95ab677e5b24a7f123b7a11fed0a5a4fe (diff) | |
download | pkgsrc-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')
-rw-r--r-- | textproc/ruby-hpricot/DESCR | 3 | ||||
-rw-r--r-- | textproc/ruby-hpricot/Makefile | 34 | ||||
-rw-r--r-- | textproc/ruby-hpricot/PLIST | 15 | ||||
-rw-r--r-- | textproc/ruby-hpricot/distinfo | 6 | ||||
-rw-r--r-- | textproc/ruby-hpricot/patches/patch-aa | 13 |
5 files changed, 71 insertions, 0 deletions
diff --git a/textproc/ruby-hpricot/DESCR b/textproc/ruby-hpricot/DESCR new file mode 100644 index 00000000000..6361bfb387c --- /dev/null +++ b/textproc/ruby-hpricot/DESCR @@ -0,0 +1,3 @@ +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). 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" diff --git a/textproc/ruby-hpricot/PLIST b/textproc/ruby-hpricot/PLIST new file mode 100644 index 00000000000..ebf35588e2e --- /dev/null +++ b/textproc/ruby-hpricot/PLIST @@ -0,0 +1,15 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2007/05/26 01:34:44 minskim Exp $ +${RUBY_SITELIBDIR}/hpricot.rb +${RUBY_SITELIBDIR}/hpricot/blankslate.rb +${RUBY_SITELIBDIR}/hpricot/builder.rb +${RUBY_SITELIBDIR}/hpricot/elements.rb +${RUBY_SITELIBDIR}/hpricot/htmlinfo.rb +${RUBY_SITELIBDIR}/hpricot/inspect.rb +${RUBY_SITELIBDIR}/hpricot/modules.rb +${RUBY_SITELIBDIR}/hpricot/parse.rb +${RUBY_SITELIBDIR}/hpricot/tag.rb +${RUBY_SITELIBDIR}/hpricot/tags.rb +${RUBY_SITELIBDIR}/hpricot/traverse.rb +${RUBY_SITELIBDIR}/hpricot/xchar.rb +${RUBY_SITEARCHLIBDIR}/hpricot_scan.${RUBY_DLEXT} +@dirrm ${RUBY_SITELIBDIR}/hpricot diff --git a/textproc/ruby-hpricot/distinfo b/textproc/ruby-hpricot/distinfo new file mode 100644 index 00000000000..224526bc089 --- /dev/null +++ b/textproc/ruby-hpricot/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2007/05/26 01:34:44 minskim Exp $ + +SHA1 (hpricot-0.5.140.tgz) = c30ba9a0217bf0d43bc2d8ee0876845aa3f521c6 +RMD160 (hpricot-0.5.140.tgz) = ee011a8d8dbb9991acbf6c38c1175fc756faf0f1 +Size (hpricot-0.5.140.tgz) = 212870 bytes +SHA1 (patch-aa) = 9a1b69d5cc2a2b88fbdba97a8c283daa1f406a0c diff --git a/textproc/ruby-hpricot/patches/patch-aa b/textproc/ruby-hpricot/patches/patch-aa new file mode 100644 index 00000000000..77d7387208b --- /dev/null +++ b/textproc/ruby-hpricot/patches/patch-aa @@ -0,0 +1,13 @@ +$NetBSD: patch-aa,v 1.1.1.1 2007/05/26 01:34:44 minskim Exp $ + +--- Rakefile.orig 2007-04-03 14:26:53.000000000 -0700 ++++ Rakefile +@@ -7,7 +7,7 @@ require 'fileutils' + include FileUtils + + NAME = "hpricot" +-REV = `svn info`[/Revision: (\d+)/, 1] rescue nil ++REV = "140" + VERS = ENV['VERSION'] || "0.5" + (REV ? ".#{REV}" : "") + PKG = "#{NAME}-#{VERS}" + BIN = "*.{bundle,jar,so,obj,pdb,lib,def,exp}" |