Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 31219

Summary: media-gfx/gnuplot: should install more (optional) docs
Product: Gentoo Linux Reporter: Thomas Eckert <eckert.thomas>
Component: New packagesAssignee: Mamoru KOMACHI (RETIRED) <usata>
Status: RESOLVED FIXED    
Severity: minor    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Thomas Eckert 2003-10-15 12:18:42 UTC
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 Mamoru KOMACHI (RETIRED) gentoo-dev 2003-10-16 02:22:04 UTC
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.