summaryrefslogtreecommitdiff
path: root/math/gnuplot
diff options
context:
space:
mode:
authorGreg Lewis <glewis@FreeBSD.org>2005-11-01 20:46:22 +0000
committerGreg Lewis <glewis@FreeBSD.org>2005-11-01 20:46:22 +0000
commitb49904d2770e2c7738fc416788c4fc60c6b9f9d8 (patch)
treedc833aa536d1f56ada80f7df1735dbb2de1a67ba /math/gnuplot
parentUpdate to 4.0.2 (diff)
. Build and install some of the documentation files.
PR: 88018 Submitted by: Ulrich Spoerlein <q@galgenberg.net>
Notes
Notes: svn path=/head/; revision=146944
Diffstat (limited to 'math/gnuplot')
-rw-r--r--math/gnuplot/Makefile11
-rw-r--r--math/gnuplot/pkg-plist11
2 files changed, 21 insertions, 1 deletions
diff --git a/math/gnuplot/Makefile b/math/gnuplot/Makefile
index 3028f31bc7b0..880eaaf77388 100644
--- a/math/gnuplot/Makefile
+++ b/math/gnuplot/Makefile
@@ -7,7 +7,7 @@
PORTNAME= gnuplot
PORTVERSION= 4.0.0
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= math graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -98,6 +98,11 @@ post-patch:
's|)/@PACKAGE@/@PKG_MAJOR@|)|g' ${WRKSRC}/src/Makefile.in
@${FIND} "${WRKSRC}" -name '*.orig' -delete
+.if !defined(NOPORTDOCS)
+post-build:
+ @cd ${WRKSRC}/docs && ${MAKE} groff html
+.endif
+
post-install:
${INSTALL_SCRIPT} ${WRKSRC}/src/lasergnu ${PREFIX}/bin
.if exists(${PREFIX}/bin/emacs) || exists(${PREFIX}/bin/xemacs)
@@ -107,6 +112,10 @@ post-install:
@${MKDIR} ${EXAMPLESDIR}
cd ${WRKSRC}/demo && ${FIND} . \
| ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}
+ @${MKDIR} ${DOCSDIR}/psdoc
+ cd ${WRKSRC}/docs && ${INSTALL_DATA} gnuplot.txt gnuplot.html \
+ gnuplot.dvi gnuplot.ps ${DOCSDIR}
+ cd ${WRKSRC}/docs/psdoc && ${INSTALL_DATA} README ps_* ${DOCSDIR}/psdoc
.endif
.include <bsd.port.post.mk>
diff --git a/math/gnuplot/pkg-plist b/math/gnuplot/pkg-plist
index 801cc3dff705..3c690d25c2f2 100644
--- a/math/gnuplot/pkg-plist
+++ b/math/gnuplot/pkg-plist
@@ -97,9 +97,20 @@ bin/lasergnu
%%PORTDOCS%%%%EXAMPLESDIR%%/world.cor
%%PORTDOCS%%%%EXAMPLESDIR%%/world.dat
%%PORTDOCS%%%%EXAMPLESDIR%%/world.dem
+%%PORTDOCS%%%%DOCSDIR%%/psdoc/README
+%%PORTDOCS%%%%DOCSDIR%%/psdoc/ps_file.doc
+%%PORTDOCS%%%%DOCSDIR%%/psdoc/ps_fontfile_doc.tex
+%%PORTDOCS%%%%DOCSDIR%%/psdoc/ps_guide.ps
+%%PORTDOCS%%%%DOCSDIR%%/psdoc/ps_symbols.gpi
+%%PORTDOCS%%%%DOCSDIR%%/gnuplot.dvi
+%%PORTDOCS%%%%DOCSDIR%%/gnuplot.html
+%%PORTDOCS%%%%DOCSDIR%%/gnuplot.ps
+%%PORTDOCS%%%%DOCSDIR%%/gnuplot.txt
%%EMACS_SITE_LISPDIR%%/gnuplot-gui.el
%%EMACS_SITE_LISPDIR%%/gnuplot.el
%%DATADIR%%/4.0/gnuplot.gih
@dirrm %%DATADIR%%/4.0
@dirrm %%DATADIR%%
%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/psdoc
+%%PORTDOCS%%@dirrm %%DOCSDIR%%