From umeno@belldandy.unnumbered.net  Sun Nov 16 21:49:19 2003
Return-Path: <umeno@belldandy.unnumbered.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 37D0816A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 16 Nov 2003 21:49:19 -0800 (PST)
Received: from belldandy.unnumbered.net (gateway.unnumbered.net [210.159.90.73])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 26C1743FF2
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 16 Nov 2003 21:49:18 -0800 (PST)
	(envelope-from umeno@belldandy.unnumbered.net)
Received: from belldandy.unnumbered.net (localhost.unnumbered.net [127.0.0.1])
	by belldandy.unnumbered.net (8.12.10/8.12.10) with ESMTP id hAH5nGuB056386
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 17 Nov 2003 14:49:16 +0900 (JST)
	(envelope-from umeno@belldandy.unnumbered.net)
Received: (from umeno@localhost)
	by belldandy.unnumbered.net (8.12.10/8.12.10/Submit) id hAH5nFWW056385;
	Mon, 17 Nov 2003 14:49:15 +0900 (JST)
	(envelope-from umeno)
Message-Id: <200311170549.hAH5nFWW056385@belldandy.unnumbered.net>
Date: Mon, 17 Nov 2003 14:49:15 +0900 (JST)
From: UMENO Takashi <umeno@rr.iij4u.or.jp>
Reply-To: UMENO Takashi <umeno@rr.iij4u.or.jp>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: New Port: graphics/mingplot A tool to generate a flash-based chart.
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         59361
>Category:       ports
>Synopsis:       New Port: graphics/mingplot A tool to generate a flash-based chart.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Nov 16 21:50:19 PST 2003
>Closed-Date:    Sun Dec 07 13:41:53 PST 2003
>Last-Modified:  Sun Dec 07 13:41:53 PST 2003
>Originator:     UMENO Takashi
>Release:        FreeBSD 4.9-STABLE i386
>Organization:
individual
>Environment:
System: FreeBSD belldandy.unnumbered.net 4.9-STABLE FreeBSD 4.9-STABLE #0: Wed Nov 12 23:56:55 JST 2003 umeno@belldandy.unnumbered.net:/usr/obj/usr/src/sys/SAKUYA20 i386


	
>Description:
	New Port: graphics/mingplot A tool to generate a flash-based chart.
>How-To-Repeat:
	N/A
