Bug 30 - plotutils-2.4.1.ebuild
Bug#: 30 Product:  Gentoo Linux Version: 1.0 RC6 r14 Platform: x86
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: tod@gentoo.org Reported By: tneidt@fidnet.com
Component: Library
URL: 
Summary: plotutils-2.4.1.ebuild
Keywords:  EBUILD
Status Whiteboard: 
Opened: 2002-01-04 19:58 0000
Description:   Opened: 2002-01-04 19:58 0000
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

------- Comment #1 From Tod M. Neidt 2002-01-04 19:59:20 0000 -------
Created an attachment (id=18) [details]
plotutils-2.4.1.ebuild

------- Comment #2 From Tod M. Neidt 2002-01-04 20:00:34 0000 -------
I suggest media-libs/plotutils

------- Comment #3 From Mikael Hallendal (hallski) (RETIRED) 2002-01-04 21:33:19 0000 -------
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.

------- Comment #4 From Geert Bevin 2002-01-23 16:43:27 0000 -------
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.

------- Comment #5 From Tod M. Neidt 2002-01-24 11:40:52 0000 -------
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.

------- Comment #6 From Bruce A. Locke 2002-02-10 00:59:59 0000 -------
Is this ebuild still being worked on?

------- Comment #7 From Tod M. Neidt 2002-02-11 10:11:33 0000 -------
Yes,

I am just going to remove installing the extra fonts for now. They are not
needed for functionality, just extra gravy.

------- Comment #8 From Tod M. Neidt 2002-02-11 14:51:50 0000 -------
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.