rev 9117 - branches/kde4/packages/kdebindings/debian
Adeodato Simó
adeodato at alioth.debian.org
Fri Jan 25 19:27:58 UTC 2008
Author: adeodato
Date: 2008-01-25 19:27:57 +0000 (Fri, 25 Jan 2008)
New Revision: 9117
Added:
branches/kde4/packages/kdebindings/debian/python-kde4-dev.install
branches/kde4/packages/kdebindings/debian/python-kde4-doc.examples
branches/kde4/packages/kdebindings/debian/python-kde4-doc.install
branches/kde4/packages/kdebindings/debian/python-kde4.docs
branches/kde4/packages/kdebindings/debian/python-kde4.install
branches/kde4/packages/kdebindings/debian/rules
Modified:
branches/kde4/packages/kdebindings/debian/
branches/kde4/packages/kdebindings/debian/changelog
branches/kde4/packages/kdebindings/debian/control
Log:
Initial PyKDE4 packaging.
Property changes on: branches/kde4/packages/kdebindings/debian
___________________________________________________________________
Name: svn:ignore
+ tmp
files
*.debhelper
*.substvars
python-kde4
python-kde4-dev
python-kde4-doc
Modified: branches/kde4/packages/kdebindings/debian/changelog
===================================================================
--- branches/kde4/packages/kdebindings/debian/changelog 2008-01-24 22:33:23 UTC (rev 9116)
+++ branches/kde4/packages/kdebindings/debian/changelog 2008-01-25 19:27:57 UTC (rev 9117)
@@ -2,4 +2,8 @@
* Initial upload.
- -- Adeodato Simó <dato at net.com.org.es> Thu, 10 Jan 2008 12:17:30 +0100
+ [ Adeodato Simó ]
+ * Package PyKDE4 (python-kde4, python-kde4-dev, python-kde4-doc; -dbg
+ versions missing).
+
+ -- Adeodato Simó <dato at net.com.org.es> Fri, 25 Jan 2008 20:04:20 +0100
Modified: branches/kde4/packages/kdebindings/debian/control
===================================================================
--- branches/kde4/packages/kdebindings/debian/control 2008-01-24 22:33:23 UTC (rev 9116)
+++ branches/kde4/packages/kdebindings/debian/control 2008-01-25 19:27:57 UTC (rev 9117)
@@ -2,23 +2,54 @@
Section: kde
Priority: optional
Maintainer: Debian Qt/KDE Maintainers <debian-qt-kde at lists.debian.org>
-Build-Depends: debhelper (>= 5), kdelibs5-dev (>> 4:4.0), python-all-dev, ..., ruby1.8-dev, ...
+Build-Depends: debhelper (>= 5), cmake, kdelibs5-dev (>> 4:4.0), libphonon-dev,
+ python, python-all-dev, sip4, python-sip4-dev, python-qt4-dev,
+ ruby1.8-dev,
Uploaders: Vincent Fourmond <fourmond at debian.org>, Torsten Marek <shlomme at debian.org>, Adeodato Simó <dato at net.com.org.es>
+XS-Python-Version: >= 2.4
Standards-Version: 3.7.3
Homepage: http://www.kde.org
Package: python-kde4
Section: python
Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}
+XB-Python-Version: ${python:Versions}
+Depends: ${shlibs:Depends}, ${python:Depends}, ${misc:Depends}
Description: Python bindings for the KDE 4 libraries
- ...
+ This package contains PyKDE4, the Python bindings for the KDE 4
+ libraries, that allow you to write KDE programs using Python instead of
+ C++. It contains the following modules under the PyKDE4 namespace:
+ .
+ * kdecore
+ * kdeui
+ * khtml
+ * kio
+ * kparts
+ * ktexteditor
+ * kutils
+ * solid
+ .
+ This package provides modules for all supported Python versions.
-Package: libqt4-ruby1.8
-Section: interpreters
- ...
+Package: python-kde4-dev
+Section: python
+Architecture: all
+XB-Python-Version: ${python:Versions}
+Depends: ${python:Depends}, python-qt4
+Recommends: python-kde4
+Description: UIC compiler and SIP files for PyKDE4
+ This package contains pykdeuic4, a wrapper around PyQt's own UIC (user
+ interface compiler). It is needed to generate code from Qt Designer's
+ .uic files. You want to install this package if you are writing a PyKDE
+ application which has .uic files, or running one of these applications
+ from source.
+ .
+ It also contains the .sip files for PyKDE4, needed to build packages
+ with classes based on PyKDE.
-Package: libsmokeqt4-1
-Section: libs
- ...
-
+Package: python-kde4-doc
+Section: doc
+Architecture: all
+Description: documentation and examples for PyKDE4
+ This package contains documentation for PyKDE4, and some example code
+ showing how to use it.
Added: branches/kde4/packages/kdebindings/debian/python-kde4-dev.install
===================================================================
--- branches/kde4/packages/kdebindings/debian/python-kde4-dev.install (rev 0)
+++ branches/kde4/packages/kdebindings/debian/python-kde4-dev.install 2008-01-25 19:27:57 UTC (rev 9117)
@@ -0,0 +1 @@
+debian/tmp/usr/share/sip/PyKDE4
Added: branches/kde4/packages/kdebindings/debian/python-kde4-doc.examples
===================================================================
--- branches/kde4/packages/kdebindings/debian/python-kde4-doc.examples (rev 0)
+++ branches/kde4/packages/kdebindings/debian/python-kde4-doc.examples 2008-01-25 19:27:57 UTC (rev 9117)
@@ -0,0 +1 @@
+python/pykde4/examples/*
Added: branches/kde4/packages/kdebindings/debian/python-kde4-doc.install
===================================================================
--- branches/kde4/packages/kdebindings/debian/python-kde4-doc.install (rev 0)
+++ branches/kde4/packages/kdebindings/debian/python-kde4-doc.install 2008-01-25 19:27:57 UTC (rev 9117)
@@ -0,0 +1 @@
+debian/tmp/usr/share/doc/kde4/HTML/PyKDE4 usr/share/doc/python-kde4-doc/html
Added: branches/kde4/packages/kdebindings/debian/python-kde4.docs
===================================================================
--- branches/kde4/packages/kdebindings/debian/python-kde4.docs (rev 0)
+++ branches/kde4/packages/kdebindings/debian/python-kde4.docs 2008-01-25 19:27:57 UTC (rev 9117)
@@ -0,0 +1 @@
+python/pykde4/README
Added: branches/kde4/packages/kdebindings/debian/python-kde4.install
===================================================================
--- branches/kde4/packages/kdebindings/debian/python-kde4.install (rev 0)
+++ branches/kde4/packages/kdebindings/debian/python-kde4.install 2008-01-25 19:27:57 UTC (rev 9117)
@@ -0,0 +1,2 @@
+debian/tmp/usr/lib/python2.*/site-packages/PyKDE4/*.so
+debian/tmp/usr/lib/python2.*/site-packages/PyKDE4/__init__.py
Added: branches/kde4/packages/kdebindings/debian/rules
===================================================================
--- branches/kde4/packages/kdebindings/debian/rules (rev 0)
+++ branches/kde4/packages/kdebindings/debian/rules 2008-01-25 19:27:57 UTC (rev 9117)
@@ -0,0 +1,146 @@
+#! /usr/bin/make -f
+
+cmake_flags := \
+ -DCMAKE_SKIP_RPATH=true \
+ -DCMAKE_BUILD_TYPE=Debian \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_VERBOSE_MAKEFILE=ON \
+ \
+ -DKDE4_BUILD_TESTS=false \
+ -DKDE4_USE_ALWAYS_FULL_RPATH=false \
+ -DKDE_DISTRIBUTION_TEXT="Debian packages" \
+ \
+ -DLIB_INSTALL_DIR=/usr/lib \
+ -DSYSCONF_INSTALL_DIR=/etc \
+ -DCONFIG_INSTALL_DIR=/etc/kde4 \
+ -DDATA_INSTALL_DIR=/usr/share/kde4/apps \
+ -DHTML_INSTALL_DIR=/usr/share/doc/kde4/HTML \
+ -DKCFG_INSTALL_DIR=/usr/share/kde4/config.kcfg \
+ \
+ -DCMAKE_EXE_LINKER_FLAGS="-Wl,--no-undefined -Wl,--as-needed" \
+ -DCMAKE_SHARED_LINKER_FLAGS="-Wl,--no-undefined -Wl,--as-needed" \
+ -DCMAKE_MODULE_LINKER_FLAGS="-Wl,--no-undefined -Wl,--as-needed" \
+
+# OK, here we disable all that we don't want.
+# Please remove lines as you add packaging support for them.
+# Do NOT remove ENABLE_PYKDE4, it gets special handling below. -- Dato
+cmake_flags += \
+ -DENABLE_QYOTO=OFF \
+ -DENABLE_SMOKE=OFF \
+ -DENABLE_SMOKEKDE=OFF \
+ -DENABLE_QTRUBY=OFF \
+ -DENABLE_KORUNDUM=OFF \
+ -DENABLE_KROSSRUBY=OFF \
+ -DENABLE_KROSSPYTHON=OFF\
+ -DENABLE_PYKDE4=OFF
+
+##
+
+DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+objdir = $(CURDIR)/obj-$(DEB_HOST_GNU_TYPE)
+
+##
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+ CFLAGS += -O0
+else
+ CFLAGS += -O2
+endif
+
+##
+
+pydefault := $(shell pyversions --default)
+pyversions := $(shell pyversions --supported --version)
+cmake_flags += -DPYTHON_EXECUTABLE=/usr/bin/$(pydefault)
+
+##
+
+$(objdir)/CMakeCache.txt:
+ -mkdir $(objdir)
+ cd $(objdir) && cmake $(CURDIR) $(cmake_flags) \
+ -DCMAKE_C_FLAGS="$(CFLAGS)" -DCMAKE_CXX_FLAGS="$(CFLAGS)"
+
+ for v in $(pyversions); do \
+ d=$(objdir)/python/pykde4-$$v; \
+ mkdir $$d && cd $$d && \
+ cmake $(CURDIR)/python/pykde4 $(cmake_flags) \
+ -DPYTHON_EXECUTABLE=/usr/bin/python$$v; \
+ done
+
+##
+
+build: build-stamp
+build-stamp: $(objdir)/CMakeCache.txt
+ $(MAKE) -C $(objdir)
+
+ for v in $(pyversions); do \
+ make -C $(objdir)/python/pykde4-$$v; \
+ done
+
+ touch $@
+
+##
+
+clean:
+ dh_testdir
+ dh_testroot
+
+ rm -f build-stamp
+ rm -rf $(objdir)
+
+ dh_clean
+
+##
+
+install:
+ dh_testdir
+ dh_testroot
+ $(MAKE) -C $(objdir) install DESTDIR=$(CURDIR)/debian/tmp
+
+ for v in $(pyversions); do \
+ make -C $(objdir)/python/pykde4-$$v install DESTDIR=$(CURDIR)/debian/tmp; \
+ done
+
+ dh_install
+ cd debian/tmp/usr/share/doc/kde4/HTML/PyKDE4 && \
+ rm -f COPYING.html COPYING.LESSER.html CREATIVECOMMONS.html
+
+ install -D -m 755 debian/tmp/usr/share/kde4/apps/pykde4/pykdeuic4.py \
+ debian/python-kde4-dev/usr/bin/pykdeuic4
+
+##
+
+binary: binary-arch binary-indep
+
+binary-arch: build install
+ $(MAKE) -f debian/rules DH_OPTIONS=-s binary-common
+
+binary-indep: build install
+ $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
+
+binary-common:
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs
+ dh_installdocs
+ dh_installexamples
+ dh_installman
+ dh_pycentral
+ dh_link
+ dh_strip
+ dh_compress
+ dh_fixperms
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+
+##
+
+.PHONY: build clean install binary binary-arch binary-indep binary-common
Property changes on: branches/kde4/packages/kdebindings/debian/rules
___________________________________________________________________
Name: svn:executable
+ *
More information about the pkg-kde-commits
mailing list