From owner-svn-ports-all@FreeBSD.ORG Wed Dec 24 06:15:20 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C9A0FA3A; Wed, 24 Dec 2014 06:15:20 +0000 (UTC) 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)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id AA8C91BF6; Wed, 24 Dec 2014 06:15:20 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id sBO6FKpE022842; Wed, 24 Dec 2014 06:15:20 GMT (envelope-from sunpoet@FreeBSD.org) Received: (from sunpoet@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id sBO6FK0L022839; Wed, 24 Dec 2014 06:15:20 GMT (envelope-from sunpoet@FreeBSD.org) Message-Id: <201412240615.sBO6FK0L022839@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: sunpoet set sender to sunpoet@FreeBSD.org using -f From: Sunpoet Po-Chuan Hsieh Date: Wed, 24 Dec 2014 06:15:20 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r375409 - head/devel/rubygem-term-ansicolor X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Dec 2014 06:15:21 -0000 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 - 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 - 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 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