Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 56345 - xrn-9.02.ebuild (New Package)
Summary: xrn-9.02.ebuild (New Package)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Gentoo Net-news project
URL: http://www.mit.edu/people/jik/softwar...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-07 09:58 UTC by Alastair Murray
Modified: 2004-07-23 15:52 UTC (History)
0 users

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


Attachments
The ebuild (xrn-9.02.ebuild,1.61 KB, text/plain)
2004-07-07 10:00 UTC, Alastair Murray
Details
The packages license (COPYRIGHT,1.33 KB, text/plain)
2004-07-07 10:01 UTC, Alastair Murray
Details
Ebuild With Fixed Formatting (xrn-9.02.ebuild,1.61 KB, text/plain)
2004-07-19 04:56 UTC, Alastair Murray
Details
Revised Ebuild (xrn-9.02.ebuild,1.32 KB, text/plain)
2004-07-21 02:28 UTC, Alastair Murray
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alastair Murray 2004-07-07 09:58:42 UTC
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
Comment 1 Alastair Murray 2004-07-07 10:00:13 UTC
Created attachment 34925 [details]
The ebuild
Comment 2 Alastair Murray 2004-07-07 10:01:17 UTC
Created attachment 34926 [details]
The packages license
Comment 3 Alastair Murray 2004-07-19 04:56:21 UTC
Created attachment 35733 [details]
Ebuild With Fixed Formatting

Discovered the wonders of repoman, it pointed out some useless whitespace, so
it's gone.
Comment 4 Sven Wegener gentoo-dev 2004-07-20 17:13:09 UTC
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"
Comment 5 Alastair Murray 2004-07-21 02:28:38 UTC
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.
Comment 6 Sven Wegener gentoo-dev 2004-07-23 15:52:56 UTC
Yep, newins is right, my bad. Commited to CVS as net-news/xrn. Thanks for your submission!