ports/157644: [MAINTAINER] devel/rubygem-ncursesw (install bug fix)

Eric Freeman freebsdports at chillibear.com
Sun Jun 5 22:20:15 UTC 2011

>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
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jun 05 22:20:15 UTC 2011
>Originator:     Eric Freeman
>Release:        8.2
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.
install the gem and run 'gem list'
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
 CATEGORIES=	devel rubygems
@@ -17,4 +18,8 @@
+# correct a mistake in the gemspec that prevents it being properly registered
+	@${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>


More information about the freebsd-ports-bugs mailing list