blob: 4567d626e7c86c64d52dadf5ac7acf9ab91cbc97 (
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
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit java-pkg-2
MY_P="${P/-bin/}"
MY_PN="${PN/-bin/}"
DESCRIPTION="Web application testing toolkit utilizing remote-control of a web browser"
HOMEPAGE="http://seleniumhq.org/projects/remote-control/"
SRC_URI="http://release.seleniumhq.org/${MY_PN}/${PV}/${MY_P}-dist.zip"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="app-arch/unzip"
RDEPEND=">=virtual/jre-1.5
x11-libs/libX11"
S="${WORKDIR}/${MY_P}"
src_install() {
java-pkg_newjar selenium-server-${PV}/selenium-server.jar
java-pkg_dolauncher
}
pkg_postinst() {
einfo "You will need a browser that selenium remote control can"
einfo "start and run tests. The list of supported browsers can"
einfo "be found here:"
einfo "http://seleniumhq.org/about/platforms.html#browsers"
einfo ""
einfo "Note that you must start selenium remote control within"
einfo "an X session of the user you intend run selenium scripts on."
einfo ""
einfo "You can use /usr/bin/selenium-remote-control-bin to start the"
einfo "selenium remote control."
}
|