Add missing files
authorkristianf <devnull@localhost>
Sun, 22 Sep 2013 20:18:51 +0000 (22:18 +0200)
committerkristianf <devnull@localhost>
Sun, 22 Sep 2013 20:18:51 +0000 (22:18 +0200)
app-crypt/msva-perl/files/01_Makefile.patch [new file with mode: 0644]
app-crypt/msva-perl/files/02_Makefile.patch [new file with mode: 0644]
app-crypt/xul-ext-monkeysphere/Manifest [new file with mode: 0644]
app-crypt/xul-ext-monkeysphere/xul-ext-monkeysphere-9999.ebuild [new file with mode: 0644]

diff --git a/app-crypt/msva-perl/files/01_Makefile.patch b/app-crypt/msva-perl/files/01_Makefile.patch
new file mode 100644 (file)
index 0000000..8392f74
--- /dev/null
@@ -0,0 +1,13 @@
+--- Makefile   2013-09-22 21:13:46.000000000 +0200
++++ Makefile.new       2013-09-22 21:15:22.000000000 +0200
+@@ -5,8 +5,8 @@
+ # © 2010 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
+ # Licensed under GPL v3 or later
+-VERSION := $(shell dpkg-parsechangelog -lChangelog | grep ^Version: | cut -f2 -d\ )
+-DEBIAN_VERSION=`dpkg-parsechangelog | grep ^Version: | cut -f2 -d\ `
++VERSION="##VERSION##"
++DEBIAN_VERSION="##VERSION##"
+ MANPAGES=msva-perl.1 msva-query-agent.1
diff --git a/app-crypt/msva-perl/files/02_Makefile.patch b/app-crypt/msva-perl/files/02_Makefile.patch
new file mode 100644 (file)
index 0000000..0a694de
--- /dev/null
@@ -0,0 +1,17 @@
+--- /home/kristianf/Makefile   2013-09-22 21:35:20.000000000 +0200
++++ Makefile   2013-09-22 21:53:14.000000000 +0200
+@@ -29,4 +29,14 @@
+ debian-tag:
+       git tag -s msva-perl_debian/$(DEBIAN_VERSION) -m "tagging msva-perl debian packaging version $(DEBIAN_VERSION)"
++install: all
++      install -m 0444 -D Crypt/Monkeysphere/MSVA.pm ##PERL##/Crypt/Monkeysphere/MSVA.pm
++      install -m 0444 Crypt/Monkeysphere/*.pm ##PERL##/Crypt/Monkeysphere
++      install -m 0444 -D Crypt/Monkeysphere/MSVA/MarginalUI.pm ##PERL##/Crypt/Monkeysphere/MSVA/MarginalUI.pm
++      install -m 0444 Crypt/Monkeysphere/MSVA/*.pm ##PERL##/Crypt/Monkeysphere/MSVA
++      install -m 0444 -D Net/Server/MSVA.pm ##PERL##/Net/Server/MSVA.pm
++      install -m 0555 -D msva-perl ../../image/usr/bin/msva-perl
++      install -m 0555 -D msva-query-agent ../../image/usr/bin/msva-query-agent
++
+ .PHONY: upstream-tag debian-package debian-tag all clean
++
diff --git a/app-crypt/xul-ext-monkeysphere/Manifest b/app-crypt/xul-ext-monkeysphere/Manifest
new file mode 100644 (file)
index 0000000..7a0152d
--- /dev/null
@@ -0,0 +1 @@
+EBUILD xul-ext-monkeysphere-9999.ebuild 1179 SHA256 d32215203d780723ed717490eee365d52acda31f434c76e3f1d31f6c7f1cea73 SHA512 71acaed4663ab808d176c5709b80ea98d2164cf91f7c75888ce2025499e56e074f76284abca1fd91ef940897d135a2bcec1e53332b354e787efc04baad84f9df WHIRLPOOL 96d819de59bb948ea49c1bb837e902ef9c42897b2b8fec888f6251dfe3c00f6aaa626d969d3e6cf252db3166993e48c80437ff80e86281ac32b97e8085860b72
diff --git a/app-crypt/xul-ext-monkeysphere/xul-ext-monkeysphere-9999.ebuild b/app-crypt/xul-ext-monkeysphere/xul-ext-monkeysphere-9999.ebuild
new file mode 100644 (file)
index 0000000..7f46c76
--- /dev/null
@@ -0,0 +1,56 @@
+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
+    MY_P="${PN}_${PV}"
+    SRC_URI="http://archive.monkeysphere.info/debian/pool/monkeysphere/m/${PN}/${MY_P}.orig.tar.gz"
+fi
+
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="app-crypt/msva-perl"
+DEPEND="dev-vcs/git"
+S="${WORKDIR}"
+
+src_prepare() {
+       unpack monkeysphere.xpi
+}
+
+src_compile() {
+       pushd libufe-xidgetter/
+               emake || die
+       popd
+
+       pushd unity-firefox-extension/
+               bash ./build.sh || die
+       popd
+}
+
+src_install() {
+       pushd libufe-xidgetter/
+               emake DESTDIR="${D}" install
+       popd
+
+       pushd unity-firefox-extension/
+               local emid=$(sed -n 's/.*<em:id>\(.*\)<\/em:id>.*/\1/p' install.rdf | head -1)
+               dodir usr/lib/firefox/browser/extensions/${emid}/
+               unzip unity.xpi -d \
+                       "${D}usr/lib/firefox/browser/extensions/${emid}/" || die
+       popd
+       dosym /usr/lib/firefox/browser/extensions/${emid} /opt/firefox/browser/extensions/${emid}
+
+       prune_libtool_files --modules
+}