Bug 31219 - media-gfx/gnuplot: should install more (optional) docs
Bug#: 31219 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: minor Priority: P2
Resolution: FIXED Assigned To: usata@gentoo.org Reported By: eckert.thomas@gmx.net
Component: Ebuilds
URL: 
Summary: media-gfx/gnuplot: should install more (optional) docs
Keywords:  
Status Whiteboard: 
Opened: 2003-10-15 12:18 0000
Description:   Opened: 2003-10-15 12:18 0000
gnuplot does contain a manual that should (at least) be installed if USE-flags
contain "doc".

--- snipp ---
--- gnuplot-3.7.3.ebuild        2003-08-25 22:10:58.000000000 +0200
+++ gnuplot-3.7.3-r1.ebuild     2003-10-15 21:17:07.000000000 +0200
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 # $Header: /home/cvsroot/gentoo-x86/media-gfx/gnuplot/gnuplot-3.7.3.ebuild,v
1.4 2003/08/25 19:51:15 weeve Exp $
 
-IUSE="X readline svga plotutils"
+IUSE="X readline svga plotutils doc"
 
 S=${WORKDIR}/${P}
 DESCRIPTION="Quick and useful plotting program"
@@ -68,6 +68,12 @@
        make prefix=${D}/usr install || die
 
        dodoc 0* ChangeLog CodeStyle Copyright NEWS PGPKEYS TODO
+       if use doc; then
+               cd doc
+               ## one or more of [ps,dvi,pdf]:
+               make pdf
+               dodoc gnuplot.pdf
+       fi
 }
 
 pkg_postinst() {
--- snapp ---

Reproducible: Always
Steps to Reproduce:

------- Comment #1 From Mamoru KOMACHI (RETIRED) 2003-10-16 02:22:04 0000 -------
I added doc IUSE flag but I changed a bit of your patch. `cd doc` was
actually `cd docs` and I moved `make pdf || die` to src_install. Any
compilation process including document creation should go to
src_install and the ebuild should die if compilation fails.
Thanks for reporting the bug.