ports/177452: [patch] Update COMMENT and pkg-descr for math/gnuplot
Kevin Zheng
kevinz5000 at gmail.com
Thu Mar 28 21:50:01 UTC 2013
>Number: 177452
>Category: ports
>Synopsis: [patch] Update COMMENT and pkg-descr for math/gnuplot
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Thu Mar 28 21:50:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Kevin Zheng
>Release: 9.1-RELEASE
>Organization:
>Environment:
FreeBSD sigma.local 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243826: Tue Dec 4 06:55:39 UTC 2012 root at obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
>Description:
The descriptions for math/gnuplot could really use some updating. This patch does just that.
- Update COMMENT and pkg-descr, based on the Official Gnuplot Manual
- Fix conversion to OptionsNG (someone forgot NOPORTDOCS and NOPORTEXAMPLES)
- Add EXAMPLES to the list of options
- Use standard DESC lines for a few common options (like X11)
- Trim ABI numbers from LIB_DEPENDS
>How-To-Repeat:
>Fix:
Apply the attached patch (using `svn patch`) in ports/head/math/gnuplot.
Patch attached with submission follows:
Index: Makefile
===================================================================
--- Makefile (revision 315502)
+++ Makefile (working copy)
@@ -7,7 +7,7 @@
MASTER_SITES= SF
MAINTAINER= glewis at FreeBSD.org
-COMMENT= A command-driven interactive function plotting program
+COMMENT= Command-line driven graphing utility
GNU_CONFIGURE= yes
CONFIGURE_ARGS+=--with-lasergnu \
@@ -18,16 +18,12 @@
--with-bitmap-terminals
MAKE_JOBS_SAFE= yes
-OPTIONS_DEFINE= CAIRO GD GRIDBOX PDF PLOT TETEX THINSPLINES WX X11
-CAIRO_DESC= Enable CAIRO support
-GD_DESC= Enable GD support
+OPTIONS_DEFINE= CAIRO EXAMPLES GD GRIDBOX PDF PLOT TETEX THINSPLINES WX X11
GRIDBOX_DESC= Use the gridbox optimization for hidden3d
-PDF_DESC= Enable PDF support
PLOT_DESC= Enable plot support
TETEX_DESC= Search kpsexpand at run-time
THINSPLINES_DESC= Enable thin plate splines for grids in dgrid3d
-WX_DESC= Enable WX support
-X11_DESC= Enable X11 support
+WX_DESC= wxWidgets (formerly wxWindows) support
OPTIONS_DEFAULT=CAIRO GD PDF PLOT TETEX WX X11
@@ -36,14 +32,14 @@
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MCAIRO}
-LIB_DEPENDS+= cairo.2:${PORTSDIR}/graphics/cairo
+LIB_DEPENDS+= cairo:${PORTSDIR}/graphics/cairo
USE_GNOME+= pango
.else
CONFIGURE_ARGS+= --without-cairo
.endif
.if ${PORT_OPTIONS:MGD}
-LIB_DEPENDS+= gd.4:${PORTSDIR}/graphics/gd
+LIB_DEPENDS+= gd:${PORTSDIR}/graphics/gd
CONFIGURE_ARGS+= --with-gd=${LOCALBASE}
.else
CONFIGURE_ARGS+= --without-gd
@@ -54,7 +50,7 @@
.endif
.if ${PORT_OPTIONS:MPDF}
-LIB_DEPENDS+= pdf.6:${PORTSDIR}/print/pdflib
+LIB_DEPENDS+= pdf:${PORTSDIR}/print/pdflib
CONFIGURE_ARGS+= --with-pdf=${LOCALBASE}
.else
CONFIGURE_ARGS+= --without-pdf
@@ -62,7 +58,7 @@
.if ${PORT_OPTIONS:MPLOT}
USE_XORG+= xaw xmu xt xext
-LIB_DEPENDS+= plot.4:${PORTSDIR}/graphics/plotutils
+LIB_DEPENDS+= plot:${PORTSDIR}/graphics/plotutils
CONFIGURE_ARGS+= --with-plot=${LOCALBASE}
.else
CONFIGURE_ARGS+= --without-plot
@@ -99,10 +95,10 @@
PLIST_SUB+= X11="@comment "
.endif
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
PORTDOCS= *
.endif
-.if !defined(NOPORTEXAMPLES)
+.if ${PORT_OPTIONS:MEXAMPLES}
PORTEXAMPLES= *
.endif
@@ -115,7 +111,7 @@
's|)/@PACKAGE@/@PKG_MAJOR@|)|g' ${WRKSRC}/src/Makefile.in
@${FIND} "${WRKSRC}" -name '*.orig' -delete
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
post-build:
@cd ${WRKSRC}/docs && ${MAKE} groff
.endif
@@ -127,7 +123,8 @@
cd ${WRKSRC}/demo && ${FIND} . \
| ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}
.endif
-.if !defined(NOPORTDOCS)
+
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}/psdoc
cd ${WRKSRC}/docs && ${INSTALL_DATA} gnuplot.txt gnuplot.dvi \
gnuplot.ps ${DOCSDIR}
Index: pkg-descr
===================================================================
--- pkg-descr (revision 315502)
+++ pkg-descr (working copy)
@@ -1,32 +1,19 @@
-Gnuplot is a command-driven interactive function plotting program.
+Gnuplot is a portable multi-platform command-line driven graphing utility. It
+was originally created to allow scientists and students to visualize
+mathematical functions and data interactively, but has grown to support many
+non-interactive uses such as web scripting. It is also used as a plotting engine
+by third-party applications like Octave. Gnuplot has been supported and under
+active development since 1986.
-Plots any number of functions, built up of C operators, C library
-functions, and some things C doesn't have like **, sgn(), etc. Also
-support for plotting data files, to compare actual data to
-theoretical curves.
+Gnuplot supports many types of plots in either 2D or 3D. It can draw using
+lines, points, boxes, contours, vector fields, surfaces, and various associated
+text. It also supports various specialized plot types. Gnuplot supports many
+different types of output: interactive screen terminals (with mouse and hotkey
+input), direct output to pen plotters or modern printers, and output to many
+file formats (eps, emf, fig, jpeg, LaTeX, pdf, png, postscript, ...). Gnuplot is
+easily extensible to include new output modes. Recent additions include
+interactive terminals based on wxWidgets (usable on multiple platforms), and Qt.
+Mouseable plots embedded in web pages can be generated using the svg or HTML5
+canvas terminal drivers.
-User-defined X and Y ranges (optional auto-ranging), smart axes
-scaling, smart tic marks.
-
-Labelling of X and Y axes.
-
-User-defined constants and functions.
-
-Support through a generalized graphics driver for AED 512, AED 767,
-BBN BitGraph, Commodore Amiga, Roland DXY800A, EEPIC, TeXDraw, EmTeX,
-Epson 60dpi printers, Epson LX-800, Fig, HP2623, HP2648, HP75xx, HPGL,
-HP LaserJet II, Imagen, Iris 4D, MS-DOS Kermit, Kyocera laser printer,
-LaTeX, NEC CP6 pinwriter, PostScript, QMS QUIC, ReGis (VT125 and
-VT2xx), SCO Xenix CGI, Selanar, Star color printer, Tandy DMP-130
-printer, Tek 401x, Tek 410x, Vectrix 384, VT like Tektronix emulator,
-Unix PC (ATT 3b1 or ATT 7300), unixplot, and X11. The PC version
-compiled by Microsoft C supports IBM CGA, EGA, VGA, Hercules, ATT
-6300, and Corona 325 graphics. The PC version compiled by Borland C++
-sup- ports IBM CGA, EGA, MCGA, VGA, Hercules and ATT 6300 graphics.
-Other devices can be added simply, but will require recompiling.
-
-Shell escapes and command line substitution.
-
-Output redirection.
-
WWW: http://www.gnuplot.info/
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list