Need help with new port math/ggobi

Rainer Hurling rhurlin at gwdg.de
Wed Jan 27 19:01:28 UTC 2010


I am working on a new port math/ggobi and could need some help. If you 
are interested you will find my draft version attached. It should be 
stored under math/ggobi.

I use the linux version of ggobi from http://www.ggobi.org/downloads/ , 
a small fancy program for data visualization like math/xgobi, but newer 
and more adapted for use with math/R and with opensource license (not 
restricted). Under the given URL there is also a brief description on 
how the program authors recommend to install ggobi step by step.

My port tries do recreate this procedure. Additionally I had to patch 
plugins/GraphLayout/graphviz.c because port graphics/graphviz only uses 
floating point version of ND_coord. The build and install process seems 
to work good so far. Probably you will find some improvements ;-)

There are some obscurities I am struggling with:

1. The port needs libraries gtk2 and libxml2.
    Is it ok how the port ensures they are installed?

2. A second make target has to create 'ggobirc'.
    Is it build ok this way?

3. ggobi authors suggest to create /etc/xdg/ggobi/ for resource file.
    A better place would be /usr/local/etc/xdg/ggobi/, I think.
    What do you think? How could this be coded in the port?

4. pkg-plist is not complete at this time because of No. 3.

5. When deinstalling, should we try to remove dirs share/applications
    and etc/xdg? (Mostly they are used by other ports, too)

It would be nice if someone with more experience could help me on how to 
do it the right way :-)

Many thanks in advance,
Rainer Hurling


-------------- next part --------------
# Ports collection makefile for:   ggobi
# Date created:        27 January 2010
# Whom:                rhurlin
#
# $FreeBSD$
#

PORTNAME=	ggobi
PORTVERSION=	2.1.8
CATEGORIES=	math graphics
MASTER_SITES=	http://www.ggobi.org/downloads/
DISTNAME=	${PORTNAME}-${PORTVERSION}

MAINTAINER=	rhurlin at gwdg.de
COMMENT=	Data visualization system

LIB_DEPENDS=	xml2:${PORTSDIR}/textproc/libxml2

USE_BZIP2=	yes
USE_GNOME=	gtk20
USE_LDCONFIG=	yes
GNU_CONFIGURE=	yes

.include <bsd.port.options.mk>

CONFIGURE_ARGS+=    --with-all-plugins

post-patch:
	@${REINPLACE_CMD} -e 's,ND_coord_i,ND_coord,' \
		${WRKSRC}/plugins/GraphLayout/graphviz.c

post-build:
	@cd ${WRKSRC} && ${MAKE} ggobirc

post-install:
	${MKDIR} /etc/xdg/ggobi
	${INSTALL_DATA} ${WRKSRC}/ggobirc /etc/xdg/ggobi/

.include <bsd.port.mk>
-------------- next part --------------
MD5 (ggobi-2.1.8.tar.bz2) = 0b07adffcf4379e819b1a26e4cd60d7b
SHA256 (ggobi-2.1.8.tar.bz2) = 2f814376d08a783628d2150d64cddda2e86b71f12847f1d51ba977197102fa8f
SIZE (ggobi-2.1.8.tar.bz2) = 2531628
-------------- next part --------------
GGobi is an open source visualization program for exploring high-dimensional 
data. It provides highly dynamic and interactive graphics such as tours, as 
well as familiar graphics such as the scatterplot, barchart and parallel 
coordinates plots. Plots are interactive and linked with brushing and 
identification.

