Clean up xul-ext-monkeysphere extension and add support for source build of firefox
authorkristianf <devnull@localhost>
Sun, 29 Sep 2013 16:34:55 +0000 (18:34 +0200)
committerkristianf <devnull@localhost>
Sun, 29 Sep 2013 16:34:55 +0000 (18:34 +0200)
app-crypt/xul-ext-monkeysphere/Manifest
app-crypt/xul-ext-monkeysphere/xul-ext-monkeysphere-0.8.ebuild

index 68eaa1a..0a7e4ba 100644 (file)
@@ -1,2 +1,2 @@
 DIST xul-ext-monkeysphere_0.8.orig.tar.gz 52835 SHA256 ff8f5a8238d5d5bd4ca52eb679934b728ec904ff115f67d1bbbaba64664f45b8 SHA512 857c9777adb9c8e89a0761434a9c6ddec8e1e5d456207d79b96416914ac06e5bba58dadb6c68c76d639565a6bc1aba3ee39cdc54a312d8f7a47abb8d39663243 WHIRLPOOL a7f4922de7d17b473cc0642bb97d3484b1e8e4b3a1bc880e33f29f29ab398737b40c25092a5c09ec29e196b0594f9810c896e536c8f0c188213869ec72f5a5f7
-EBUILD xul-ext-monkeysphere-0.8.ebuild 936 SHA256 23425169317e7c3ff4d37f4de3bddaab57170df45ddba9a74d8bf32b93655abb SHA512 e33b5413c3a83f05a37a7a7819c4ad3d76b513824c4d9229c1c4fc0c118a8c82f85adafba2e871fab16d4436d9a6dca3cb672b412c5eef1464b1ac700a6077ef WHIRLPOOL 0047f12c54d12ff1ec1c85140c6b8298e34a344317e22a37b234e814cc0db62e36c60d74113bfc322ac3e77ecedcb3d82e02f7c1ea9bcc8ed5c27bae04a3de19
+EBUILD xul-ext-monkeysphere-0.8.ebuild 1318 SHA256 fac76f95a041431a848299bd8d3102261377a025c9f1c59f440e32006ef82576 SHA512 b6283e3af45cdd15df4d88851539306d004978c11e52c232e49ab24933ac64f33511bcc336c5098fd8f7b2c4952629a4df864c2e7c762f94f079b21f9ebc4065 WHIRLPOOL ba4cb21616a81271164fe182cdb123a49fe255e5a0fe772a2e7013e0776674c012037a05fa9c687139cf0101856b2946c96ca3c216923c732bf78b62d9466dbf
index fd852fa..cbd8632 100644 (file)
@@ -26,7 +26,23 @@ DEPEND="|| ( www-client/firefox-bin www-client/firefox ) app-arch/unzip media-gf
 src_install(){
        local emid=$(sed -n 's/.*<em:id>\(.*\)<\/em:id>.*/\1/p' ${S}/install.rdf | head -1)
        local cleanup="NOTES Makefile install.rdf.template monkeysphere.xpi chrome/content/*.svg"
-       for i in $cleanup; do rm ${S}/$i; done; 
-       mkdir -p "${D}/opt/firefox/extensions/${emid}"
-       cp -r ${S}/* "${D}/opt/firefox/extensions/${emid}/"
+       local edir=""
+       for i in $cleanup; do rm ${S}/$i; done;
+       local extinstalldir=""
+
+       if has_version '>=www-client/firefox-bin-1.0'; then
+               einfo "Binary version of Firefox found"
+               extinstalldir="${D}/opt/firefox/extensions/${emid}  $extinstalldir"
+       fi
+
+       if has_version '>=www-client/firefox-1.0'; then
+        einfo "Source version of Firefox found"
+        extinstalldir="${D}/usr/lib64/firefox/browser/extensions/${emid}  $extinstalldir"
+    fi
+
+       
+       for i in $extinstalldir; do
+               mkdir -p "${i}"
+               cp -r ${S}/* "${i}"
+       done;
 }