Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Nov 2012 22:57:13 +0000 (UTC)
From:      Max Brazhnikov <makc@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r307216 - in head/math/grace: . files
Message-ID:  <201211082257.qA8MvDND042724@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: makc
Date: Thu Nov  8 22:57:13 2012
New Revision: 307216
URL: http://svnweb.freebsd.org/changeset/ports/307216

Log:
  - Update to version 5.1.23 [1]
  - Reformat description [1]
  - Trim Makefile header [1]
  - Add options: FFTW NETCDF PDF [2]
  
  PR:		ports/172723 [1],
  		based on ports/166117 [2]
  Submitted by:	KATO Tsuguru <tkato432 at yahoo.com> [1],
  		Momchil Ivanov <momchil at xaxo.eu> [2]
  Feature safe:	yes

Deleted:
  head/math/grace/files/patch-src-motifutils.c
  head/math/grace/files/patch-src-rstdrv.c
Modified:
  head/math/grace/Makefile
  head/math/grace/distinfo
  head/math/grace/pkg-descr

Modified: head/math/grace/Makefile
==============================================================================
--- head/math/grace/Makefile	Thu Nov  8 22:56:38 2012	(r307215)
+++ head/math/grace/Makefile	Thu Nov  8 22:57:13 2012	(r307216)
@@ -1,13 +1,8 @@
-# New ports collection makefile for: grace
-# Date created:		Dec 28 1998
-# Whom:			Lars Köller <Lars.Koeller@Uni-Bielefeld.de>
-#
+# Created by: Lars Köller <Lars.Koeller@Uni-Bielefeld.de>
 # $FreeBSD$
-#
 
 PORTNAME=	grace
-PORTVERSION=	5.1.22
-PORTREVISION=	8
+PORTVERSION=	5.1.23
 CATEGORIES=	math print
 #
 MASTER_SITES=	ftp://plasma-gate.weizmann.ac.il/pub/grace/src/stable/ \
@@ -18,17 +13,16 @@ MASTER_SITES=	ftp://plasma-gate.weizmann
 		ftp://linux.mathematik.tu-darmstadt.de/pub/linux/mirrors/misc/grace/src/stable/
 
 MAINTAINER=	ports@FreeBSD.org
-COMMENT=	A powerful plotting tool (successor of xmgr)
+COMMENT=	Powerful 2D plotting tool (successor of xmgr)
+
+LICENSE=	GPLv2
 
-LIB_DEPENDS=	t1:${PORTSDIR}/devel/t1lib		\
-		jpeg.11:${PORTSDIR}/graphics/jpeg	\
-		png15:${PORTSDIR}/graphics/png		\
-		tiff.4:${PORTSDIR}/graphics/tiff	\
-		fftw.2:${PORTSDIR}/math/fftw		\
-		pdf.6:${PORTSDIR}/print/pdflib		\
-		netcdf.4:${PORTSDIR}/science/netcdf	\
-		Xbae.4:${PORTSDIR}/x11-toolkits/xbae	\
-		XmHTML.1:${PORTSDIR}/x11-toolkits/xmhtml
+LIB_DEPENDS=	t1:${PORTSDIR}/devel/t1lib \
+		jpeg:${PORTSDIR}/graphics/jpeg \
+		png15:${PORTSDIR}/graphics/png \
+		tiff:${PORTSDIR}/graphics/tiff \
+		Xbae:${PORTSDIR}/x11-toolkits/xbae \
+		XmHTML:${PORTSDIR}/x11-toolkits/xmhtml
 
 USE_MOTIF=	yes
 USE_GCC=	any
