[Pkg-javascript-commits] [pdf.js] 138/141: Build the Mozilla extension

David Prévot taffit at moszumanska.debian.org
Sat Apr 19 22:40:39 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository pdf.js.

commit d7b64e05174b573f3d6dfbfa293f70adebbb8ae8
Author: David Prévot <taffit at debian.org>
Date:   Sat Apr 19 14:53:10 2014 -0400

    Build the Mozilla extension
---
 debian/control | 16 ++++++++++++++--
 debian/rules   |  7 ++++++-
 2 files changed, 20 insertions(+), 3 deletions(-)

diff --git a/debian/control b/debian/control
index 6a7d71e..7392d66 100644
--- a/debian/control
+++ b/debian/control
@@ -3,8 +3,9 @@ Section: web
 Priority: optional
 Maintainer: Debian Javascript Maintainers <pkg-javascript-devel at lists.alioth.debian.org>
 Uploaders: David Prévot <taffit at debian.org>,
-           ownCloud for Debian maintainers <pkg-owncloud-maintainers at lists.alioth.debian.org>
-Build-Depends: debhelper (>= 9.20131213~), nodejs
+           ownCloud for Debian maintainers <pkg-owncloud-maintainers at lists.alioth.debian.org>,
+           Debian Mozilla Extension Maintainers <pkg-mozext-maintainers at lists.alioth.debian.org>
+Build-Depends: debhelper (>= 9.20131213~), mozilla-devscripts, nodejs
 Standards-Version: 3.9.5
 Homepage: http://mozilla.github.io/pdf.js/
 Vcs-Git: git://anonscm.debian.org/pkg-javascript/pdf.js.git
@@ -18,3 +19,14 @@ Breaks: owncloud (<< 6.0.3~)
 Description: Portable Document Format (PDF) viewer built with HTML5
  PDF.js is a general-purpose, web standards-based platform for parsing and
  rendering PDFs.
+
+Package: xul-ext-pdf.js
+Architecture: all
+Depends: ${misc:Depends}, ${xpi:Depends}
+Recommends: ${xpi:Recommends}
+Breaks: ${xpi:Breaks}
+Provides: ${xpi:Provides}
+Enhances: ${xpi:Enhances}
+Description: Portable Document Format (PDF) viewer plugin for Iceweasel
+ PDF.js brings Portable Document Format (PDF) reading capabilities to the
+ browser using web standard technologies.
diff --git a/debian/rules b/debian/rules
index 498715f..e70148a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,12 +3,13 @@
 UPSTREAM := $(shell head -1 debian/changelog | sed 's/.*(//;s/[+-].*).*//')
 
 %:
-	dh $@
+	dh $@ --with xul-ext
 
 override_dh_auto_build:
 	cp make.js make.js.bkp
 	sed -i "s/@EXTENSION_VERSION@/$(UPSTREAM)/" make.js
 	nodejs make cmaps
+	nodejs make extension
 	nodejs make generic
 	mv make.js.bkp make.js
 	dh_auto_build
@@ -22,5 +23,9 @@ override_dh_auto_clean:
 	rm -rf web/locale
 	dh_auto_clean
 
+override_dh_auto_install:
+	install-xpi --package=xul-ext-pdf.js --remove-license-files build/firefox/pdf.js.amo.xpi
+	dh_auto_install
+
 override_dh_installchangelogs:
 	dh_installchangelogs $(CURDIR)/debian/upstream/changelog

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git



More information about the Pkg-javascript-commits mailing list