mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
Add ruby-gdchart, a Ruby extension to use the GDCHART library.
This commit is contained in:
parent
61ca41bdc4
commit
ec7701ec44
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=45192
@ -213,6 +213,7 @@
|
||||
SUBDIR += qvplay
|
||||
SUBDIR += rayshade
|
||||
SUBDIR += ruby-gd
|
||||
SUBDIR += ruby-gdchart
|
||||
SUBDIR += ruby-gdk_imlib
|
||||
SUBDIR += ruby-gdk_pixbuf
|
||||
SUBDIR += ruby-gimp
|
||||
|
31
graphics/ruby-gdchart/Makefile
Normal file
31
graphics/ruby-gdchart/Makefile
Normal file
@ -0,0 +1,31 @@
|
||||
# New ports collection makefile for: Ruby/GDChart
|
||||
# Date created: 16 July 2001
|
||||
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= gdchart
|
||||
PORTVERSION= 0.0.1
|
||||
CATEGORIES= graphics ruby
|
||||
MASTER_SITES= http://www.aragorn.demon.nl/lib/
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
DISTNAME= ruby-${PORTNAME}-${PORTVERSION}
|
||||
|
||||
MAINTAINER= knu@FreeBSD.org
|
||||
|
||||
BUILD_DEPENDS= ${LOCALBASE}/lib/libgdchart.a:${PORTSDIR}/graphics/gdchart
|
||||
|
||||
USE_RUBY= yes
|
||||
USE_RUBY_EXTCONF= yes
|
||||
|
||||
CONFIGURE_ARGS= --with-gd-include="${LOCALBASE}/include/gd"
|
||||
INSTALL_TARGET= site-install
|
||||
|
||||
pre-configure:
|
||||
${CP} ${FILESDIR}/extconf.rb ${WRKSRC}/
|
||||
|
||||
post-install:
|
||||
${MKDIR} ${RUBY_DOCDIR}/${PORTNAME}
|
||||
${INSTALL_DATA} ${WRKSRC}/README.en ${RUBY_DOCDIR}/${PORTNAME}/
|
||||
|
||||
.include <bsd.port.mk>
|
1
graphics/ruby-gdchart/distinfo
Normal file
1
graphics/ruby-gdchart/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (ruby-gdchart-0.0.1.tar.gz) = 23a9a2a28ed364f6234cd35e9b1edaad
|
11
graphics/ruby-gdchart/files/extconf.rb
Normal file
11
graphics/ruby-gdchart/files/extconf.rb
Normal file
@ -0,0 +1,11 @@
|
||||
require 'mkmf'
|
||||
|
||||
$CFLAGS << ' -DHAVE_JPEG'
|
||||
dir_config('gd', '/usr/local')
|
||||
dir_config('gdchart', '/usr/local')
|
||||
have_library('z')
|
||||
have_library('png')
|
||||
have_library('jpeg')
|
||||
have_library('gd')
|
||||
have_library('gdchart')
|
||||
create_makefile("GDChart")
|
18
graphics/ruby-gdchart/files/patch-README.en
Normal file
18
graphics/ruby-gdchart/files/patch-README.en
Normal file
@ -0,0 +1,18 @@
|
||||
--- README.en.orig Mon Nov 27 00:47:58 2000
|
||||
+++ README.en Mon Jul 16 17:24:47 2001
|
||||
@@ -18,6 +18,7 @@
|
||||
numsets = 1
|
||||
xsize = 200
|
||||
ysize = 200
|
||||
+GDChart.image_type = GDChart::PNG;
|
||||
GDChart.out_graph(xsize, ysize, $stdout, GDChart::LINE, numpoints, \
|
||||
labels, numsets, data)
|
||||
--
|
||||
@@ -54,6 +55,7 @@
|
||||
variable indicates its use. Basically, use a number when integer or
|
||||
float, and a string when string (obviously).
|
||||
|
||||
+GDC_image_type integer
|
||||
GDC_ytitle string
|
||||
GDC_xtitle string
|
||||
GDC_ytitle2 string
|
23
graphics/ruby-gdchart/files/patch-gdchart.c
Normal file
23
graphics/ruby-gdchart/files/patch-gdchart.c
Normal file
@ -0,0 +1,23 @@
|
||||
--- gdchart.c.orig Mon Nov 27 00:47:58 2000
|
||||
+++ gdchart.c Mon Jul 16 17:23:54 2001
|
||||
@@ -16,6 +16,11 @@
|
||||
#include "rubyio.h"
|
||||
|
||||
VALUE
|
||||
+mgdc_get_image_type(VALUE obj) { return INT2FIX(GDC_image_type); }
|
||||
+VALUE
|
||||
+mgdc_set_image_type(VALUE obj, VALUE arg) { GDC_image_type = FIX2INT(arg); }
|
||||
+
|
||||
+VALUE
|
||||
mgdc_get_ytitle(VALUE obj) { return rb_str_new2(GDC_ytitle); }
|
||||
VALUE
|
||||
mgdc_set_ytitle(VALUE obj, VALUE arg) { GDC_ytitle = STR2CSTR(arg); }
|
||||
@@ -443,6 +448,8 @@
|
||||
#endif
|
||||
rb_define_module_function(mGDChart, "out_graph", mgdc_out_graph, 8);
|
||||
|
||||
+ rb_define_module_function(mGDChart, "image_type", mgdc_get_image_type, 0);
|
||||
+ rb_define_module_function(mGDChart, "image_type=", mgdc_set_image_type, 1);
|
||||
rb_define_module_function(mGDChart, "ytitle", mgdc_get_ytitle, 0);
|
||||
rb_define_module_function(mGDChart, "ytitle=", mgdc_set_ytitle, 1);
|
||||
rb_define_module_function(mGDChart, "xtitle", mgdc_get_xtitle, 0);
|
1
graphics/ruby-gdchart/pkg-comment
Normal file
1
graphics/ruby-gdchart/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
A Ruby extension to use the GDCHART library
|
5
graphics/ruby-gdchart/pkg-descr
Normal file
5
graphics/ruby-gdchart/pkg-descr
Normal file
@ -0,0 +1,5 @@
|
||||
Ruby/GDChart is an extension to use Bruce Verderaime's GDCHART library
|
||||
from Ruby.
|
||||
|
||||
Author: Arjen Laarhoven <arjen@aragorn.demon.nl>
|
||||
WWW: http://www.aragorn.demon.nl/
|
3
graphics/ruby-gdchart/pkg-plist
Normal file
3
graphics/ruby-gdchart/pkg-plist
Normal file
@ -0,0 +1,3 @@
|
||||
%%RUBY_SITEARCHLIBDIR%%/GDChart.so
|
||||
%%PORTDOCS%%%%RUBY_DOCDIR%%/gdchart/README.en
|
||||
%%PORTDOCS%%@dirrm %%RUBY_DOCDIR%%/gdchart
|
Loading…
Reference in New Issue
Block a user