Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 186273 - dev-libs/cdk:-5.0.20060507 - install examples
Summary: dev-libs/cdk:-5.0.20060507 - install examples
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Timothy Redaelli (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-22 21:25 UTC by Jeff Shanab
Modified: 2009-02-02 18:44 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Upgraded ebuild to expand examples into /usr/share/docs/${P} (cdk-5.0.20060507.ebuild,1.16 KB, text/plain)
2007-07-22 21:27 UTC, Jeff Shanab
Details

Note You need to log in before you can comment on or make changes to this bug.
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