From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Jun 5 22:20:15 2011 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8A65F1065672 for ; Sun, 5 Jun 2011 22:20:15 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 4CC858FC1A for ; Sun, 5 Jun 2011 22:20:15 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p55MKFoL094067 for ; Sun, 5 Jun 2011 22:20:15 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p55MKFDX094066; Sun, 5 Jun 2011 22:20:15 GMT (envelope-from gnats) Resent-Date: Sun, 5 Jun 2011 22:20:15 GMT Resent-Message-Id: <201106052220.p55MKFDX094066@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Eric Freeman Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5F6AD1065676 for ; Sun, 5 Jun 2011 22:15:15 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id EE2828FC0A for ; Sun, 5 Jun 2011 22:15:14 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p55MFE21026343 for ; Sun, 5 Jun 2011 22:15:14 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p55MFEEv026342; Sun, 5 Jun 2011 22:15:14 GMT (envelope-from nobody) Message-Id: <201106052215.p55MFEEv026342@red.freebsd.org> Date: Sun, 5 Jun 2011 22:15:14 GMT From: Eric Freeman To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/157644: [MAINTAINER] devel/rubygem-ncursesw (install bug fix) X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Jun 2011 22:20:15 -0000 >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 >Release-Note: >Audit-Trail: >Unformatted: