From: etrunko Date: Tue, 11 Dec 2007 20:39:28 +0000 (+0000) Subject: Adding python-dispatcher X-Git-Url: http://git.maemo.org/git/?p=maemo-efl;a=commitdiff_plain;h=849d75f311c4c1ace8061346ca5bdd4359cdb9d2 Adding python-dispatcher --- diff --git a/trunk/python-dispatcher/debian/changelog b/trunk/python-dispatcher/debian/changelog new file mode 100644 index 0000000..971faf3 --- /dev/null +++ b/trunk/python-dispatcher/debian/changelog @@ -0,0 +1,6 @@ +python-dispatcher (0.1.0-maemo.1) unstable; urgency=low + + * Initial release + + -- Eduardo Lima (Etrunko) Tue, 11 Dec 2007 18:05:36 -0200 + diff --git a/trunk/python-dispatcher/debian/compat b/trunk/python-dispatcher/debian/compat new file mode 100644 index 0000000..b8626c4 --- /dev/null +++ b/trunk/python-dispatcher/debian/compat @@ -0,0 +1 @@ +4 diff --git a/trunk/python-dispatcher/debian/control b/trunk/python-dispatcher/debian/control new file mode 100644 index 0000000..e147e08 --- /dev/null +++ b/trunk/python-dispatcher/debian/control @@ -0,0 +1,18 @@ +Source: python-dispatcher +Section: python +Priority: optional +Maintainer: Maemo-EFL Team +Build-Depends: debhelper (>> 4.2.0), cdbs (>= 0.4.23), python2.5-dev (>= 2.5.1-1osso2), python-setuptools (>= 0.6c3) +Standards-Version: 3.6.2.2 + +Package: python2.5-dispatcher +Section: python +Architecture: all +Provides: python-dispatcher +Depends: python2.5 (>= 2.5.1-1osso2) +Description: Python bindings for Ecore + This packages contains modules that allow you to use + Ecore(enlightenment core library) in Python programs. + + + diff --git a/trunk/python-dispatcher/debian/copyright b/trunk/python-dispatcher/debian/copyright new file mode 100644 index 0000000..e69de29 diff --git a/trunk/python-dispatcher/debian/rules b/trunk/python-dispatcher/debian/rules new file mode 100755 index 0000000..8a6370e --- /dev/null +++ b/trunk/python-dispatcher/debian/rules @@ -0,0 +1,60 @@ +#!/usr/bin/make -f + +PYVER=2.5 +PYTHON=python$(PYVER) + +p_base=$(PYTHON)-dispatcher +d_base=debian/$(p_base) + +DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH) + +ifneq (,$(findstring armel,$(DEB_BUILD_ARCH))) + CFLAGS += -DNDEBUG=1 -fomit-frame-pointer -O2 -ffast-math -funsafe-math-optimizations -fno-math-errno -fsingle-precision-constant + ifneq (,$(findstring n8x0,$(DEB_BUILD_OPTIONS))) + CFLAGS += -mfpu=vfp -mfloat-abi=softfp -mcpu=arm1136jf-s + endif + ifneq (,$(findstring n770,$(DEB_BUILD_OPTIONS))) + CFLAGS += -mcpu=arm926ej-s + endif +endif + +build: build-stamp +build-stamp: + dh_testdir + CFLAGS="$(CFLAGS)" $(PYTHON) setup.py build_ext build install --prefix /usr install_headers + touch build-stamp +clean: + dh_testdir + dh_testroot + CFLAGS="$(CFLAGS)" $(PYTHON) setup.py clean + -rm -f build-stamp + -rm -rf build dist python_dispatcher.egg-info + -rm -f dispatcher/*.py[co] + -rm -f *.py[co] + dh_clean + +install: build + dh_testdir + dh_testroot + dh_installdirs + CFLAGS="$(CFLAGS)" $(PYTHON) setup.py install --root=$(d_base) + if [ "x$(DEB_BUILD_ARCH)" = "xarmel" ]; then \ + rm -rf $(d_base)/usr/lib/$(PYTHON)/site-packages/dispatcher/*.py; \ + rm -rf $(d_base)/usr/lib/$(PYTHON)/site-packages/dispatcher/*.pyc; \ + fi + +binary: binary-arch binary-indep +binary-arch: build install +binary-indep: build install + dh_testdir + dh_testroot + dh_strip + dh_fixperms + dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +.PHONY: build install clean binary binary-arch binary-indep