@@ -39,11 +33,39 @@ CONFIGURE_ARGS=	--enable-grace-home=${DA
 		--with-extra-ldpath=${LOCALBASE}/lib \
 		--without-bundled-xbae
 ALL_TARGET=	# empty
+MAKE_JOBS_SAFE=	yes
 
 MAN1=		convcal.1 grace.1 grconvert.1
 MLINKS=		grace.1 gracebat.1 \
 		grace.1 xmgrace.1
 
+OPTIONS_DEFINE=	FFTW NETCDF PDF DOCS EXAMPLES
+OPTIONS_DEFAULT=	${OPTIONS_DEFINE}
+PDF_DESC=	PDF output
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MFFTW}
+LIB_DEPENDS+=	fftw:${PORTSDIR}/math/fftw
+CONFIGURE_ARGS+=	--with-fftw
+.else
+CONFIGURE_ARGS+=	--without-fftw
+.endif
+
+.if ${PORT_OPTIONS:MNETCDF}
+LIB_DEPENDS+=	netcdf:${PORTSDIR}/science/netcdf
+CONFIGURE_ARGS+=	--enable-netcdf
+.else
+CONFIGURE_ARGS+=	--disable-netcdf
+.endif
+
+.if ${PORT_OPTIONS:MPDF}
+LIB_DEPENDS+=	pdf:${PORTSDIR}/print/pdflib
+CONFIGURE_ARGS+=	--enable-pdfdrv
+.else
+CONFIGURE_ARGS+=	--disable-pdfdrv
+.endif
+
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/src/xmgrace ${PREFIX}/bin
 	@${LN} -sf xmgrace ${PREFIX}/bin/grace
@@ -70,7 +92,7 @@ do-install:
 	${INSTALL_DATA} ${WRKSRC}/fonts/type1/*.pfb ${DATADIR}/fonts/type1
 	@${MKDIR} ${DATADIR}/templates
 	${INSTALL_DATA} ${WRKSRC}/templates/*.agr ${DATADIR}/templates
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
 	@${MKDIR} ${DOCSDIR}
 	@${TAR} -C ${WRKSRC}/doc --exclude "*Makefile*" --exclude "*.1" \
 		-cf - . | ${TAR} -C ${DOCSDIR} --unlink -xf -
@@ -78,7 +100,7 @@ do-install:
 	@${FIND} ${DOCSDIR} -type f -exec ${CHMOD} ${SHAREMODE} {} \;
 	@${LN} -sf ${DOCSDIR} ${DATADIR}/doc
 .endif
-.if !defined(NOPORTEXAMPLES)
+.if ${PORT_OPTIONS:MEXAMPLES}
 	@${MKDIR} ${EXAMPLESDIR}
 	@${TAR} -C ${WRKSRC}/examples --exclude "*Makefile*" \
 		-cf - . | ${TAR} -C ${EXAMPLESDIR} --unlink -xf -

Modified: head/math/grace/distinfo
==============================================================================
--- head/math/grace/distinfo	Thu Nov  8 22:56:38 2012	(r307215)
+++ head/math/grace/distinfo	Thu Nov  8 22:57:13 2012	(r307216)
@@ -1,2 +1,2 @@
-SHA256 (grace-5.1.22.tar.gz) = 4ce8f058b6c1267a842419a3edbf471421dea9cf5744783745b6cb375cdf5f25
-SIZE (grace-5.1.22.tar.gz) = 2516576
+SHA256 (grace-5.1.23.tar.gz) = 69527950fd9c056a76b7a6bf4ac37a9b87acc565c12a941ffae3c9c5a822ca10
+SIZE (grace-5.1.23.tar.gz) = 2501364

Modified: head/math/grace/pkg-descr
==============================================================================
--- head/math/grace/pkg-descr	Thu Nov  8 22:56:38 2012	(r307215)
+++ head/math/grace/pkg-descr	Thu Nov  8 22:57:13 2012	(r307216)
@@ -1,16 +1,18 @@
 Grace is a WYSIWYG 2D plotting tool for the X Window System and M*tif,
 successor of ACE/gr (Xmgr). A few of its features are:
 
-    * User defined scaling, tick marks, labels, symbols, line styles, colors.
+    * User defined scaling, tick marks, labels, symbols, line styles,
+	colors.
     * Batch mode for unattended plotting.
     * Read and write parameters used during a session.
     * Polynomial regression, splines, running averages, DFT/FFT,
 	cross/auto-correlation.
-    * Exports high-resolution graphics to (E)PS, PDF, MIF, and SVG formats
+    * Exports high-resolution graphics to (E)PS, PDF, MIF, and SVG
+	formats
     * Supports cross-platform PNM, JPEG and PNG formats
 
-While grace has a convenient point-and-click interface, most parameter settings
-and operations are available through a command line interface (found in
-Data/Commands).
+While grace has a convenient point-and-click interface, most parameter
+settings and operations are available through a command line interface
+(found in Data/Commands).
 
-WWW: http://plasma-gate.weizmann.ac.il/Grace/ 
+WWW: http://plasma-gate.weizmann.ac.il/Grace/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211082257.qA8MvDND042724>