Date: Sun, 5 Jun 2011 22:15:14 GMT From: Eric Freeman <freebsdports@chillibear.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/157644: [MAINTAINER] devel/rubygem-ncursesw (install bug fix) Message-ID: <201106052215.p55MFEEv026342@red.freebsd.org> Resent-Message-ID: <201106052220.p55MKFDX094066@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 157644 >Category: ports >Synopsis: [MAINTAINER] devel/rubygem-ncursesw (install bug fix) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Jun 05 22:20:15 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Eric Freeman >Release: 8.2 >Organization: >Environment: >Description: Small fix to this gem port of mine. I noticed that there is a mistake within the actual gemspec of the file that prevents the Ruby gem command from properly registering the gem. I've essentially patched the gemspec post install from the Makefile. This fixes it and allows it to be properly used. As far as I'm aware this has to be done in the post-install target since the gem doesn't actually 'unpack' into the workdir and is instead installed by the gem package behind the scenes, so I don't think a patch target would work. >How-To-Repeat: install the gem and run 'gem list' >Fix: diff -ru rubygem-ncursesw.orig/Makefile rubygem-ncursesw/Makefile --- rubygem-ncursesw.orig/Makefile 2011-06-05 08:00:24.000000000 +0100 +++ rubygem-ncursesw/Makefile 2011-06-05 08:06:29.000000000 +0100 @@ -7,6 +7,7 @@ PORTNAME= ncursesw PORTVERSION= 1.2.4.3 +PORTREVISION= 1 CATEGORIES= devel rubygems MASTER_SITES= RG @@ -17,4 +18,8 @@ USE_RUBYGEMS= yes RUBYGEM_AUTOPLIST= yes +# correct a mistake in the gemspec that prevents it being properly registered +post-install: + @${REINPLACE_CMD} -e 's|s.date = %q{2010-11-9 13:45:50 -08:00|s.date = %q{2010-11-09|' ${PREFIX}/${GEMS_BASE_DIR}/specifications/${PORTNAME}-${PORTVERSION}.gemspec + .include <bsd.port.mk> >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201106052215.p55MFEEv026342>