From: etrunko Date: Wed, 9 Jul 2008 20:49:14 +0000 (+0000) Subject: Try to guess the target system automatically. X-Git-Url: http://vcs.maemo.org/git/?p=maemo-efl;a=commitdiff_plain;h=20c1c62b1afdb87c05105fd0b78587a0dbe8a73b Try to guess the target system automatically. New package: python2.5-evas-dev. Lots of fixes in debian/rules. Added .install files. --- diff --git a/trunk/python-evas/debian/changelog b/trunk/python-evas/debian/changelog index e471270..a09506a 100644 --- a/trunk/python-evas/debian/changelog +++ b/trunk/python-evas/debian/changelog @@ -1,3 +1,30 @@ +python-evas (0.2.3-maemo5) unstable; urgency=low + + * debian/rules: Added dh_install call. + + -- Eduardo Lima (Etrunko) Wed, 09 Jul 2008 16:03:59 -0300 + +python-evas (0.2.3-maemo4) unstable; urgency=low + + * debian: Added missing python2.5-evas.install and python2.5-evas-dev.install files + * debian/control: Fixed dependency info + + -- Eduardo Lima (Etrunko) Tue, 08 Jul 2008 17:26:05 -0300 + +python-evas (0.2.3-maemo3) unstable; urgency=low + + * debian/rules: Fixed build and install targets + * debian/control: Create python2.5-evas-dev package. + + -- Eduardo Lima (Etrunko) Tue, 08 Jul 2008 16:21:24 -0300 + +python-evas (0.2.3-maemo2) unstable; urgency=low + + * debian/rules: Try to guess the target device in a bit more clever way. + * debian/control: Fix build dependency info. + + -- Eduardo Lima (Etrunko) Thu, 03 Jul 2008 16:05:28 -0300 + python-evas (0.2.3-maemo1) unstable; urgency=low * New release diff --git a/trunk/python-evas/debian/control b/trunk/python-evas/debian/control index 3307798..669bf84 100644 --- a/trunk/python-evas/debian/control +++ b/trunk/python-evas/debian/control @@ -2,15 +2,24 @@ Source: python-evas Section: python Priority: optional Maintainer: Maemo-EFL Team -Build-Depends: debhelper (>> 4.2.0), cdbs (>= 0.4.23), python2.5-dev (>= 2.5.1-1osso6), python-setuptools (>= 0.6c3) | python2.5-setuptools (>= 0.6c3), python2.5-pyrex (>= 0.9.5.1), libevas0-dev (>= 0.9.9.042-maemo3), python2.5-numeric-dev (>= 24.2-1osso4), python2.5-cython-dev +Build-Depends: debhelper (>> 4.2.0), cdbs (>= 0.4.23), python2.5-dev (>= 2.5.1-1osso6), python-setuptools (>= 0.6c3) | python2.5-setuptools (>= 0.6c3), python2.5-pyrex (>= 0.9.5.1), libevas0-dev (>= 0.9.9.042-maemo4), python2.5-numeric-dev (>= 24.2-1osso4), python2.5-cython-dev Standards-Version: 3.6.2.2 Package: python2.5-evas Section: python Architecture: any Provides: python-evas -Depends: python2.5 (>= 2.5.1-1osso6), ${shlibs:Depends} +Depends: ${shlibs:Depends}, python2.5 (>= 2.5.1-1osso6), libevas0 (>= 0.9.9.042-maemo4), libevas0-all (>= 0.9.9.042-maemo4) Description: Python bindings for enlightenment advanced canvas library This packages contains modules that allow you to use Evas(enlightenment advanced canvas library) in Python programs. +Package: python2.5-evas-dev +Section: python +Architecture: any +Provides: python-evas +Depends: libevas0-dev (>= 0.9.9.042-maemo4), python2.5-evas (= ${Source-Version}) +Description: Python bindings for enlightenment advanced canvas library development files + This packages contains modules that allow you to use + Evas(enlightenment advanced canvas library) in Python programs. + diff --git a/trunk/python-evas/debian/python2.5-evas-dev.install b/trunk/python-evas/debian/python2.5-evas-dev.install new file mode 100644 index 0000000..52e972f --- /dev/null +++ b/trunk/python-evas/debian/python2.5-evas-dev.install @@ -0,0 +1 @@ +usr/include/python2.5/evas/* diff --git a/trunk/python-evas/debian/python2.5-evas.install b/trunk/python-evas/debian/python2.5-evas.install new file mode 100644 index 0000000..52b6b3c --- /dev/null +++ b/trunk/python-evas/debian/python2.5-evas.install @@ -0,0 +1 @@ +usr/lib/python2.5/site-packages/*/* diff --git a/trunk/python-evas/debian/rules b/trunk/python-evas/debian/rules index 5c7c4e0..b8c607b 100755 --- a/trunk/python-evas/debian/rules +++ b/trunk/python-evas/debian/rules @@ -1,28 +1,55 @@ #!/usr/bin/make -f +DEB_DESTDIR=$(CURDIR)/debian/tmp + PYVER=2.5 PYTHON=python$(PYVER) -p_base=$(PYTHON)-evas -d_base=debian/$(p_base) - -DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH) +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 +ifeq ($(DEB_BUILD_ARCH),armel) + COMMON_CFLAGS=-DNDEBUG=1 -fomit-frame-pointer -O2 -ffast-math -funsafe-math-optimizations -fno-math-errno -fsingle-precision-constant + N770_CFLAGS=-mcpu=arm926ej-s + N8x0_CFLAGS=-mfpu=vfp -mfloat-abi=softfp -mcpu=arm1136jf-s + ifneq ($(DEB_BUILD_OPTIONS),) + ifneq (,$(findstring n8x0,$(DEB_BUILD_OPTIONS))) + SPECIFIC_CFLAGS=$(N8x0_CFLAGS) + else + ifneq (,$(findstring n770,$(DEB_BUILD_OPTIONS))) + SPECIFIC_CFLAGS=$(N770_CFLAGS) + endif + endif + endif + ifeq ($(SPECIFIC_CFLAGS),) + ifeq (0,$(shell test -e /etc/osso_software_version; echo $$?)) + SW_VERSION?=$(shell cat /etc/osso_software_version|cut -d_ -f2) + ifneq (,$(findstring $(SW_VERSION),OSSO1.1 2008SE DIABLO)) + SPECIFIC_CFLAGS=$(N8x0_CFLAGS) + endif + endif + ifeq ($(SPECIFIC_CFLAGS),) + # Our last hope is to look at the value returned by `sb-conf current` + SB_CURRENT?=$(shell sb-conf current|cut -d_ -f1) + ifneq (,$(findstring $(SB_CURRENT),GREGALE BORA CHINOOK DIABLO)) + ifeq ($(SB_CURRENT),GREGALE) + SPECIFIC_CFLAGS=$(N770_CFLAGS) + else + SPECIFIC_CFLAGS=$(N8x0_CFLAGS) + endif + else + COMMON_CFLAGS= + endif + endif endif endif +CFLAGS+=$(COMMON_CFLAGS) $(SPECIFIC_CFLAGS) + build: build-stamp build-stamp: dh_testdir touch evas/evas.*.pyx - CFLAGS="$(CFLAGS)" $(PYTHON) setup.py build_ext build install --prefix /usr install_headers + CFLAGS="$(CFLAGS)" $(PYTHON) setup.py build_ext build touch build-stamp clean: dh_testdir @@ -38,18 +65,22 @@ install: build dh_testdir dh_testroot dh_installdirs - CFLAGS="$(CFLAGS)" $(PYTHON) setup.py install --root=$(d_base) + CFLAGS="$(CFLAGS)" $(PYTHON) setup.py install --root=$(DEB_DESTDIR) install_headers -d $(DEB_DESTDIR)/usr/include/$(PYTHON) if [ "x$(DEB_BUILD_ARCH)" = "xarmel" ]; then \ - rm -rf $(d_base)/usr/lib/$(PYTHON)/site-packages/evas/*.py; \ - rm -rf $(d_base)/usr/lib/$(PYTHON)/site-packages/evas/*.pyc; \ + rm -rf $(DEB_DESTDIR)/usr/lib/$(PYTHON)/site-packages/evas/*.py; \ + rm -rf $(DEB_DESTDIR)/usr/lib/$(PYTHON)/site-packages/evas/*.pyc; \ fi + dh_install --sourcedir=$(DEB_DESTDIR) --fail-missing -binary: binary-indep binary-arch -binary-indep: install -binary-arch: install +binary: binary-arch +binary-arch: build install dh_testdir dh_testroot + dh_installdocs + dh_installdebconf + dh_installchangelogs dh_strip + dh_compress dh_fixperms dh_makeshlibs dh_installdeb @@ -58,4 +89,4 @@ binary-arch: install dh_md5sums dh_builddeb -.PHONY: build install clean binary binary-indep binary-arch +.PHONY: build install clean binary binary-arch