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

Bug 59208

Summary: ebuild for kaffeine-mozilla-0.2
Product: Gentoo Linux Reporter: Lars Wendler (Polynomial-C) (RETIRED) <polynomial-c>
Component: New packagesAssignee: Mozilla Gentoo Team <mozilla>
Status: RESOLVED DUPLICATE    
Severity: enhancement CC: ziga.boehm
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: packed ebuild
playin text ebuild for kaffeine-mozilla
ebuild without dependency for mozilla/mozilla-firefox

Description Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2004-08-02 17:34:09 UTC
Hi,

please find attached an ebuild for kaffeine-mozilla-0.2
From kaffeine-0.4.3b on the mozilla-plugin was separated from kaffeine and so should get its own ebuild.
see also bug #53874

I'm suggesting www-plugins as cathegory as soon as net-www becomes obsolete.

Poly

Reproducible: Always
Steps to Reproduce:
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2004-08-02 17:37:24 UTC
Created attachment 36676 [details]
packed ebuild

This is my first ebuild written from scratch and thus might have some errors.
I also think that src_compile() could be done much more cleaner so maybe
someone has a better solution for that.
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2004-08-02 19:15:20 UTC
err...
src_install() is ugly, not src_compile()

Poly
Comment 3 Ziga Boehm 2004-08-04 06:55:01 UTC
you should also put in >=net-www/mozilla-firefox-bin-0.8 as another option that can satisfy dependency of this package on mozilla... or better yet leave it as optional as some users might be using only kde and konqueror?

anyhow - many thx for the ebuild!
Comment 4 Carsten Lohrke (RETIRED) gentoo-dev 2004-08-05 08:57:21 UTC
Polynomial-C, please attach only in plain text.

*** This bug has been marked as a duplicate of 53874 ***
Comment 5 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2004-08-05 09:11:17 UTC
Created attachment 36825 [details]
playin text ebuild for kaffeine-mozilla

Hi,

alright here comes the text :)
I added some comments so that one can see my problems with this ebuild.

Poly
Comment 6 Ziga Boehm 2004-08-06 07:10:50 UTC
i would leave out mozilla dependency altogether as plugin's compilation process doesn't depend on it.

but then i am not a gentoo developer, am i? just a regular user! ;-)
Comment 7 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2004-08-06 10:17:57 UTC
Comment on attachment 36825 [details]
playin text ebuild for kaffeine-mozilla

# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit nsplugins

DESCRIPTION="kaffeines starter plugin for mozilla"
HOMEPAGE="http://kaffeine.sourceforge.net/"
SRC_URI="mirror://sourceforge/kaffeine/${P}.tar.bz2"
LICENSE="GPL-2"
RESTRICT="nomirror"

SLOT="0"
KEYWORDS="~x86 ~ppc ~sparc ~amd64">
IUSE=""

# I don't know if the dependency for mozilla/firefox is necessary
DEPEND="~media-video/kaffeine-0.4.3b"

src_compile() {
	./configure \
		--prefix=/usr/lib/${PLUGINS_DIR} || die "configure failed"
	emake || die "emake failed"
}

src_install() {
	# Well this is a little bit ugly but I don't know where 
	# "/usr/lib/nsplugins/plugins/plugins" comes from
	make \
		prefix=${D}/usr/lib/${PLUGINS_DIR/\/plugins} \
		install || die "failed to install files"

	dodoc AUTHORS COPYING ChangeLog INSTALL README || die "docs failed"
}
Comment 8 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2004-08-06 10:20:00 UTC
Hi,,

removed dep for mozilla/mozilla-firefox

man I didn't know that editing an attachment will post it as comment.
stupid me :-/
Comment 9 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2004-08-06 10:21:31 UTC
Created attachment 36905 [details]
ebuild without dependency for mozilla/mozilla-firefox
Comment 10 Ziga Boehm 2004-08-06 13:39:03 UTC
great! thx again!