summaryrefslogtreecommitdiff
blob: 57f8a6788995e5c677ba264a45b10d35781fa175 (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
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/dev-util/sashxb/sashxb-1.0.1.ebuild,v 1.2 2002/07/15 01:39:06 blizzy Exp $

S="${WORKDIR}/SashXB-${PV}"

DESCRIPTION="Application environment for HTML and JS developers."
HOMEPAGE="http://oss.software.ibm.com/developerworks/opensource/sashxb/"
SRC_URI="http://oss.software.ibm.com/developerworks/opensource/sashxb/download/runtime/SashXB-${PV}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="x86"

RDEPEND=">=virtual/glibc-2.2.3
	>=net-www/mozilla-1.0
	>=dev-libs/gdome2-0.7
	dev-libs/libxml2
	sys-devel/gettext
	gnome-base/libglade
	gnome-base/ORBit
	sys-apps/e2fsprogs
	media-libs/gdk-pixbuf
	gnome-base/gnome-core"
DEPEND="${RDEPEND}"

src_compile() {
	cd ${WORKDIR}

	patch -p0 -i ${FILESDIR}/${P}-mozilla.patch

	cd ${S}
	./configure \
		--host=${CHOST} \
		--prefix=/usr \
		--with-mozilla-lib=/usr/lib/mozilla \
		--with-mozilla-include=/usr/include/mozilla \
		--with-mozilla-idl=/usr/lib/mozilla/include/idl \
		|| die "configure problem"

	emake || die "compile problem"
}

src_install () {
	make DESTDIR=${D} install || die "install problem"

	dodoc ABOUT-NLS COPYING README TODO
}

pkg_postinst() {
	einfo "The SashXB runtime has been installed. You may want to take a"
	einfo "look at the Weblications gallery now, and install some of them"
	einfo "from your regular user account (that means, *not* as root"
	einfo "unless you know what you're doing):"
	einfo ""
	einfo "\thttp://oss.software.ibm.com/developerworks/opensource/sashxb/download/gallery.html"
	einfo ""
	einfo "For example, to install the Registry Test, type:"
	einfo
	einfo "\tsash-install regtest"
}