Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 1693 - xgammon 0.98a ebuild.
Summary: xgammon 0.98a ebuild.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: José Alberto Suárez López
URL: http://fawn.unibw-hamburg.de/steuer/x...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-12 08:20 UTC by Terje Kvernes
Modified: 2003-02-04 19:42 UTC (History)
1 user (show)

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


Attachments
xgammon 0.98 ebuild. (xgammon-0.98a.ebuild,1.36 KB, text/plain)
2002-04-12 08:21 UTC, Terje Kvernes
Details
three patches for xgammon 0.98, all very small. (xgammon-patches.tar.gz,884 bytes, text/plain)
2002-04-12 08:21 UTC, Terje Kvernes
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Terje Kvernes 2002-04-12 08:20:29 UTC
xgammon is a backgammon game which has support for both multiplayer and
singleplayer games.  suggested placement is app-games.

the patches are needed for the game to compile properly, there are three small
patches, included in the xgammon-patches.tar.gz attachment.
Comment 1 Terje Kvernes 2002-04-12 08:21:08 UTC
Created attachment 535 [details]
xgammon 0.98 ebuild.
Comment 2 Terje Kvernes 2002-04-12 08:21:50 UTC
Created attachment 536 [details]
three patches for xgammon 0.98, all very small.
Comment 3 Terje Kvernes 2002-04-12 11:33:49 UTC
I was unable to attach the ChangeLog after commiting the ebuild.  I'll dump it
here (it can also be downloaded from <url:
http://terje.kvernes.no/gentoo/xgammon/ChangeLog >.

# ChangeLog for <CATEGORY>/<PACKAGE_NAME>
# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL
# /space/gentoo/cvsroot/gentoo-x86/skel.ChangeLog,v 1.2 2002/02/05 00:57:47
gbevin Exp

*xgammon-0.98-r1 (11 Apr 2002)

  11 Apr 2002; T.Kvernes <terjekv@math.uio.no> xgammon-0.98-r1:
  
  Initial ebuild, kludged about with the process due to broken
  behaviour from xgammon (amoungst other thing it expects "."
  in $PATH for root).
Comment 4 Tod M. Neidt (RETIRED) gentoo-dev 2002-04-12 11:46:48 UTC
Hi Terje!

The ebuild looks nice.  A couple of minor comments.

1. I believe that xgammon-0.98a.ebuild is a valid ebuild name, which we would
probably want to use (unless the "a" suffix was indicative of alpha status? see
http://www.gentoo.org/doc/gentoo-howto.html ).  This would allow us to use
${P}.tar.gz in the SRC_URI line and make the ebuild version independent.

2. Did you create the patches specifically for the Gentoo ebuild.  If this is
the case, they should probably be in the xgammon/files directory. I should have
elaborated on Gentoo specific patches further in my reply to your gentoo-dev
posting. I apologize for any confusion.  I thought we were discussing
third-party or upstream developer patches :).  Normally gentoo specific patches
 created by the ebuild author are kept in the files directory.  A suffix of
"-gentoo" is typically appended to indicate this.  For example,
xgammon-0.98-gentoo-makefile.patch

3. Is the pkg_postinst function unnecessary?

If you have any questions or comments, feel free to contact me at tod@gentoo.org

Thanks for the contribution!

Comment 5 Terje Kvernes 2002-04-12 14:49:03 UTC
> Hi Terje!

  hi again Tod.  :)
 
> The ebuild looks nice.  A couple of minor comments.
> 
> 1. I believe that xgammon-0.98a.ebuild is a valid ebuild name, which
> we would probably want to use (unless the "a" suffix was indicative
> of alpha status? see http://www.gentoo.org/doc/gentoo-howto.html ).
> This would allow us to use ${P}.tar.gz in the SRC_URI line and make
> the ebuild version independent.

  I'm actually not sure why xgammon has this version scheme.  but it's
  not alpha software, they just do it this way[tm].
 
> 2. Did you create the patches specifically for the Gentoo ebuild.  

  no, the patches are part mine, part RedHats.  both GPLed.

> If this is the case, they should probably be in the xgammon/files
> directory. I should have elaborated on Gentoo specific patches
> further in my reply to your gentoo-dev posting. I apologize for any
> confusion.  I thought we were discussing third-party or upstream
> developer patches :).  

  these are upstream patches that have been sent to the maintainers,
  they just haven't done anything in a (long) while.  don't hold your
  breath.

> Normally gentoo specific patches created by the ebuild author are
> kept in the files directory.  A suffix of "-gentoo" is typically
> appended to indicate this.  For example,
> xgammon-0.98-gentoo-makefile.patch

  okay.
 
> 3. Is the pkg_postinst function unnecessary?

  er, yes, you can zap that.  I uploaded the verbose version I kept
  around.  and since you have that version you probably have 
  http://terje.kvernes.no/gentoo/xgammon/xgammon-0.98-makefile.patch
  in the SRC_URI, which isn't needed.

  I chose to use (export PATH=$PATH:.; emake) instead of patching the
  makefile, as the makefile was generated with xmkmf.  I never trust
  the output of xmkmf to resemble itself across Gentoo-installs.

  anyhow, I attached the correct ebuild.
 
> If you have any questions or comments, feel free to contact me at
> tod@gentoo.org

  hm, I'll CC this to you then.
  
> Thanks for the contribution!
  
  nah, thank you for a great distro.
Comment 6 Terje Kvernes 2002-04-12 14:54:14 UTC
right, the little case about uploading stuff to bugzilla again.  I use "create a
new attachment" and fill in that form.  when I submit bugzilla claims that the
file has 0 size, I wonder if this is the "well known bugzilla bug".  anyhow, the
ebuild:

# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Maintainer: Terje Kvernes <terjekv@math.uio.no>
# /space/gentoo/cvsroot/gentoo-x86/skel.ebuild,v 1.4 2002/03/12 16:05:09 tod Exp

S=${WORKDIR}/${P}
DESCRIPTION="xgammon is a very nice backgammon game for X"

SRC_URI="http://fawn.unibw-hamburg.de/steuer/xgammon/Downloads/${P}.tar.gz
         http://terje.kvernes.no/gentoo/xgammon/xgammon-0.98-broken.patch
         http://terje.kvernes.no/gentoo/xgammon/xgammon-0.98-config.patch"

HOMEPAGE="http://fawn.unibw-hamburg.de/steuer/xgammon/xgammon.html"

DEPEND="virtual/x11"

#RDEPEND=""

src_unpack() {
    unpack ${P}.tar.gz
    cd ${S}

    patch -p1 < ${DISTDIR}/xgammon-0.98-broken.patch
    patch -p1 < ${DISTDIR}/xgammon-0.98-config.patch
}



src_compile() {

        xmkmf || die "xmkmf died"
        
        (export PATH=$PATH:.; emake) || die
}

src_install () {
        make DESTDIR=${D} install || die
}
Comment 7 Tod M. Neidt (RETIRED) gentoo-dev 2002-04-12 16:04:07 UTC
Hi Terje!

I will give it a walk through the park, and see if we can't get this commited to
app-games :)

Thanks again.

Comment 8 Terje Kvernes 2002-07-01 05:09:48 UTC
this hasn't moved for two and a half months or so.  is there anything missing or
otherwise lacking that I can do to get the ebuild commited?  I see that it's an
old ebuild of mine, lacking ${P} use, but I doubt that would be a big issue.

;-)