pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/ruby-hpricot Import ruby-hpricot.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7c27a50ff214
branches:  trunk
changeset: 529149:7c27a50ff214
user:      minskim <minskim%pkgsrc.org@localhost>
date:      Sat May 26 01:34:44 2007 +0000

description:
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:

 textproc/ruby-hpricot/DESCR            |   3 +++
 textproc/ruby-hpricot/Makefile         |  34 ++++++++++++++++++++++++++++++++++
 textproc/ruby-hpricot/PLIST            |  15 +++++++++++++++
 textproc/ruby-hpricot/distinfo         |   6 ++++++
 textproc/ruby-hpricot/patches/patch-aa |  13 +++++++++++++
 5 files changed, 71 insertions(+), 0 deletions(-)

diffs (91 lines):

diff -r 0d7fc4420acf -r 7c27a50ff214 textproc/ruby-hpricot/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/ruby-hpricot/DESCR       Sat May 26 01:34:44 2007 +0000
@@ -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 -r 0d7fc4420acf -r 7c27a50ff214 textproc/ruby-hpricot/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/ruby-hpricot/Makefile    Sat May 26 01:34:44 2007 +0000
@@ -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@localhost
+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 -r 0d7fc4420acf -r 7c27a50ff214 textproc/ruby-hpricot/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/ruby-hpricot/PLIST       Sat May 26 01:34:44 2007 +0000
@@ -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 -r 0d7fc4420acf -r 7c27a50ff214 textproc/ruby-hpricot/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/ruby-hpricot/distinfo    Sat May 26 01:34:44 2007 +0000
@@ -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 -r 0d7fc4420acf -r 7c27a50ff214 textproc/ruby-hpricot/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/ruby-hpricot/patches/patch-aa    Sat May 26 01:34:44 2007 +0000
@@ -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}"



Home | Main Index | Thread Index | Old Index