diff --git a/.gitignore b/.gitignore index 0e9766e6..16fb179e 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,10 @@ qrc_* *.o *.swp *.pyc +debian/*.debhelper +debian/files +debian/*.log +debian/*.substvars +debian/*/ +python/build/ +python/*.egg-info/ diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 00000000..3f014bad --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +phantomjs (1.3-1~git20110703) unstable; urgency=low + + * Initial release. + + -- Dennis Kaarsemaker Sun, 03 Jul 2011 20:45:52 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 00000000..7f8f011e --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +7 diff --git a/debian/control b/debian/control new file mode 100644 index 00000000..640c4703 --- /dev/null +++ b/debian/control @@ -0,0 +1,24 @@ +Source: phantomjs +Section: python +Priority: extra +Maintainer: Dennis Kaarsemaker +Build-Depends: debhelper (>= 7), libqt4-dev (>= 4.6), libqtwebkit-dev, qt4-qmake, python-support (>= 0.6.4), python-all-dev (>= 2.5), python-qt4-dev, python-qt4 +Standards-Version: 3.8.4 +XS-Python-Version: >= 2.6 +Vcs-Git: http://github.com/ariya/phantomjs + +Package: phantomjs +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: phantomjs - minimalistic headless WebKit-based JavaScript-driven tool + PhantomJS is a minimalistic, headless, WebKit-based, JavaScript-driven tool. + PhantomJs has native support for different web technologies: DOM handling, + CSS selector, JSON, Canvas, SVG, and of course JavaScript. + +Package: python-pyphantomjs +Architecture: all +Depends: ${python:Depends}, ${shlibs:Depends}, ${misc:Depends}, python-qt4, python-argparse +Description: phantomjs - minimalistic headless WebKit-based JavaScript-driven tool + PhantomJS is a minimalistic, headless, WebKit-based, JavaScript-driven tool. + PhantomJs has native support for different web technologies: DOM handling, + CSS selector, JSON, Canvas, SVG, and of course JavaScript. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 00000000..78d46a56 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,35 @@ +Format-Specification: http://anonscm.debian.org/viewvc/dep/web/deps/dep5.mdwn?revision=174&view=co&pathrev=174 +Name: phantomjs +Maintainer: Dennis Kaarsemaker +Source: http://github.com/ariya/phantomjs + +Copyright: 2011 Ariya Hidayat +License: BSD-3-clause + +Files: debian/* +Copyright: 2011 Dennis Kaarsemaker +License: BSD-3-clause + +License: BSD-3-clause + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + . + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + * Neither the name of the nor the + names of its contributors may be used to endorse or promote products + derived from this software without specific prior written permission. + . + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY + DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF + THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/debian/phantomjs.docs b/debian/phantomjs.docs new file mode 100644 index 00000000..b9de7ba9 --- /dev/null +++ b/debian/phantomjs.docs @@ -0,0 +1,2 @@ +README.md +examples diff --git a/debian/phantomjs.install b/debian/phantomjs.install new file mode 100644 index 00000000..1560a6b5 --- /dev/null +++ b/debian/phantomjs.install @@ -0,0 +1 @@ +debian/tmp/usr/bin/phantomjs diff --git a/debian/python-pyphantomjs.docs b/debian/python-pyphantomjs.docs new file mode 100644 index 00000000..9657fb6a --- /dev/null +++ b/debian/python-pyphantomjs.docs @@ -0,0 +1 @@ +python/README.md diff --git a/debian/python-pyphantomjs.install b/debian/python-pyphantomjs.install new file mode 100644 index 00000000..0237a388 --- /dev/null +++ b/debian/python-pyphantomjs.install @@ -0,0 +1,2 @@ +debian/tmp/usr/bin/pyphantomjs +debian/tmp/usr/lib diff --git a/debian/rules b/debian/rules new file mode 100755 index 00000000..8ea28ed0 --- /dev/null +++ b/debian/rules @@ -0,0 +1,19 @@ +#!/usr/bin/make -f + +%: + dh $@ + +override_dh_auto_build: + qmake-qt4 + $(MAKE) + cd python && python setup.py build + +override_dh_auto_install: + $(MAKE) install + mkdir -p debian/tmp/usr/bin + cp bin/* debian/tmp/usr/bin + cd python && python setup.py install --root=../debian/tmp --install-layout=deb + +override_dh_auto_clean: + if [ -f Makefile ]; then $(MAKE) distclean; fi + cd python && python setup.py clean diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 00000000..d3827e75 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +1.0