Add working xul-ext-monkeysphere
authorkristianf <devnull@localhost>
Sun, 22 Sep 2013 22:09:08 +0000 (00:09 +0200)
committerkristianf <devnull@localhost>
Sun, 22 Sep 2013 22:09:08 +0000 (00:09 +0200)
app-crypt/xul-ext-monkeysphere/Manifest
app-crypt/xul-ext-monkeysphere/xul-ext-monkeysphere-0.8.ebuild [new file with mode: 0644]

index 7a0152d..6cecdc1 100644 (file)
@@ -1 +1,2 @@
-EBUILD xul-ext-monkeysphere-9999.ebuild 1179 SHA256 d32215203d780723ed717490eee365d52acda31f434c76e3f1d31f6c7f1cea73 SHA512 71acaed4663ab808d176c5709b80ea98d2164cf91f7c75888ce2025499e56e074f76284abca1fd91ef940897d135a2bcec1e53332b354e787efc04baad84f9df WHIRLPOOL 96d819de59bb948ea49c1bb837e902ef9c42897b2b8fec888f6251dfe3c00f6aaa626d969d3e6cf252db3166993e48c80437ff80e86281ac32b97e8085860b72
+DIST monkeysphere.xpi 55778 SHA256 b595e28ca21aa815a10d15a39be0e10dce52140cdf0b081f48674dec5c44d466 SHA512 a66cf6126f6cd608dc869eda3a206e5762e45f0f098a4db1e7612e6107f6d8ab6ef681ac13f1195a739877e2b2d3c1a2ff8846c7cb91d7c973945d9248204d7e WHIRLPOOL fe3ca2b81aa0dcbf7a29b86bb909fbec27a73292df1c592970053c23fe8e330712aedf11a9727bdd05d042aacc46cb7526ab210d91e41408d3fa021231b2c499
+EBUILD xul-ext-monkeysphere-0.8.ebuild 814 SHA256 6de5051d4c9ca88d7773acaecbd3781f43c6aaf376227e5298ecf6c521a2c5d4 SHA512 fc145bcd92435143642901fe30729d9aa28fbda9b66351967b41465c5f9f76043532c8fa97c8815e74f0b79b63babe22536a3bbc2a9e39425a0896b8958cef16 WHIRLPOOL 8d20f6e7b041de6015796ca08d899b0eefc310c44ad61816ea39626e8d0d3d45b89ae8f9122283420bc91b829e36af102361f27475c0002acca15fe923e959cc
diff --git a/app-crypt/xul-ext-monkeysphere/xul-ext-monkeysphere-0.8.ebuild b/app-crypt/xul-ext-monkeysphere/xul-ext-monkeysphere-0.8.ebuild
new file mode 100644 (file)
index 0000000..a515823
--- /dev/null
@@ -0,0 +1,35 @@
+EAPI=5
+
+inherit base eutils
+
+DESCRIPTION="Iceweasel/Firefox extension for using Monkeysphere on the web"
+HOMEPAGE="http://web.monkeysphere.info/"
+
+if [[ ${PV} == "9999" ]] ; then
+    inherit git-2
+    EGIT_BRANCH="master"
+    EGIT_REPO_URI="git://git.monkeysphere.info/${PN}"
+    SRC_URI=""
+else
+    SRC_URI="http://archive.monkeysphere.info/xul-ext/monkeysphere.xpi"
+fi
+
+
+S=${WORKDIR}
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="app-crypt/msva-perl"
+DEPEND="www-client/firefox-bin app-arch/unzip"
+
+src_unpack() {
+       unzip -d "${S}" "${DISTDIR}/monkeysphere.xpi"
+}
+
+src_install(){
+       local emid=$(sed -n 's/.*<em:id>\(.*\)<\/em:id>.*/\1/p' ${S}/install.rdf | head -1)
+       mkdir -p "${D}/opt/firefox/extensions/${emid}"
+       unzip -d "${D}/opt/firefox/extensions/${emid}" "${DISTDIR}/monkeysphere.xpi"
+}