Bug 186501

Summary: [PATCH] math/gnuplot: fix "make package" without DOCS
Product: Ports & Packages Reporter: Craig Leres <leres>
Component: Individual Port(s)Assignee: Greg Lewis <glewis>
Status: Closed FIXED    
Severity: Affects Only Me CC: leres
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch.txt none

Description Craig Leres freebsd_committer freebsd_triage 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 freebsd_triage 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 service freebsd_committer freebsd_triage 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 freebsd_triage 2014-02-09 23:18:52 UTC
State Changed
From-To: open->closed

Committed. Thanks!