Here is an ebuild for the latest stable release of xrn, an X news reader. It is powerful but very small and fast, useful for someone who want to use an X based news reader over an ssh connection. The ebuild either installs the program with English, French or German messages, depending on which comes first in the LINGUAS variable, English is used if none of those three languages are defined. Unfortunately only one language may be used at a time, reemerging the packagewill be neccecairy to change the language used. I've listed the license as BSD, but this is the only thing I wasn't 100% about. However, the packages homepage links to a Linux Software Map entry (ftp://sipb.mit.edu/pub/xrn/xrn-linux.lsm) which lists the license as BSD, so it's probally safe. I'll attach the license that comes with the package, for easy reading. net-news/xrn would seem a sensible place for this to go. Ebuild will follow in a minute, I've marked it ~x86 as I tested it on my athlon-xp machine. Alastair Murray
Created attachment 34925 [details] The ebuild
Created attachment 34926 [details] The packages license
Created attachment 35733 [details] Ebuild With Fixed Formatting Discovered the wonders of repoman, it pointed out some useless whitespace, so it's gone.
Some comments to your ebuild: ${PN}-${PV} is equivalent to ${P} The USE flag nls is only used for gettext locale files. From /usr/portage/profiles/use.desc: nls - Adds Native Language Support (using gettext - GNU locale utilities) So, we should just use LINGUAS and don't check for the nls USE flag. I would not use the sed scripts to patch the Makefile, I would call make with arguments to override the values. e.g. > emake CDEBUGFLAGS="${CFLAGS}" LANGUAGE="${MY_LANG}" || die "emake failed" > dodir /etc/X11/app-defaults > cp XRn.ad ${D}/etc/X11/app-defaults/XRn would I replace with the following: > insinto /etc/X11/app-defaults > doins XRn.ad > mv xrn.man xrn.1 > doman xrn.1 can be done with "newman xrn.man xrn.1"
Created attachment 35861 [details] Revised Ebuild Thanks for your comments Sven, I appreciate that you got back to me relatively quickly on this. I've modified the ebuild to take your comments into account. The only difference from your suggestions is that I used newins instead of doins for the default settings file.
Yep, newins is right, my bad. Commited to CVS as net-news/xrn. Thanks for your submission!