aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2009-08-17 17:37:05 -0300
committerHugo Lima <hugo.lima@openbossa.org>2009-08-17 17:37:05 -0300
commitf90374a93cc7232ae304f1c121bedd383209b2b7 (patch)
treeb9fe68740dc645cdf0606161c73137e925fcc646
parentcbac30b07bae6c72be5eefd5e47fe83650a16acd (diff)
Added files for debian package creation
-rw-r--r--debian/boostpythongenerator.149
-rw-r--r--debian/boostpythongenerator.manpages1
-rw-r--r--debian/changelog5
-rw-r--r--debian/cmake.mk55
-rw-r--r--debian/compat1
-rw-r--r--debian/control12
-rw-r--r--debian/copyright34
-rwxr-xr-xdebian/rules19
8 files changed, 176 insertions, 0 deletions
diff --git a/debian/boostpythongenerator.1 b/debian/boostpythongenerator.1
new file mode 100644
index 000000000..f87ae3869
--- /dev/null
+++ b/debian/boostpythongenerator.1
@@ -0,0 +1,49 @@
+.TH BOOSTPYTHONGENERATOR 1 "JULY 2009" Linux "User Manuals"
+.SH NAME
+boostpythongeneator \- generator of python bindings
+.SH SYNOPSIS
+.B boostpythongenerator [options] header\-file typesystem\-file
+.B ...
+.SH DESCRIPTION
+.B boostpythongenerator
+is a utility that parses a collection of C++
+headers and typesystem files, generating
+boost::python-based wrappers, making the C++
+classes available for Python developers.
+.SH OPTIONS
+.IP --debug-level=[sparse|medium|full]
+The amount of messages displayed.
+.IP --silent
+Avoid printing any message.
+.IP --help, -h or -?
+Prints the usage message.
+.IP --no-supress-warnings
+Show all warnings.
+.IP --output-directory=\fI[dir]\fR
+The directory where the generated files will be written.
+.IP --include-paths=\fI<path>[:path:..]\fR
+The directories where the generator will search the
+headers. Works like gcc -I flag.
+.IP --typesytem-paths=\fI<path>[:path:..]\fR
+The directories where the generator will search the
+external typesystems referred by the main one.
+.IP --print-stdout
+Print to stdout instead of stderr.
+.IP --qt-source-dir
+Define the qt source directory.
+.IP --documentation-data-dir=\fI[dir]\fR
+Directory with documentation xml extracted from
+qt source by qdoc3.
+.IP --documentation-out-dir=\fI[dir]\fR
+Output directory for documentation files.
+.IP --documentation-code-snippets-dir=\fI[dir]\fR
+Directory with code snippets for documentation.
+.IP --documentation-only
+Only generates the documentation.
+.IP --license-file=\fI[licensefile]\fR
+Template for copyright headers of generated files.
+.IP --disable-named-arg
+Drops support for named args.
+.SH AUTHOR
+Lauro Moura <lauro.neto at openbossa dot org>
+
diff --git a/debian/boostpythongenerator.manpages b/debian/boostpythongenerator.manpages
new file mode 100644
index 000000000..801f1a7a2
--- /dev/null
+++ b/debian/boostpythongenerator.manpages
@@ -0,0 +1 @@
+debian/boostpythongenerator.1
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 000000000..73638d829
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+boostpythongenerator (0.2-0maemo1) unstable; urgency=low
+
+ * Initial release.
+
+ -- Anderson Lizardo <anderson.lizardo@openbossa.org> Thu, 16 Jul 2009 09:34:42 -0400
diff --git a/debian/cmake.mk b/debian/cmake.mk
new file mode 100644
index 000000000..cce172d37
--- /dev/null
+++ b/debian/cmake.mk
@@ -0,0 +1,55 @@
+# -*- mode: makefile; coding: utf-8 -*-
+# Copyright © 2006 Peter Rockai <me@mornfall.net>
+# Copyright © 2006 Fathi Boudra <fboudra@free.fr>
+# Copyright © 2007 Peter Eisentraut <petere@debian.org>
+# Description: A class for cmake packages
+#
+# 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 2, 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, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+# 02111-1307 USA.
+
+_cdbs_scripts_path ?= /usr/lib/cdbs
+_cdbs_rules_path ?= /usr/share/cdbs/1/rules
+_cdbs_class_path ?= /usr/share/cdbs/1/class
+
+ifndef _cdbs_class_cmake
+_cdbs_class_cmake = 1
+
+include $(_cdbs_class_path)/makefile.mk$(_cdbs_makefile_suffix)
+
+ifdef _cdbs_tarball_dir
+DEB_BUILDDIR = $(_cdbs_tarball_dir)/obj-$(DEB_BUILD_GNU_TYPE)
+else
+DEB_BUILDDIR = obj-$(DEB_BUILD_GNU_TYPE)
+endif
+
+# Overriden from makefile-vars.mk
+# We pass CFLAGS and friends to cmake, so no need to pass them to make
+DEB_MAKE_INVOKE = $(DEB_MAKE_ENVVARS) $(MAKE) -C $(DEB_BUILDDIR)
+
+DEB_MAKE_INSTALL_TARGET = install DESTDIR=$(DEB_DESTDIR)
+
+CMAKE = cmake
+DEB_CMAKE_INSTALL_PREFIX = /usr
+DEB_CMAKE_NORMAL_ARGS = -DCMAKE_INSTALL_PREFIX="$(DEB_CMAKE_INSTALL_PREFIX)" -DCMAKE_C_COMPILER:FILEPATH="$(CC)" -DCMAKE_CXX_COMPILER:FILEPATH="$(CXX)" -DCMAKE_C_FLAGS="$(CFLAGS)" -DCMAKE_CXX_FLAGS="$(CXXFLAGS)" -DCMAKE_SKIP_RPATH=ON -DCMAKE_VERBOSE_MAKEFILE=ON
+
+common-configure-arch common-configure-indep:: common-configure-impl
+common-configure-impl:: $(DEB_BUILDDIR)/CMakeCache.txt
+$(DEB_BUILDDIR)/CMakeCache.txt:
+ cd $(DEB_BUILDDIR) && $(CMAKE) $(CURDIR)/$(DEB_SRCDIR) $(DEB_CMAKE_NORMAL_ARGS) $(DEB_CMAKE_EXTRA_FLAGS)
+
+cleanbuilddir::
+ -$(if $(call cdbs_streq,$(DEB_BUILDDIR),$(DEB_SRCDIR)),,rm -rf $(DEB_BUILDDIR))
+
+endif
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 000000000..7ed6ff82d
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+5
diff --git a/debian/control b/debian/control
new file mode 100644
index 000000000..30662890a
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,12 @@
+Source: boostpythongenerator
+Section: devel
+Priority: extra
+Maintainer: PySide team <contact@pyside.org>
+Build-Depends: cdbs, debhelper (>= 5), libapiextractor-dev (>= 0.1), libqt4-dev (>= 4.5), cmake (>= 2.6.0)
+Standards-Version: 3.7.3
+
+Package: boostpythongenerator
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, libapiextractor (>= 0.1)
+Description: Generates Python bindings for qt based libraries
+ Generates Boost::Python-based bindings for qt based libraries.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 000000000..2018e7678
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,34 @@
+This package was debianized by Lauro Moura <lauro.neto@indt.org.br> on
+Tue, 03 Feb 2009 19:44:19 -0300.
+
+Upstream Author:
+
+ PySide team <contact@pyside.org>
+
+Copyright:
+
+ Copyright (C) 2009 Nokia Corporation and/or its subsidiary(ies)
+
+License:
+
+ This package 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 2 of the License, or
+ (at your option) any later version.
+
+ This package 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 package; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+ On Debian systems, the complete text of the GNU General Public License
+ can be found in `/usr/share/common-licenses/GPL'.
+
+
+The Debian packaging is (C) 2009, Nokia Corporation and
+is licensed under the GPL, see `/usr/share/common-licenses/GPL'.
+
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 000000000..a1be1da84
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,19 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+# workaround for missing cmake.mk in older CDBS versions
+ifneq (,$(realpath /usr/share/cdbs/1/class/cmake.mk))
+include /usr/share/cdbs/1/class/cmake.mk
+else
+include debian/cmake.mk
+endif
+
+# Add here any variable or target overrides you need.
+
+DEB_CMAKE_EXTRA_FLAGS=-DCMAKE_MODULE_PATH=/usr/share/cmake-2.6/Modules
+
+# borrowed from python2.5 debian/rules
+COMMA = ,
+ifneq (,$(filter parallel=%,$(subst $(COMMA), ,$(DEB_BUILD_OPTIONS))))
+ DEB_MAKE_ENVVARS := MAKEFLAGS=-j$(subst parallel=,,$(filter parallel=%,$(subst $(COMMA), ,$(DEB_BUILD_OPTIONS))))
+endif