Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 491 - New ebuild for xplanet
Summary: New ebuild for xplanet
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: chouser (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-02-01 22:45 UTC by Kalen Petersen
Modified: 2003-02-04 19:42 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kalen Petersen 2002-02-01 22:45:37 UTC
Following is a first ebuild for xplanet.  It is currently running as my
background wallpaper, and looking marvelous.  I'm not sure if i got all of the
use variables right, so any changes are welcome.  I think that it could be put
in the app-misc which is where xscreensaver is located.

xplanet-0.93.ebuild

#P=
S=${WORKDIR}/${P}
DESCRIPTION="A program to render images of the earth into the X root window"
SRC_URI="http://prdownloads.sourceforge.net/xplanet/${P}.tar.gz"
HOMEPAGE="http://xplanet.sourceforge.net/"

DEPEND="virtual/x11"

src_compile() {
        local myconf
        if [ "`use opengl`" ]
        then
                myconf="--with-gl --with-glut --with-animation"
        else
                myconf="--with-gl=no --with-glut=no --with-animation=no"
        fi
        if [ "`use gif`" ]
        then
                myconf="$myconf --with-gif"
        else
                myconf="$myconf --with-gif=no"
        fi
        if [ "`use X`" ]
        then
                myconf="$myconf --with-x"
        else
                myconf="$myconf --with-x=no"
        fi

        ./configure --prefix=/usr --with-freetype=no $myconf || die
        emake || die
}

src_install () {
        make install || die
}
Comment 1 Kalen Petersen 2002-02-02 00:29:57 UTC
ok, after jimmy-ing with that previous ebuild, i already noticed a couple of
errors.  here's my new an improved version.  I would attatch it properly, but
i'm seeming to have problems with that right now.  The changes in this version
are, using the proper install format, and disabling parallel building.

-Kalen

S=${WORKDIR}/${P}
DESCRIPTION="A program to render images of the earth into the X root window"
SRC_URI="http://prdownloads.sourceforge.net/xplanet/${P}.tar.gz"
HOMEPAGE="http://xplanet.sourceforge.net/"

DEPEND="virtual/x11"

src_compile() {
        local myconf
        local mymake
        if [ "`use opengl`" ]
        then
                myconf="--with-gl --with-glut --with-animation"
        else
                myconf="--with-gl=no --with-glut=no --with-animation=no"
        fi
        if [ "`use gif`" ]
        then
                myconf="$myconf --with-gif"
        else
                myconf="$myconf --with-gif=no"
        fi
        if [ "`use X`" ]
        then
                myconf="$myconf --with-x"
        else
                myconf="$myconf --with-x=no"
        fi

        ./configure --prefix=/usr --with-freetype=no $myconf || die
        # xplanet doesn't like to build parallel
        # This fix taken from the gimp ebuild
        make ${mymake}  || die
}

src_install () {
        make prefix=${D} install || die
}
Comment 2 Bruce A. Locke (RETIRED) gentoo-dev 2002-02-02 20:49:28 UTC
Commited into CVS as x11-misc/xplanet.

Thank you for the ebuild!