Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 746

Summary: GKrellm updated ebuild
Product: Gentoo Linux Reporter: Seemant Kulleen <seemantk>
Component: Current packagesAssignee: Aron Griffis (RETIRED) <agriffis>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: 1.0 RC6 r14   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: GKrellm - GTK based stack of system monitors -- ebuild file

Description Seemant Kulleen 2002-02-18 05:00:51 UTC
Hello to All my Gentoo friends.

OK, this ebuild submission was unexpected.  I did not realise that the ebuild in
gentoo's portage for gkrellm was only at 1.2.5, which is 4 behind the official
release of gkrellm (ie @ 1.2.9).  So, I am submitting an ebuild for that. 
Again, nothing much in it.  It is just a rip-off from the old ebuild, simply
with a version change.

Thanks again,

Seemant
Comment 1 Seemant Kulleen 2002-02-18 05:02:38 UTC
Created attachment 197 [details]
GKrellm - GTK based stack of system monitors -- ebuild file

I suppose I could've just made this a patch, huh?
Comment 2 Seemant Kulleen 2002-02-18 20:42:59 UTC
Sorry, there was a z before the `use nls` in the src_compile section.  Silly,
coz I was testing something.  The thing is - even though I have taken out nls
from my USE flags, and the compile for gkrellm -- both this one and the one in
current portage -- still do some nls stuff.  So I was just wondering if this
`use nls` thing does what I thought it does...

Anyway, sorry for that.

Seemant

----- cut here


# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Jerry Alexandratos <jerry@gentoo.org>, version update and tar.bz2
# by Seemant Kulleen <seemant@rocketmail.com>

S=${WORKDIR}/${P}
DESCRIPTION="Single process stack of various system monitors"
SRC_URI="http://web.wt.net/~billw/${PN}/${P}.tar.bz2"

DEPEND="virtual/glibc
        >=x11-libs/gtk+-1.2.10-r4
        >=media-libs/imlib-1.9.10-r1"


src_compile() {

        `use nls` && ./enable_nls

        emake || die

}

src_install () {

        dodir /usr/{bin,include,share/man}
        dodir /usr/share/gkrellm/{themes,plugins}

        make install \
                INSTALLDIR=${D}/usr/bin \
                MANDIR=${D}/usr/share/man/man1 \
                INCLUDEDIR=${D}/usr/include \
                LOCALEDIR=${D}/usr/share/locale

        dodoc COPYRIGHT README Changelog
        docinto html
        dodoc Changelog-plugins.html Changelog-themes.html Themes.html
}
Comment 3 Seemant Kulleen 2002-02-18 22:16:09 UTC
Hi Gentoo friends,

OK, This is my final submission for this e-build. This fixes the nls issue as
well,  It turns out that gkrellm's makefile thingy was a little different for
this release.  So now, nls capability is only compiled if it's in the user's USE
flags.

Thanks again,

Seemant


---- cut here



# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Jerry Alexandratos <jerry@gentoo.org>
# /space/gentoo/cvsroot/gentoo-x86/app-admin/gkrellm/gkrellm-1.2.5.ebuild,v 1.1 
2001/12/07 00:39:03 azarah Exp

A=gkrellm-1.2.9.tar.bz2
S=${WORKDIR}/${P}
DESCRIPTION="Single process stack of various system monitors"
SRC_URI="http://web.wt.net/~billw/${PN}/${A}"
HOMEPAGE="http://www.gkrellm.net"

DEPEND="virtual/glibc
        >=x11-libs/gtk+-1.2.10-r4
        >=media-libs/imlib-1.9.10-r1"


src_compile() {

        rm -f Makefile
        
        if [ "`use nls`" ] ; then
                ln -s Makefile.top_enable_nls Makefile
        else
                ln -s Makefile.top Makefile
        fi

        emake || die

}

src_install () {

        dodir /usr/{bin,include,share/man}
        dodir /usr/share/gkrellm/{themes,plugins}

        make install \
                INSTALLDIR=${D}/usr/bin \
                MANDIR=${D}/usr/share/man/man1 \
                INCLUDEDIR=${D}/usr/include \
                LOCALEDIR=${D}/usr/share/locale

        dodoc COPYRIGHT README Changelog
        docinto html
        dodoc Changelog-plugins.html Changelog-themes.html Themes.html
}


Comment 4 Aron Griffis (RETIRED) gentoo-dev 2002-02-19 20:11:33 UTC
Hi Seemant,

A couple things I noted in your ebuild.  Maybe you can remedy these for next
time, since it will make things easier.

- shouldn't set A=, it's determined automatically by Portage from SRC_URI
- changed src_compile to be much simpler
- added dependency on gettext... this resulted in splitting DEPEND/RDEPEND

Let me know if you see anything amiss.  Thanks for the contribution.

Aron