Date: Fri, 1 Apr 2005 22:25:26 +0400 (MSD) From: Alexander Novitsky <alecn2002@yandex.ru> To: FreeBSD-gnats-submit@FreeBSD.org Cc: alecn2002@yandex.ru Subject: ports/79432: [NEW PORT] textproc/ruby18-htmltools: Tools for parsing and manipulating HTML text in Ruby Message-ID: <200504011825.j31IPQrw037082@server.v42of.icc-vvd.ru> Resent-Message-ID: <200504011830.j31IU82S056576@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 79432 >Category: ports >Synopsis: [NEW PORT] textproc/ruby18-htmltools: Tools for parsing and manipulating HTML text in Ruby >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Apr 01 18:30:07 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Alexander Novitsky >Release: FreeBSD 5.2-RELEASE i386 >Organization: Inzhcomcentre VVD >Environment: System: FreeBSD server.v42of.icc-vvd.ru 5.2-RELEASE FreeBSD 5.2-RELEASE #2: Mon Jul 12 21:45:44 MSD 2004 >Description: Ruby-htmltools tools for parsing and manipulating HTML text in Ruby. It can be used for programmatically access outside HTML-pages. I hope to extend it to become a web-publishing framework in the future. Author: Johannes Brodwall <johannes@brodwall.com> WWW: http://rubyforge.org/projects/ruby-htmltools/ Generated with FreeBSD Port Tools 0.63 >How-To-Repeat: >Fix: --- ruby18-htmltools-1.09.shar begins here --- # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # ruby-htmltools # ruby-htmltools/pkg-descr # ruby-htmltools/Makefile # ruby-htmltools/pkg-plist # ruby-htmltools/distinfo # ruby-htmltools/files # ruby-htmltools/files/patch-install.rb # echo c - ruby-htmltools mkdir -p ruby-htmltools > /dev/null 2>&1 echo x - ruby-htmltools/pkg-descr sed 's/^X//' >ruby-htmltools/pkg-descr << 'END-of-ruby-htmltools/pkg-descr' XRuby-htmltools tools for parsing and manipulating HTML text in Ruby. XIt can be used for programmatically access outside HTML-pages. XI hope to extend it to become a web-publishing framework in the future. X XAuthor: Johannes Brodwall <johannes@brodwall.com> XWWW: http://rubyforge.org/projects/ruby-htmltools/ END-of-ruby-htmltools/pkg-descr echo x - ruby-htmltools/Makefile sed 's/^X//' >ruby-htmltools/Makefile << 'END-of-ruby-htmltools/Makefile' X# New ports collection makefile for: ruby-htmltools X# Date created: 2005-03-31 X# Whom: Alexander Novitsky <alecn2002@yandex.ru> X# X# $FreeBSD$ X# X XPORTNAME= htmltools XPORTVERSION= 1.09 X#PORTREVISION= 0 X#PORTEPOCH= 0 XCATEGORIES= textproc ruby XMASTER_SITES= http://rubyforge.org/frs/download.php/1340/ X#MASTER_SITE_SUBDIR= XPKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX} X#PKGNAMESUFFIX= XDISTNAME= ruby-${PORTNAME} X#EXTRACT_SUFX= X#DISTFILES= XDIST_SUBDIR= ruby X#EXTRACT_ONLY= X XMAINTAINER= alecn2002@yandex.ru XCOMMENT= Tools for parsing and manipulating HTML text in Ruby X XUSE_RUBY= yes XUSE_RUBY_SETUP= yes XRUBY_SETUP= install.rb XCONFIGURE_ARGS= --prefix=${PREFIX} XRUBY_INSTALL_ARGS= --prefix=${PREFIX} XNOHARM_ARGS= --no-harm X X.include <bsd.port.pre.mk> X Xinstall-noharm: X @${ECHO_MSG} "===> Running ${RUBY_SETUP} to NOHARM-install (Just output, do nothing)" X cd ${WRKSRC}; \ X ${SETENV} ${MAKE_ENV} ${RUBY} ${RUBY_FLAGS} ${RUBY_SETUP} install ${NOHARM_ARGS} ${RUBY_INSTALL_ARGS} X Xdo-install: X @${ECHO_MSG} "===> Running ${RUBY_SETUP} to install" X @cd ${INSTALL_WRKSRC}; \ X ${SETENV} ${MAKE_ENV} ${RUBY} ${RUBY_FLAGS} ${RUBY_SETUP} install ${RUBY_INSTALL_ARGS} X X.include <bsd.port.post.mk> END-of-ruby-htmltools/Makefile echo x - ruby-htmltools/pkg-plist sed 's/^X//' >ruby-htmltools/pkg-plist << 'END-of-ruby-htmltools/pkg-plist' X%%RUBY_SITELIBDIR%%/html/element.rb X%%RUBY_SITELIBDIR%%/html/rexml-nodepath.rb X%%RUBY_SITELIBDIR%%/html/sgml-parser.rb X%%RUBY_SITELIBDIR%%/html/stparser.rb X%%RUBY_SITELIBDIR%%/html/tags.rb X%%RUBY_SITELIBDIR%%/html/tree.rb X%%RUBY_SITELIBDIR%%/html/xmltree.rb X%%RUBY_SITELIBDIR%%/html/xpath.rb X@dirrm %%RUBY_SITELIBDIR%%/html END-of-ruby-htmltools/pkg-plist echo x - ruby-htmltools/distinfo sed 's/^X//' >ruby-htmltools/distinfo << 'END-of-ruby-htmltools/distinfo' XMD5 (ruby/ruby-htmltools.tar.gz) = 62b55355964699f44e40d77e14e3eb70 XSIZE (ruby/ruby-htmltools.tar.gz) = 26930 END-of-ruby-htmltools/distinfo echo c - ruby-htmltools/files mkdir -p ruby-htmltools/files > /dev/null 2>&1 echo x - ruby-htmltools/files/patch-install.rb sed 's/^X//' >ruby-htmltools/files/patch-install.rb << 'END-of-ruby-htmltools/files/patch-install.rb' X--- install.rb.orig Fri Sep 12 21:19:59 2003 X+++ install.rb Thu Mar 31 19:13:25 2005 X@@ -10,6 +10,8 @@ X # the GNU Lesser General Public License version 2. X # X X+ X+ X ### begin compat.rb X X unless Enumerable.instance_methods(true).include? 'inject' then X@@ -32,6 +34,13 @@ X end X X ### end compat.rb X+ X+class String X+ def begin_with?( substr ) X+ index( substr ) == 0 X+ end X+end X+ X ### begin config.rb X X if i = ARGV.index(/\A--rbconfig=/) then X@@ -308,7 +317,7 @@ X module FileOperations X X def mkdir_p( dname, prefix = nil ) X- dname = prefix + dname if prefix X+ dname = File.join( prefix, dname ) if ( prefix and not dname.begin_with?( prefix ) ) X $stderr.puts "mkdir -p #{dname}" if verbose? X return if no_harm? X X@@ -371,7 +380,9 @@ X $stderr.puts "install #{from} #{dest}" if verbose? X return if no_harm? X X- realdest = prefix + dest if prefix X+ realdest = ( prefix and not dest.begin_with?( prefix ) ) ? X+ prefix + dest : X+ dest X if dir? realdest then X realdest += '/' + File.basename(from) X end END-of-ruby-htmltools/files/patch-install.rb exit --- ruby18-htmltools-1.09.shar ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200504011825.j31IPQrw037082>