diff options
Diffstat (limited to 'app-admin/gkrellm/gkrellm-2.1.4.ebuild')
-rw-r--r-- | app-admin/gkrellm/gkrellm-2.1.4.ebuild | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/app-admin/gkrellm/gkrellm-2.1.4.ebuild b/app-admin/gkrellm/gkrellm-2.1.4.ebuild new file mode 100644 index 000000000000..4f74129d35e6 --- /dev/null +++ b/app-admin/gkrellm/gkrellm-2.1.4.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/gkrellm/gkrellm-2.1.4.ebuild,v 1.1 2002/12/23 19:19:07 seemant Exp $ + +DESCRIPTION="Single process stack of various system monitors" +SRC_URI="http://web.wt.net/~billw/${PN}/${P}.tar.bz2" +HOMEPAGE="http://www.gkrellm.net/" + +SLOT="2" +LICENSE="GPL-2" +KEYWORDS="~x86 ~ppc ~alpha ~sparc" +IUSE="gtk gtk2 nls" + +DEPEND="gtk2? >=x11-libs/gtk+-2.0.5 : =dev-libs/glib-1.2*" +RDEPEND="nls? ( sys-devel/gettext )" + +src_compile() { + if [ ! "`use nls`" ]; then + cp Makefile Makefile.orig + sed -e "s:enable_nls=1:enable_nls=0:" Makefile.orig > Makefile + fi + + if use gtk2 || use gtk + then + emake || die + else + cd ${S}/server + emake glib12=1 || die + fi +} + +src_install() { + touch .keep + dodir /usr/{bin,include,share/man} + + if use gtk2 || use gtk + then + insinto /usr/lib/gkrellm2/themes + doins .keep + + insinto /usr/lib/gkrellm2/plugins + doins .keep + make install \ + INSTALLDIR=${D}/usr/bin \ + MANDIR=${D}/usr/share/man/man1 \ + INCLUDEDIR=${D}/usr/include \ + LOCALEDIR=${D}/usr/share/locale + + cd ${S} + mv gkrellm.1 gkrellm2.1 + + mv src/gkrellm src/gkrellm2 + rm -f ${D}/usr/bin/gkrellm + dobin src/gkrellm2 + else + cd ${S}/server + dobin gkrellmd + cd ${S} + rm gkrellm.1 + fi + + rm -f ${D}/usr/share/man/man1/* + doman *.1 + + exeinto /etc/init.d + doexe ${FILESDIR}/gkrellmd + + dodoc COPYRIGHT README Changelog + dohtml *.html +} |