[Python-modules-commits] r20889 - in packages (18 files)

vbkaisetsu-guest at users.alioth.debian.org vbkaisetsu-guest at users.alioth.debian.org
Wed Mar 21 02:36:15 UTC 2012


    Date: Wednesday, March 21, 2012 @ 02:36:14
  Author: vbkaisetsu-guest
Revision: 20889

create py3cairo tree

Added:
  packages/tags/
  packages/trunk/
  packages/trunk/debian/
  packages/trunk/debian/README.source
  packages/trunk/debian/changelog
  packages/trunk/debian/compat
  packages/trunk/debian/control
  packages/trunk/debian/copyright
  packages/trunk/debian/python3-cairo-dev.examples
  packages/trunk/debian/python3-cairo-dev.install
  packages/trunk/debian/python3-cairo-doc.doc-base
  packages/trunk/debian/python3-cairo-doc.docs
  packages/trunk/debian/python3-cairo.install
  packages/trunk/debian/rules
  packages/trunk/debian/source/
  packages/trunk/debian/source/format
  packages/trunk/debian/waf-uncompress.sh
  packages/trunk/debian/watch

Added: packages/trunk/debian/README.source
===================================================================
--- packages/trunk/debian/README.source	                        (rev 0)
+++ packages/trunk/debian/README.source	2012-03-21 02:36:14 UTC (rev 20889)
@@ -0,0 +1,9 @@
+This is repacked source of the upstream package.
+
+  - The upstream package contains "waf" binary. It doesn't satisfy Debian Policy.
+    On this package, waf binary is replaced with uncompressed scripts.
+    More details: http://wiki.debian.org/UnpackWaf
+
+  - The upstream package contains html documents which are compiled with sphinx.
+    It contains a binary "objects.inv", so this package rebuilds documents from
+    source files.