>Fix:

	
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	mingplot
#	mingplot/Makefile
#	mingplot/files
#	mingplot/files/patch-mingchart.rb
#	mingplot/distinfo
#	mingplot/pkg-plist
#	mingplot/pkg-descr
#
echo c - mingplot
mkdir -p mingplot > /dev/null 2>&1
echo x - mingplot/Makefile
sed 's/^X//' >mingplot/Makefile << 'END-of-mingplot/Makefile'
X# New ports collection makefile for:	mingplot
X# Date created:				14 Nov 2003
X# Whom:					UMENO Takashi <umeno@rr.iij4u.or.jp>
X#
X# $FreeBSD:$
X#
X
XPORTNAME=	mingplot
XPORTVERSION=	0.2
XCATEGORIES=	graphics www
XMASTER_SITES=	http://namazu.org/~satoru/mingplot/
X
XMAINTAINER=	umeno@rr.iij4u.or.jp
XCOMMENT=	A tool to generate a flash-based chart
X
XRUN_DEPENDS?=	${RUBY_SITEARCHLIBDIR}/ming/ming.so:${PORTSDIR}/graphics/ruby-ming
X
XUSE_RUBY=	yes
X
X.include <bsd.port.mk>
END-of-mingplot/Makefile
echo c - mingplot/files
mkdir -p mingplot/files > /dev/null 2>&1
echo x - mingplot/files/patch-mingchart.rb
sed 's/^X//' >mingplot/files/patch-mingchart.rb << 'END-of-mingplot/files/patch-mingchart.rb'
X--- mingchart.rb.orig	Fri Aug 15 10:06:17 2003
X+++ mingchart.rb	Fri Aug 15 10:06:20 2003
X@@ -188,7 +188,7 @@
X 
X   def add_axises
X     shape = SWFShape.new
X-    shape.set_line(@axis_line_width, *@axis_line_color)
X+    shape.set_line(@axis_line_width, *@axis_line_color.to_a)
X     shape.move_pen(@canvas_x_margin, @canvas_y_margin)
X     shape.draw_line(0, @y_length)
X     shape.draw_line(@x_length, 0)
X@@ -325,7 +325,7 @@
X     item.move_to(xx + x_margin, yy + y_margin)
X 
X     line = SWFShape.new
X-    line.set_line(@scale_line_width, *@scale_line_color)
X+    line.set_line(@scale_line_width, *@scale_line_color.to_a)
X     line.move_pen_to(xx, yy)
X     if at == :bottom
X       line.draw_line(0, -@s...)
X@@ -354,7 +354,7 @@
X       xx = convert_x(x)
X       yy = @canvas_height - @canvas_y_margin
X       line = SWFShape.new
X-      line.set_line(@grid_line_width, *@grid_line_color)
X+      line.set_line(@grid_line_width, *@grid_line_color.to_a)
X       line.move_pen_to(xx, yy)
X       line.draw_line(0, -@y...)
X       @movie.add(line)
X@@ -370,7 +370,7 @@
X       xx = @canvas_x_margin
X       yy = convert_y(y, side)
X       line = SWFShape.new
X-      line.set_line(@grid_line_width, *@grid_line_color)
X+      line.set_line(@grid_line_width, *@grid_line_color.to_a)
X       line.move_pen_to(xx, yy)
X       line.draw_line(@x_length, 0)
X       @movie.add(line)
X@@ -424,7 +424,7 @@
X 
X   def draw_line (data, color, side, fill_p = false)
X     line = SWFShape.new
X-    line.set_line(@line_width, *color)
X+    line.set_line(@line_width, *color.to_a)
X     first_time = true
X 
X     if fill_p
X@@ -549,8 +549,9 @@
X       texts.push([text, width, height, lineno])
X     }
X 
X-    total_height = texts.map {|x| x[2] }.inject(0) {|x, y| 
X-      x + y *  @line_title_line_height_ratio 
X+    total_height = 0
X+    texts.map {|x| x[2] }.each {|v| 
X+      total_height += v *  @line_title_line_height_ratio 
X     }
X     max_width = texts.map {|x| x[1] }.max
X 
X@@ -571,7 +572,7 @@
X                    base_y + height + height * i * @line_title_line_height_ratio)
X 
X       line = SWFShape.new
X-      line.set_line(@line_width, *@line_colors[lineno])
X+      line.set_line(@line_width, *@line_colors[lineno].to_a)
X       line.draw_line(@line_title_line_length, 0)
X       item = @movie.add(line)
X       item.move_to(base_x + @line_title_line_margin,
X
END-of-mingplot/files/patch-mingchart.rb
echo x - mingplot/distinfo
sed 's/^X//' >mingplot/distinfo << 'END-of-mingplot/distinfo'
XMD5 (mingplot-0.2.tar.gz) = 7f54e5224f14f5e490617f540fafebe8
END-of-mingplot/distinfo
echo x - mingplot/pkg-plist
sed 's/^X//' >mingplot/pkg-plist << 'END-of-mingplot/pkg-plist'
Xbin/amazonplot
Xbin/googleplot
Xshare/mingplot/mingplot.css
Xshare/mingplot/EfontSerifB.fdb
X%%RUBY_SITELIBDIR%%/mingchart.rb
X%%RUBY_SITELIBDIR%%/mingplot.rb
X%%RUBY_SITELIBDIR%%/googleplot.rb
X%%RUBY_SITELIBDIR%%/amazonplot.rb
X@dirrm share/mingplot
END-of-mingplot/pkg-plist
echo x - mingplot/pkg-descr
sed 's/^X//' >mingplot/pkg-descr << 'END-of-mingplot/pkg-descr'
XMingplot is a tool to generate a flash-based chart using ming.
X
XFor more information, see
XWWW: http://namazu.org/~satoru/mingplot/
END-of-mingplot/pkg-descr
exit



>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: pav 
State-Changed-When: Sun Dec 7 13:41:44 PST 2003 
State-Changed-Why:  
New port added, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=59361 
>Unformatted:
