Bug 175898 - [PATCH] graphics/rubygem-scruff bugfix render
Summary: [PATCH] graphics/rubygem-scruff bugfix render
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Dirk Meyer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-06 20:30 UTC by dirk.meyer
Modified: 2013-02-07 07:20 UTC (History)
0 users

See Also:


Attachments
file.diff (577 bytes, patch)
2013-02-06 20:30 UTC, dirk.meyer
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description dirk.meyer 2013-02-06 20:30:01 UTC
	All graphs generated with scruffy 0.2.6 are empty.
	This is to a bug in the code:

	Patch from:
	http://rubyforge.org/tracker/index.php?func=detail&aid=27102&group_id=2030&atid=7929

	Same Problem:
	http://rubyforge.org/tracker/index.php?func=detail&aid=27128&group_id=2030&atid=7929
	http://rubyforge.org/tracker/index.php?func=detail&aid=27961&group_id=2030&atid=7929

Fix: apply this patch.
	Sadly we can not patch the gem file itself yet.
	So I fix it in post-install.
How-To-Repeat: 
	try any sample to generate a graph,
	it will be empy.
Comment 1 Dirk Meyer freebsd_committer freebsd_triage 2013-02-07 03:24:34 UTC
Responsible Changed
From-To: freebsd-ports-bugs->dinoex

I will take care of it.
Comment 2 dfilter service freebsd_committer freebsd_triage 2013-02-07 03:25:57 UTC
Author: dinoex
Date: Thu Feb  7 03:25:50 2013
New Revision: 311810
URL: http://svnweb.freebsd.org/changeset/ports/311810

Log:
  - fix redering of all graphs
  PR:		175898
  Submitted by:	dinoex
  Reviewed by:	swills

Modified:
  head/graphics/rubygem-scruffy/Makefile

Modified: head/graphics/rubygem-scruffy/Makefile
==============================================================================
--- head/graphics/rubygem-scruffy/Makefile	Thu Feb  7 03:16:16 2013	(r311809)
+++ head/graphics/rubygem-scruffy/Makefile	Thu Feb  7 03:25:50 2013	(r311810)
@@ -8,6 +8,7 @@
 
 PORTNAME=	scruffy
 PORTVERSION=	0.2.6
+PORTREVISION=	1
 CATEGORIES=	graphics rubygems
 MASTER_SITES=	RG
 
@@ -20,4 +21,9 @@ USE_RUBY=	yes
 USE_RUBYGEMS=	yes
 RUBYGEM_AUTOPLIST= yes
 
+post-install:
+	${REINPLACE_CMD} -e 's|#{options|0 0 #{options|' \
+		${PREFIX}/${GEM_LIB_DIR}/lib/scruffy/renderers/base.rb
+	grep options ${PREFIX}/${GEM_LIB_DIR}/lib/scruffy/renderers/base.rb
+
 .include <bsd.port.mk>
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Dirk Meyer freebsd_committer freebsd_triage 2013-02-07 07:14:45 UTC
State Changed
From-To: open->closed

committed, thanks.