Added: packages/trunk/debian/changelog
===================================================================
--- packages/trunk/debian/changelog	                        (rev 0)
+++ packages/trunk/debian/changelog	2012-03-21 02:36:14 UTC (rev 20889)
@@ -0,0 +1,5 @@
+py3cairo (1.10.0+dfsg-1) unstable; urgency=low
+
+  * Initial release. (Closes: #662957)
+
+ -- Koichi Akabe <vbkaisetsu at gmail.com>  Tue, 13 Mar 2012 09:10:59 +0900

Added: packages/trunk/debian/compat
===================================================================
--- packages/trunk/debian/compat	                        (rev 0)
+++ packages/trunk/debian/compat	2012-03-21 02:36:14 UTC (rev 20889)
@@ -0,0 +1 @@
+7

Added: packages/trunk/debian/control
===================================================================
--- packages/trunk/debian/control	                        (rev 0)
+++ packages/trunk/debian/control	2012-03-21 02:36:14 UTC (rev 20889)
@@ -0,0 +1,42 @@
+Source: py3cairo
+Section: python
+Priority: optional
+Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
+Uploaders: Koichi Akabe <vbkaisetsu at gmail.com>
+Build-Depends: debhelper (>= 7.0.50~), python3-all-dev (>= 3.1), libcairo2-dev (>= 1.10.0), python-sphinx (>= 1.0.7+dfsg) | python3-sphinx
+Standards-Version: 3.9.3
+Homepage: http://cairographics.org/pycairo/
+X-Python3-Version: >= 3.1
+Vcs-Svn: svn://svn.debian.org/python-modules/packages/py3cairo/trunk/
+Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/py3cairo/trunk/
+
+Package: python3-cairo
+Architecture: any
+Depends: ${shlibs:Depends}, ${python3:Depends}, ${misc:Depends}
+Description: Python 3 bindings for the Cairo vector graphics library
+ Cairo is a multi-platform library providing anti-aliased vector-based
+ rendering for multiple target backends.
+ .
+ This package contains modules that allow you to use the Cairo in
+ Python 3 programs.
+
+Package: python3-cairo-dev
+Architecture: all
+Depends: python3-cairo (>= ${binary:Version}), ${misc:Depends}
+Suggests: python3-cairo-doc
+Description: Python 3 cairo bindings: development files
+ Cairo is a multi-platform library providing anti-aliased vector-based
+ rendering for multiple target backends.
+ .
+ This package contains files that allow you to compile wrappers
+ that interoperate with python3-cairo (py3cairo).
+
+Package: python3-cairo-doc
+Section: doc
+Architecture: all
+Depends: ${misc:Depends}, ${sphinxdoc:Depends}
+Description: Python 3 cairo bindings: documentation files
+ Cairo is a multi-platform library providing anti-aliased vector-based
+ rendering for multiple target backends.
+ .
+ This package contains documentation files of python3-cairo (py3cairo).

Added: packages/trunk/debian/copyright
===================================================================
--- packages/trunk/debian/copyright	                        (rev 0)
+++ packages/trunk/debian/copyright	2012-03-21 02:36:14 UTC (rev 20889)
@@ -0,0 +1,103 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: pycairo
+Source: http://cairographics.org/releases/
+
+Files: *
+Copyright: 2003-2010 James Henstridge, Steven Chaplin
+License: LGPL-3
+
+Files: examples/gtk/lsystem.py
+Copyright: 2003 Jesse Andrews <jdandr2 at uky.edu>
+License: LGPL-3
+
+Files: waf-uncompressed
+Copyright: 2005-2010 Thomas Nagy
+License: BSD-3-clause
+
+Files: waflib/*
+Copyright: 2005-2010 Thomas Nagy
+License: BSD-3-clause
+
+Files: debian/*
+Copyright: 2012 Koichi Akabe <vbkaisetsu at gmail.com>
+License: GPL-3+
+
+Files: examples/gtk/hangman.py
+Copyright: 2004 Kevin Worth <kevin at theworths.org>
+License: MIT
+ Permission to use, copy, modify, distribute, and sell this software
+ and its documentation for any purpose is hereby granted without fee,
+ provided that the above copyright notice appear in all copies and
+ that both that copyright notice and this permission notice appear in
+ supporting documentation, and that the name of the Kevin Worth not
+ be used in advertising or publicity pertaining to distribution of
+ the software without specific, written prior permission. Kevin Worth
+ California makes no representations about the suitability of this
+ software for any purpose.  It is provided "as is" without express or
+ implied warranty.
+ .
+ KEVIN WORTH DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
+ INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN
+ NO EVENT SHALL KEVIN WORTH BE LIABLE FOR ANY SPECIAL, INDIRECT OR
+ CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
+ OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
+ NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
+ WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+
+License: LGPL-3
+ Pycairo is free software: you can redistribute it and/or modify it under
+ the terms of the GNU Lesser General Public License version 3 as published
+ by the Free Software Foundation.
+ .
+ Pycairo is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
+ more details.
+ .
+ On Debian systems, the complete text of the GNU Lesser General Public
+ License V3 can be found in /usr/share/common-licenses/LGPL-3 file.
+
+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:
+ .
+ 1. Redistributions of source code must retain the above copyright
+    notice, this list of conditions and the following disclaimer.
+ .
+ 2. 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.
+ .
+ 3. The name of the author may not be used to endorse or promote products
+    derived from this software without specific prior written permission.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE AUTHOR "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 THE AUTHOR 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.
+
+License: GPL-3+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3 of the License, or
+ (at your option) any later version.
+ .
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".
+

Added: packages/trunk/debian/python3-cairo-dev.examples
===================================================================
--- packages/trunk/debian/python3-cairo-dev.examples	                        (rev 0)
+++ packages/trunk/debian/python3-cairo-dev.examples	2012-03-21 02:36:14 UTC (rev 20889)
@@ -0,0 +1 @@
+examples/*.py

Added: packages/trunk/debian/python3-cairo-dev.install
===================================================================
--- packages/trunk/debian/python3-cairo-dev.install	                        (rev 0)
+++ packages/trunk/debian/python3-cairo-dev.install	2012-03-21 02:36:14 UTC (rev 20889)
@@ -0,0 +1,2 @@
+usr/include/
+usr/lib/pkgconfig/

Added: packages/trunk/debian/python3-cairo-doc.doc-base
===================================================================
--- packages/trunk/debian/python3-cairo-doc.doc-base	                        (rev 0)
+++ packages/trunk/debian/python3-cairo-doc.doc-base	2012-03-21 02:36:14 UTC (rev 20889)
@@ -0,0 +1,9 @@
+Document: python3-cairo
+Title: Pycairo documentation
+Author: Steven Chaplin
+Abstract: Manual for Pycairo
+Section: Graphics
+
+Format: HTML
+Index: /usr/share/doc/python3-cairo-doc/html/index.html
+Files: /usr/share/doc/python3-cairo-doc/html/*.html /usr/share/doc/python3-cairo-doc/html/reference/*.html

Added: packages/trunk/debian/python3-cairo-doc.docs
===================================================================
--- packages/trunk/debian/python3-cairo-doc.docs	                        (rev 0)
+++ packages/trunk/debian/python3-cairo-doc.docs	2012-03-21 02:36:14 UTC (rev 20889)
@@ -0,0 +1 @@
+doc/_build/html/

Added: packages/trunk/debian/python3-cairo.install
===================================================================
--- packages/trunk/debian/python3-cairo.install	                        (rev 0)
+++ packages/trunk/debian/python3-cairo.install	2012-03-21 02:36:14 UTC (rev 20889)
@@ -0,0 +1 @@
+/usr/lib/python*/

Added: packages/trunk/debian/rules
===================================================================
--- packages/trunk/debian/rules	                        (rev 0)
+++ packages/trunk/debian/rules	2012-03-21 02:36:14 UTC (rev 20889)
@@ -0,0 +1,39 @@
+#!/usr/bin/make -f
+
+%:
+	dh "$@" --with sphinxdoc --with python3
+
+upstream_version ?= $(shell dpkg-parsechangelog | sed -rne 's/^Version: ([0-9.]+)(\+dfsg)?.*$$/\1/p')
+dfsg_version = $(upstream_version)+dfsg
+upstream_pkg = "pycairo"
+pkg = $(shell dpkg-parsechangelog | sed -ne 's/^Source: //p')
+
+get-orig-source:
+	uscan --rename --download-current-version --destdir=.
+	tar -xjf $(pkg)_$(upstream_version).orig.tar.bz2
+	rm -f $(pkg)_$(upstream_version).orig.tar.bz2
+	mv $(upstream_pkg)-$(upstream_version) $(pkg)_$(dfsg_version).orig
+	$(CURDIR)/debian/waf-uncompress.sh $(pkg)_$(dfsg_version).orig
+	rm $(pkg)_$(dfsg_version).orig/waf
+	rm -r $(pkg)_$(dfsg_version).orig/doc/_build
+	tar -cjf $(CURDIR)/../$(pkg)_$(dfsg_version).orig.tar.bz2 $(pkg)_$(dfsg_version).orig
+	rm -r $(pkg)_$(dfsg_version).orig
+
+override_dh_auto_configure:
+	for pyversion in $(shell py3versions -vr); do PYTHON=python$$pyversion python$$pyversion $(CURDIR)/waf-uncompressed configure -o build$$pyversion --prefix /usr --nopyc --nopyo; done
+
+override_dh_auto_build:
+	for pyversion in $(shell py3versions -vr); do PYTHON=python$$pyversion python$$pyversion $(CURDIR)/waf-uncompressed build -o build$$pyversion; done
+	mkdir -p $(CURDIR)/doc/_build/html
+	cd $(CURDIR)/doc && $(MAKE) html
+
+override_dh_auto_install:
+	for pyversion in $(shell py3versions -vr); do PYTHON=python$$pyversion python$$pyversion $(CURDIR)/waf-uncompressed install -o build$$pyversion --destdir $(CURDIR)/debian/tmp; done
+
+override_dh_clean:
+	dh_clean
+	for pyversion in $(shell py3versions -vr); do rm -rf build$$pyversion; done
+	rm -rf build-dbg .waf* .lock* doc/_build `find . -name "__pycache__"` `find waflib -name "*.pyc"`
+
+override_dh_compress:
+	dh_compress -X.js -X.inv


Property changes on: packages/trunk/debian/rules
___________________________________________________________________
Added: svn:executable
   + 

Added: packages/trunk/debian/source/format
===================================================================
--- packages/trunk/debian/source/format	                        (rev 0)
+++ packages/trunk/debian/source/format	2012-03-21 02:36:14 UTC (rev 20889)
@@ -0,0 +1 @@
+3.0 (quilt)

Added: packages/trunk/debian/waf-uncompress.sh
===================================================================
--- packages/trunk/debian/waf-uncompress.sh	                        (rev 0)
+++ packages/trunk/debian/waf-uncompress.sh	2012-03-21 02:36:14 UTC (rev 20889)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+BASEDIR=$1
+OLD_IFS=$IFS
+IFS="
+"
+
+script=""
+tar_bz2=""
+
+WAF="$BASEDIR/waf"
+inputdata=`sed -e "s|\\\\x0|#0000|g" $WAF | sed -e "s|\\\\\\\\|#005c|g"`
+is_script=1
+for line in $inputdata
+do
+    case $line in
+        \#==\>)
+            is_script=0
+        ;;
+        
+        \#\<==)
+            is_script=1
+        ;;
+        
+        *)
+            if test $is_script -eq 1; then
+                script=$script$line"\n"
+            else
+                tar_bz2=$line
+            fi
+        ;;
+    esac
+done
+echo "$script" > "$BASEDIR/waf-uncompressed"
+chmod +x "$BASEDIR/waf-uncompressed"
+echo -n "$tar_bz2" | sed "s|^#||g" | sed "s|#\\/|\\n|g" | sed "s|#\\*|\\r|g" | sed "s|#0000|\\x0|g" | sed "s|#005c|\\\\|g" | \
+    tar -xjf - -C $BASEDIR
+IFS=$OLD_IFS
+


Property changes on: packages/trunk/debian/waf-uncompress.sh
___________________________________________________________________
Added: svn:executable
   + 

Added: packages/trunk/debian/watch
===================================================================
--- packages/trunk/debian/watch	                        (rev 0)
+++ packages/trunk/debian/watch	2012-03-21 02:36:14 UTC (rev 20889)
@@ -0,0 +1,3 @@
+version=3
+opts=dversionmangle=s/\+dfsg// \
+http://cairographics.org/releases/pycairo-(\d.*)\.tar\.bz2




More information about the Python-modules-commits mailing list