svn commit: r327301 - head/textproc/ruby-amatch

Sunpoet Po-Chuan Hsieh sunpoet at FreeBSD.org
Sat Sep 14 16:34:28 UTC 2013


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 <knu at idaemons.org>
-#
+# Created by: Akinori MUSHA aka knu <knu at idaemons.org>
 # $FreeBSD$
-#
 
 PORTNAME=	amatch
 PORTVERSION=	0.2.5
@@ -14,11 +10,13 @@ EXTRACT_SUFX=	.tgz
 DIST_SUBDIR=	ruby
 
 MAINTAINER=	ruby at 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 <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
 
 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 <bsd.port.post.mk>
+.include <bsd.port.mk>

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/


More information about the svn-ports-all mailing list