Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Dec 2014 06:15:20 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r375409 - head/devel/rubygem-term-ansicolor
Message-ID:  <201412240615.sBO6FK0L022839@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Wed Dec 24 06:15:19 2014
New Revision: 375409
URL: https://svnweb.freebsd.org/changeset/ports/375409
QAT: https://qat.redports.org/buildarchive/r375409/

Log:
  - Add LICENSE
  - Remove .include <bsd.port.options.mk>
  - Silence patch message
  - Use GEM_NAME
  - Cosmetic change
  - Update pkg-descr
  - Update WWW
  - Take maintainership

Modified:
  head/devel/rubygem-term-ansicolor/Makefile
  head/devel/rubygem-term-ansicolor/pkg-descr

Modified: head/devel/rubygem-term-ansicolor/Makefile
==============================================================================
--- head/devel/rubygem-term-ansicolor/Makefile	Wed Dec 24 06:15:12 2014	(r375408)
+++ head/devel/rubygem-term-ansicolor/Makefile	Wed Dec 24 06:15:19 2014	(r375409)
@@ -6,31 +6,29 @@ PORTVERSION=	1.3.0
 CATEGORIES=	devel ruby
 MASTER_SITES=	RG
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	sunpoet@FreeBSD.org
 COMMENT=	Term::ANSIColor for Ruby
 
-RUN_DEPENDS=	rubygem-tins>=0.8:${PORTSDIR}/devel/rubygem-tins
+LICENSE=	GPLv2
+
+RUN_DEPENDS=	rubygem-tins>=1.0:${PORTSDIR}/devel/rubygem-tins
+
+OPTIONS_DEFINE=	EXAMPLES
 
 USE_RUBY=	yes
 USE_RUBYGEMS=	yes
 RUBYGEM_AUTOPLIST=	yes
 
-PLIST_FILES+=	bin/colortab bin/term_display bin/term_mandel
-
+PLIST_FILES=	bin/colortab bin/term_display bin/term_mandel
 PORTEXAMPLES=	cdiff decolor
 
-OPTIONS_DEFINE=	EXAMPLES
-
-.include <bsd.port.options.mk>
-
 post-patch:
 # Chop out the cdiff and decolor binaries; these should be installed to
 # EXAMPLESDIR
-	${REINPLACE_CMD} -e '/^- [cd][de][ic][fo][fl]o*r*$$/d' \
-		${WRKSRC}/term-ansicolor-${PORTVERSION}.gemspec
+	@${REINPLACE_CMD} -e '/^- [cd][de][ic][fo][fl]o*r*$$/d' ${WRKSRC}/${GEM_NAME}.gemspec
 
 post-install:
-	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
-	${INSTALL_SCRIPT} ${PORTEXAMPLES:S,^,${WRKSRC}/bin/,} ${STAGEDIR}${EXAMPLESDIR}/
+	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/
+	cd ${WRKSRC}/bin/ && ${INSTALL_SCRIPT} ${PORTEXAMPLES} ${STAGEDIR}${EXAMPLESDIR}/
 
 .include <bsd.port.mk>

Modified: head/devel/rubygem-term-ansicolor/pkg-descr
==============================================================================
--- head/devel/rubygem-term-ansicolor/pkg-descr	Wed Dec 24 06:15:12 2014	(r375408)
+++ head/devel/rubygem-term-ansicolor/pkg-descr	Wed Dec 24 06:15:19 2014	(r375409)
@@ -1,11 +1,23 @@
 Small Ruby library that colors strings using ANSI escape sequences. 
 It's possible to use constants:
 
-    include Term::ANSIColor
     print red, bold, "red bold", reset, "\n"
 
-    or
+or unary functions:
 
     print red(bold("red bold")), "\n"
 
-WWW: http://rubygems.org/gems/term-ansicolor/
+Blockforms do also autoreset at the block's end:
+
+    print red { bold { "red bold" } }, "\n"
+
+It's also possible to use this module as Mixin for classes of objects that
+respond to :to_str, e.g. String.
+
+    class String
+      include Term::ANSIColor
+    end
+    print "red bold".red.bold, "\n"
+
+WWW: http://flori.github.io/term-ansicolor/
+RG:  https://rubygems.org/gems/term-ansicolor



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201412240615.sBO6FK0L022839>