a51582359c2df69b0bb134962f7304662767800e
[portage-overlay.git] / app-crypt / xul-ext-monkeysphere / xul-ext-monkeysphere-0.8.ebuild
1 EAPI=5
2
3 inherit base eutils
4
5 DESCRIPTION="Iceweasel/Firefox extension for using Monkeysphere on the web"
6 HOMEPAGE="http://web.monkeysphere.info/"
7
8 if [[ ${PV} == "9999" ]] ; then
9     inherit git-2
10     EGIT_BRANCH="master"
11     EGIT_REPO_URI="git://git.monkeysphere.info/${PN}"
12     SRC_URI=""
13 else
14     SRC_URI="http://archive.monkeysphere.info/xul-ext/monkeysphere.xpi"
15 fi
16
17
18 S=${WORKDIR}
19 LICENSE="GPL-3"
20 SLOT="0"
21 KEYWORDS="~amd64 ~x86"
22 IUSE=""
23
24 RDEPEND="app-crypt/msva-perl"
25 DEPEND="www-client/firefox-bin app-arch/unzip"
26
27 src_unpack() {
28         unzip -d "${S}" "${DISTDIR}/monkeysphere.xpi"
29 }
30
31 src_install(){
32         local emid=$(sed -n 's/.*<em:id>\(.*\)<\/em:id>.*/\1/p' ${S}/install.rdf | head -1)
33         mkdir -p "${D}/opt/firefox/extensions/${emid}"
34         unzip -d "${D}/opt/firefox/extensions/${emid}" "${DISTDIR}/monkeysphere.xpi"
35 }