From owner-svn-ports-head@FreeBSD.ORG Sat Sep 14 16:34:28 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 9E571C0A; Sat, 14 Sep 2013 16:34:28 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 71CC52E9E; Sat, 14 Sep 2013 16:34:28 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r8EGYShP034013; Sat, 14 Sep 2013 16:34:28 GMT (envelope-from sunpoet@svn.freebsd.org) Received: (from sunpoet@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r8EGYSvK034011; Sat, 14 Sep 2013 16:34:28 GMT (envelope-from sunpoet@svn.freebsd.org) Message-Id: <201309141634.r8EGYSvK034011@svn.freebsd.org> From: Sunpoet Po-Chuan Hsieh Date: Sat, 14 Sep 2013 16:34:28 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r327301 - head/textproc/ruby-amatch X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Sep 2013 16:34:28 -0000 Author: sunpoet Date: Sat Sep 14 16:34:27 2013 New Revision: 327301 URL: http://svnweb.freebsd.org/changeset/ports/327301 Log: - Convert to new options framework - Use USES=gmake - Simplify PORTDOCS installation - Remove leading indefinite article from COMMENT - Cleanup Makefile header - Update WWW Modified: head/textproc/ruby-amatch/Makefile (contents, props changed) head/textproc/ruby-amatch/pkg-descr Modified: head/textproc/ruby-amatch/Makefile ============================================================================== --- head/textproc/ruby-amatch/Makefile Sat Sep 14 16:32:56 2013 (r327300) +++ head/textproc/ruby-amatch/Makefile Sat Sep 14 16:34:27 2013 (r327301) @@ -1,9 +1,5 @@ -# New ports collection makefile for: Ruby/amatch -# Date created: 10 November 2002 -# Whom: Akinori MUSHA aka knu -# +# Created by: Akinori MUSHA aka knu # $FreeBSD$ -# PORTNAME= amatch PORTVERSION= 0.2.5 @@ -14,11 +10,13 @@ EXTRACT_SUFX= .tgz DIST_SUBDIR= ruby MAINTAINER= ruby@FreeBSD.org -COMMENT= A Ruby library for approximate string matching and searching +COMMENT= Ruby library for approximate string matching and searching + +OPTIONS_DEFINE= DOCS -USE_RUBY= yes -USE_GMAKE= yes NO_BUILD= yes # build while install +USE_RUBY= yes +USES= gmake PLIST_FILES= bin/agrep.rb %%RUBY_SITELIBDIR%%/amatch/version.rb \ %%RUBY_SITEARCHLIBDIR%%/amatch.so @@ -28,17 +26,14 @@ AMATCH_RUBY= install.rb DOCSDIR= ${RUBY_MODDOCDIR} PORTDOCS= CHANGES README -.include +.include do-install: @${ECHO_MSG} "===> Running ${AMATCH_RUBY} to install" - @cd ${INSTALL_WRKSRC}; \ - ${SETENV} ${MAKE_ENV} ${RUBY} ${RUBY_FLAGS} ${AMATCH_RUBY} install -.if !defined(NOPORTDOCS) - ${MKDIR} ${DOCSDIR} -.for f in ${PORTDOCS} - ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/ -.endfor + cd ${WRKSRC}/ && ${SETENV} ${MAKE_ENV} ${RUBY} ${RUBY_FLAGS} ${AMATCH_RUBY} install +.if ${PORT_OPTIONS:MDOCS} + ${MKDIR} ${DOCSDIR}/ + cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/ .endif -.include +.include Modified: head/textproc/ruby-amatch/pkg-descr ============================================================================== --- head/textproc/ruby-amatch/pkg-descr Sat Sep 14 16:32:56 2013 (r327300) +++ head/textproc/ruby-amatch/pkg-descr Sat Sep 14 16:34:27 2013 (r327301) @@ -2,4 +2,4 @@ This is a Ruby library for approximate s using a dynamic programming algorithm to compute the Levenstein distance between strings. Written in C for speed. -WWW: http://amatch.rubyforge.org/ +WWW: http://flori.github.io/amatch/