Bug 186501 - [PATCH] math/gnuplot: fix "make package" without DOCS
Summary: [PATCH] math/gnuplot: fix "make package" without DOCS
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Greg Lewis
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-05 23:40 UTC by leres
Modified: 2014-02-09 23:20 UTC (History)
1 user (show)

See Also:


Attachments
patch.txt (653 bytes, text/plain)
2014-02-05 23:40 UTC, leres
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description leres 2014-02-05 23:40:00 UTC
	It's not possible to build a package for gnuplot if DOCS
	is not selected

Fix: Please see attached patch.
How-To-Repeat: 	% cd /usr/ports/math/gnuplot && (rm -rf work ; make stage)
	[...]
	cd /usr/ports/math/gnuplot/work/gnuplot-4.6.3/demo && /bin/sh -c '(/usr/bin/find -d $0 $2 | /usr/bin/cpio -dumpl $1 >/dev/null  2>&1) &&  /usr/sbin/chown -Rh root:wheel $1 &&  /usr/bin/find -d $0 $2 -type d -exec chmod 755 $1/{} \; &&  /usr/bin/find -d $0 $2 -type f -exec chmod 444 $1/{} \;' -- . /usr/ports/math/gnuplot/work/stage/usr/local/share/examples/gnuplot
	cd /usr/ports/math/gnuplot/work/gnuplot-4.6.3/docs && install  -o root -g wheel -m 444 gnuplot.txt gnuplot.dvi  gnuplot.ps /usr/ports/math/gnuplot/work/stage/usr/local/share/doc/gnuplot
	install: gnuplot.txt: No such file or directory
	*** [post-install] Error code 71

	Stop in /usr/ports/math/gnuplot.
	*** [stage] Error code 1

	Stop in /usr/ports/math/gnuplot.
Comment 1 Edwin Groothuis freebsd_committer 2014-02-05 23:40:07 UTC
Responsible Changed
From-To: freebsd-ports-bugs->glewis

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Kevin Zheng 2014-02-09 15:17:37 UTC
Hi there,

I'm experiencing the exact same problem and Craig's patch fixes it.

Thanks,
Kevin Zheng
Comment 3 dfilter freebsd_committer 2014-02-09 23:18:24 UTC
Author: glewis
Date: Sun Feb  9 23:18:17 2014
New Revision: 343558
URL: http://svnweb.freebsd.org/changeset/ports/343558
QAT: https://qat.redports.org/buildarchive/r343558/

Log:
  . Fix "make package" without DOCS
  
  PR:		186501
  Submitted by:	Craig Leres <leres@ee.lbl.gov>

Modified:
  head/math/gnuplot/Makefile

Modified: head/math/gnuplot/Makefile
==============================================================================
--- head/math/gnuplot/Makefile	Sun Feb  9 23:16:29 2014	(r343557)
+++ head/math/gnuplot/Makefile	Sun Feb  9 23:18:17 2014	(r343558)
@@ -86,10 +86,12 @@ post-install:
 	${INSTALL_SCRIPT} ${WRKSRC}/src/lasergnu ${STAGEDIR}${PREFIX}/bin
 	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
 	cd ${WRKSRC}/demo && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
+.if ${PORT_OPTIONS:MDOCS}
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}/psdoc
 	cd ${WRKSRC}/docs && ${INSTALL_DATA} gnuplot.txt gnuplot.dvi \
 		gnuplot.ps ${STAGEDIR}${DOCSDIR}
 	cd ${WRKSRC}/docs/psdoc && ${INSTALL_DATA} README ps_* ${STAGEDIR}${DOCSDIR}/psdoc
+.endif
 
 check test: build
 	@( cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_ARGS} check ; )
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 4 Greg Lewis freebsd_committer 2014-02-09 23:18:52 UTC
State Changed
From-To: open->closed

Committed. Thanks!