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

Bug 186273

Summary: dev-libs/cdk:-5.0.20060507 - install examples
Product: Gentoo Linux Reporter: Jeff Shanab <jshanab>
Component: New packagesAssignee: Timothy Redaelli (RETIRED) <drizzt>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: High    
Version: 2006.1   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Upgraded ebuild to expand examples into /usr/share/docs/${P}

Description Jeff Shanab 2007-07-22 21:25:09 UTC
The documentation of this package is primarily the examples it provides. The uncompressed directories and pre-processed makefile are left in the /var/tmp/portage. 

I modified the ebuild to move these to the /usr/share/doc/${P} directory so that people can run the make file and check out the examples.
Comment 1 Jeff Shanab 2007-07-22 21:27:21 UTC
Created attachment 125705 [details]
Upgraded ebuild to expand examples into /usr/share/docs/${P}

I needed the examples and thought others might appreciate this ebuild upgrade.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-07-22 21:34:07 UTC
Installing this cruft should definitely be optional (USE=examples or whatever).
Comment 3 Jeff Shanab 2007-07-22 22:17:38 UTC
In a lot of packages where the examples are just extra, I agree. I can certainly add this. But in this case they are heavily referred to in the man pages. 

The normal install unpacks these but doesn't run the make. As I have done here. I just moved them out of the tmp directory so they are not lost.

I think that becuase this is a library for writing C apps that they should be included as the author intended. The tarfile provided should provide the same functionality via portage and otherwise. I needed them.
 
I will let others discuss the options but rather than a use flag I would rather see a cdk and cdk_dev ebuild in that case. Then they show up in en emerge --search and you know what you are missing. 

PS, this is a small package but an improvement can be made in that I copied over the include directory so the relative include path works in the make for the examples. about 3/4 of the includes are copied to /usr/include/cdk but the other 1/4 are needed for the examples. Coping only the 1/4 that are needed will be my next improvement.
 
Comment 4 Timothy Redaelli (RETIRED) gentoo-dev 2009-02-02 18:44:39 UTC
Done with use examples