openbsd-ports/textproc/ruby-hpricot/Makefile
bernd e6b65b792d Initial import of ruby-hpricot-0.6.
Hpricot is a fast, flexible HTML parser written in C.  It's designed 
to be very accommodating (like Tanaka Akira's HTree) and to have a
very helpful library (like some JavaScript libs -- JQuery, Prototype
-- give you.)  The XPath and CSS parser, in fact, is based on John
Resig's JQuery.

Also, Hpricot can be handy for reading broken XML files, since many of
the same techniques can be used.  If a quote is missing, Hpricot tries
to figure it out. If tags overlap, Hpricot works on sorting them out.
2008-04-19 17:21:27 +00:00

45 lines
1.0 KiB
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2008/04/19 17:21:27 bernd Exp $
SHARED_ONLY= Yes
COMMENT= flexible HTML parser
DISTNAME= hpricot-0.6
PKGNAME= ruby-${DISTNAME}
CATEGORIES= textproc
HOMEPAGE= http://code.whytheluckystiff.net/hpricot/
# BSD
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${MASTER_SITE_RUBYFORGE:=hobix/}
WANTLIB= c m
LIB_DEPENDS= ruby::lang/ruby
BUILD_DEPENDS= ::devel/ruby-rake
MODULES= lang/ruby
CONFIGURE_STYLE= ruby gem
REGRESS_DEPENDS= ::textproc/ruby-hpricot
pre-install:
@cd ${WRKSRC} && ${LOCALBASE}/bin/rake gem && \
mv pkg/${DISTNAME}.gem ${WRKDIR}/${DISTNAME}.gem
REGRESS_GEM_DIR= ${LOCALBASE}/lib/ruby/gems/1.8/gems
do-regress:
@cd ${WRKSRC} && /usr/local/bin/ruby -rubygems -Ilib:test:lib \
-e "ARGV.each { |f| load f unless f =~ /^-/ }" \
"test/test_preserved.rb" "test/test_paths.rb" \
"test/test_xml.rb" "test/test_parser.rb" "test/test_alter.rb" \
"test/test_builder.rb"
.include <bsd.port.mk>