summaryrefslogtreecommitdiff
blob: d67f2893fce8c08a9f4639e8f1b25da43cc4720e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-libs/wxmozilla/wxmozilla-0.5.7_pre20070102.ebuild,v 1.2 2007/01/02 21:47:53 dirtyepic Exp $

inherit eutils wxwidgets

# Currently force building against firefox.  Seamonkey is supported but
# crashes.  Upstream will fix and release as 0.5.7. bug #130969
#IUSE="doc firefox python"
IUSE="doc python"

DESCRIPTION="Mozilla widget for wxWindows"
SRC_URI="mirror://gentoo/${P}.tar.gz"
HOMEPAGE="http://wxmozilla.sourceforge.net/"

#DEPEND="
#	=x11-libs/wxGTK-2.6*
#	firefox? ( >=www-client/mozilla-firefox-2.0 )
#	!firefox?	( >=www-client/seamonkey-1.0.0 )
#	python?	( dev-lang/python
#			>=dev-python/wxpython-2.6.3 )"
DEPEND="
   =x11-libs/wxGTK-2.6*
   >=www-client/mozilla-firefox-2.0
   python? ( dev-lang/python
           >=dev-python/wxpython-2.6.3 )"

SLOT="0"
LICENSE="wxWinLL-3"
KEYWORDS="~x86"

S="${WORKDIR}/wxMozilla"

src_unpack() {
	unpack ${A}
	cd "${S}"
}

src_compile() {

	# Current Problems:
	#   -can't find wx-config without the funky configure option
	#   -configure will give a warning about wxpython, but it can be ignored.

	# Currently Working:
	#
	# Firefox 2.0 support.  Builds against seamonkey-1.0.7 but crashes

	WX_GTK_VER="2.6"
	need-wxwidgets unicode

	#if use firefox; then
	#	myconf="--enable-firefox --disable-seamonkey"
	#else
	#	myconf="--disable-firefox --enable-seamonkey"
	#fi
	myconf="--enable-firefox --disable-seamonkey"

	econf \
		$(use_enable python) \
		--disable-gtktest \
		--with-wx-config=wx-config-2.6 \
		${myconf} \
		|| die "configure failed"

	emake || die "make failed"
}

src_install() {
	emake DESTDIR="${D}" install || die "install failed"

	if use doc; then
		dodoc README Changelog NEWS
		newdoc demo/main.cpp example.cpp
		use python && dodoc wxPython/demo/*.py
	fi
}