WWW: http://www.ggobi.org/
-------------- next part --------------
bin/ggobi
include/ggobi/GGStructSizes.c
include/ggobi/GGobiAPI.h
include/ggobi/GGobiApp.h
include/ggobi/GGobiEvents.h
include/ggobi/barchartDisplay.h
include/ggobi/brushing.h
include/ggobi/colorscheme.h
include/ggobi/config.h
include/ggobi/cpanel.h
include/ggobi/defines.h
include/ggobi/display.h
include/ggobi/display_tree.h
include/ggobi/externs.h
include/ggobi/fileio.h
include/ggobi/ggobi-data.h
include/ggobi/ggobi-intl.h
include/ggobi/ggobi-renderer-cairo.h
include/ggobi/ggobi-renderer-factory.h
include/ggobi/ggobi-renderer.h
include/ggobi/ggobi.h
include/ggobi/ggobiClass.h
include/ggobi/marshal.h
include/ggobi/noop-toggle.h
include/ggobi/parcoordsClass.h
include/ggobi/plugin.h
include/ggobi/print.h
include/ggobi/read_csv.h
include/ggobi/read_init.h
include/ggobi/read_xml.h
include/ggobi/scatmatClass.h
include/ggobi/scatterplotClass.h
include/ggobi/splash.h
include/ggobi/splot.h
include/ggobi/testEvents.h
include/ggobi/tour.h
include/ggobi/tour1d_pp.h
include/ggobi/tour2d_pp.h
include/ggobi/tour_pp.h
include/ggobi/tsPlot.h
include/ggobi/tsdisplay.h
include/ggobi/types.h
include/ggobi/vars.h
include/ggobi/varseldata.h
include/ggobi/vartable.h
include/ggobi/write_xml.h
include/ggobi/writedata.h
lib/libggobi.la
lib/libggobi.so
lib/libggobi.so.0
lib/pkgconfig/ggobi.pc
share/applications/ggobi.desktop
share/ggobi/data/Shipman.csv
share/ggobi/data/Shipman.xml
share/ggobi/data/adhoc.xml
share/ggobi/data/algal-bloom.xml
share/ggobi/data/buckyball.xml
share/ggobi/data/cube6.xml
share/ggobi/data/eies.xml
share/ggobi/data/flea.csv
share/ggobi/data/flea.xml
share/ggobi/data/laser.csv
share/ggobi/data/laser.xml
share/ggobi/data/morsecodes.xml
share/ggobi/data/olive.csv
share/ggobi/data/olive.xml
share/ggobi/data/perm4.xml
share/ggobi/data/perm5.xml
share/ggobi/data/pigs.xml
share/ggobi/data/places.csv
share/ggobi/data/places.xml
share/ggobi/data/prim7.xml
share/ggobi/data/ratcns.csv
share/ggobi/data/ratcns.xml
share/ggobi/data/river.xml
share/ggobi/data/roos.csv
share/ggobi/data/roos.xml
share/ggobi/data/sarsHK.xml
share/ggobi/data/sat.csv
share/ggobi/data/sat.xml
share/ggobi/data/sleep.csv
share/ggobi/data/sleep.xml
share/ggobi/data/snetwork.xml
share/ggobi/data/stdColorMap.xml
share/ggobi/data/tao-nomiss.xml
share/ggobi/data/tao.csv
share/ggobi/data/tao.xml
share/ggobi/data/tips.csv
share/ggobi/data/tips.xml
share/ggobi/data/tmin.csv
share/ggobi/data/tmin.xml
share/ggobi/data/tmin1.csv
share/ggobi/data/tmin1.xml
share/ggobi/data/tmin2.xml
share/ggobi/data/tmin3.xml
share/ggobi/data/tmin4.xml
share/ggobi/plugins/DataViewer/plugin.la
share/ggobi/plugins/DataViewer/plugin.so
share/ggobi/plugins/DataViewer/plugin.so.0
share/ggobi/plugins/DescribeDisplay/plugin.la
share/ggobi/plugins/DescribeDisplay/plugin.so
share/ggobi/plugins/DescribeDisplay/plugin.so.0
share/ggobi/plugins/GraphAction/plugin.la
share/ggobi/plugins/GraphAction/plugin.so
share/ggobi/plugins/GraphAction/plugin.so.0
share/ggobi/plugins/GraphLayout/plugin.la
share/ggobi/plugins/GraphLayout/plugin.so
share/ggobi/plugins/GraphLayout/plugin.so.0
share/ggobi/plugins/VarCloud/plugin.la
share/ggobi/plugins/VarCloud/plugin.so
share/ggobi/plugins/VarCloud/plugin.so.0
share/ggobi/plugins/ggvis/plugin.la
share/ggobi/plugins/ggvis/plugin.so
share/ggobi/plugins/ggvis/plugin.so.0
share/ggobi/share/colorschemes.xml
share/pixmaps/ggobi.png
@dirrm share/ggobi/share
@dirrm share/ggobi/plugins/ggvis
@dirrm share/ggobi/plugins/VarCloud
@dirrm share/ggobi/plugins/GraphLayout
@dirrm share/ggobi/plugins/GraphAction
@dirrm share/ggobi/plugins/DescribeDisplay
@dirrm share/ggobi/plugins/DataViewer
@dirrm share/ggobi/plugins
@dirrm share/ggobi/data
@dirrm share/ggobi
@dirrm share/applications
@dirrm lib/pkgconfig
@dirrm include/ggobi



More information about the freebsd-ports mailing list