Hi! Please find attached an ebuild for plotutils-2.4.1, the gnu C/C++ function library for exporting 2-D vector graphics. Although a few basic commandline plotting programs (graph, plot, tek2plot, plotfont, spline, ode double) are included in the package, its main purpose is as a graphics library that can be used by other programs so suggested category is media-libs. Gnuplot and xfig are examples of programs that can take advantage of plotutils to supplement their capabilites. *One special note* This package provides supplemental Type1 and bitmapped (misc) fonts. As the ebuild is wwritten, these are automatically installed in to the /usr/X11R6/lib/X11/fonts tree. This involves copying the relevant fonts.scale file, and editing to include the new fonts, regenerating the fonts.dir file with mkfontdir, and then rescanning the fonts directories if X is running. This may be considered too intrusive. If that is the case, I would suggest installing the new font related files somewhere safe like /usr/share/${PN} and echoing a message that the user will have to do that manually. Also, the copying of the current fonts.scale file may be problematic in the future if emerging is done in a chrooted and/or sandboxed environment as has been discussed. :) whew! tod
Created attachment 18 [details] plotutils-2.4.1.ebuild
I suggest media-libs/plotutils
The problem comes if you install this package, and you edit the fonts.scale file and then unmerges this package. It'll then remove the fonts.scale will be removed. I think this should be made in pkg_postinst (the fonts.scale-thing) and pkg_postremove (I'm not sure about the latter) to remove the added fonts. Also, xset fp rehash won't work if logged in as user but running as root in 'su -' terminal.
I agree with Hallski, these actions should be moved to pkg_postinst and pkg_postremove. When that's done I'll try it out and proceed further.
If there are no objections, I'll take this. I will resolve the fonts issue per Hallski's and Gbevin's comments. I will also check with Gbevin before commiting.
Is this ebuild still being worked on?
Yes, I am just going to remove installing the extra fonts for now. They are not needed for functionality, just extra gravy.
Commited to CVS. Disabled the extra fonts installation for now as they are not required for functionality. May revist later. Left the extra fonts installation steps in ebuild but commented out for future reference. Extra fonts installation needs work, see above comments.