[Pkg-xfce-commits] r68 - in goodies: . exo exo/debian

Yves-Alexis Perez corsac-guest@costa.debian.org
Tue, 26 Apr 2005 18:55:02 +0000


Author: corsac-guest
Date: 2005-04-26 18:55:01 +0000 (Tue, 26 Apr 2005)
New Revision: 68

Added:
   goodies/exo/
   goodies/exo/debian/
   goodies/exo/debian/changelog
   goodies/exo/debian/compat
   goodies/exo/debian/control
   goodies/exo/debian/copyright
   goodies/exo/debian/dirs
   goodies/exo/debian/docs
   goodies/exo/debian/libexo0.3-0.install
   goodies/exo/debian/libexo0.3-dev.install
   goodies/exo/debian/python2.3-exo0.3.examples
   goodies/exo/debian/python2.3-exo0.3.install
   goodies/exo/debian/python2.3-exo0.3.postinst
   goodies/exo/debian/python2.3-exo0.3.prerm
   goodies/exo/debian/rules
Log:
First commit of exo, a library with extensions to Xfce


Added: goodies/exo/debian/changelog
===================================================================
--- goodies/exo/debian/changelog	2005-04-26 18:36:23 UTC (rev 67)
+++ goodies/exo/debian/changelog	2005-04-26 18:55:01 UTC (rev 68)
@@ -0,0 +1,6 @@
+exo (0.3.0-1) unstable; urgency=low
+
+  * Initial Release.
+
+ -- Yves-Alexis Perez <yaperez@corsac.net>  Tue, 19 Apr 2005 21:44:36 +0200
+

Added: goodies/exo/debian/compat
===================================================================
--- goodies/exo/debian/compat	2005-04-26 18:36:23 UTC (rev 67)
+++ goodies/exo/debian/compat	2005-04-26 18:55:01 UTC (rev 68)
@@ -0,0 +1 @@
+4

Added: goodies/exo/debian/control
===================================================================
--- goodies/exo/debian/control	2005-04-26 18:36:23 UTC (rev 67)
+++ goodies/exo/debian/control	2005-04-26 18:55:01 UTC (rev 68)
@@ -0,0 +1,51 @@
+Source: exo
+Priority: optional
+Maintainer: Yves-Alexis Perez <yaperez@corsac.net>
+Build-Depends: debhelper (>= 4.0.0), libxfcegui4-dev (>= 4.2.0), gtk-doc-tools, python2.3-dev, python, python2.3-numeric, python-gtk2-dev, libstartup-notification0-dev
+Standards-Version: 3.6.1
+Section: libs
+
+Package: libexo0.3-dev
+Section: libdevel
+Architecture: any
+Depends: libexo0.3-0 (= ${Source-Version}), libxfcegui4-dev (>= 4.2.0)
+Description: Development files for libexo0.3-0
+ This package contains the headers and the static library
+ for libexo0.3-0.
+ .
+ Homepage: http://libexo.os-cillation.com/
+
+Package: libexo0.3-0
+Section: libs
+Architecture: any
+Depends: ${shlibs:Depends}
+Description: Library with extensions to Xfce (by os-cillation).
+ This package contains libexo, an extension library for Xfce
+ with focus on application development.
+ .
+ Homepage: http://libexo.os-cillation.com/
+
+Package: python-exo0.3
+Section: python
+Architecture: all
+Depends: python2.3-exo0.3 (= ${Source-Version})
+Description: Python bindings for libexo0.3-0
+ This archive contains modules that allow you to use libexo0.3
+ in Python programs. It contains the bindings for the new version
+ 0.3 of the library.
+ .
+ This package is a dependency package, which selects the right
+ package for the default Python version (currently v2.3).
+ .
+ Homepage: http://libexo.os-cillation.com/
+
+Package: python2.3-exo0.3
+Section: python
+Architecture: any
+Depends: ${shlibs:Depends}, ${python:Depends}, python2.3-gtk2, python2.3-numericDescription: Python bindings for libexo0.3-0
+ This archive contains modules that allow you to use libexo0.3
+ in Python programs. It contains the bindings for the new version
+ 0.3 of the library.
+ .
+ Homepage: http://libexo.os-cillation.com/
+

Added: goodies/exo/debian/copyright
===================================================================
--- goodies/exo/debian/copyright	2005-04-26 18:36:23 UTC (rev 67)
+++ goodies/exo/debian/copyright	2005-04-26 18:55:01 UTC (rev 68)
@@ -0,0 +1,14 @@
+This package was debianized by Yves-Alexis Perez <yaperez@corsac.net> on
+Tue, 19 Apr 2005 21:44:36 +0200.
+
+It was downloaded from http://www.os-cillation.com/
+
+Upstream Author is Benedikt Meurer <benny@xfce.org>
+
+This software is copyright (c) 2004-2005 by Benedikt Meurer, os-cillation.
+
+You are free to distribute this software under the terms of
+the GNU General Public License.
+On Debian systems, the complete text of the GNU General Public
+License can be found in the file `/usr/share/common-licenses/GPL'.
+

Added: goodies/exo/debian/dirs
===================================================================
--- goodies/exo/debian/dirs	2005-04-26 18:36:23 UTC (rev 67)
+++ goodies/exo/debian/dirs	2005-04-26 18:55:01 UTC (rev 68)
@@ -0,0 +1,2 @@
+usr/bin
+usr/sbin

Added: goodies/exo/debian/docs
===================================================================
--- goodies/exo/debian/docs	2005-04-26 18:36:23 UTC (rev 67)
+++ goodies/exo/debian/docs	2005-04-26 18:55:01 UTC (rev 68)
@@ -0,0 +1,3 @@
+NEWS
+README
+TODO

Added: goodies/exo/debian/libexo0.3-0.install
===================================================================
--- goodies/exo/debian/libexo0.3-0.install	2005-04-26 18:36:23 UTC (rev 67)
+++ goodies/exo/debian/libexo0.3-0.install	2005-04-26 18:55:01 UTC (rev 68)
@@ -0,0 +1,2 @@
+usr/lib/lib*.so.*
+usr/share/locale/*/*/*.mo

Added: goodies/exo/debian/libexo0.3-dev.install
===================================================================
--- goodies/exo/debian/libexo0.3-dev.install	2005-04-26 18:36:23 UTC (rev 67)
+++ goodies/exo/debian/libexo0.3-dev.install	2005-04-26 18:55:01 UTC (rev 68)
@@ -0,0 +1,6 @@
+usr/include/*
+usr/lib/lib*.a
+usr/lib/lib*.so
+usr/lib/pkgconfig/*
+usr/lib/*.la
+usr/share/gtk-doc/html/exo-0.3/*

Added: goodies/exo/debian/python2.3-exo0.3.examples
===================================================================
--- goodies/exo/debian/python2.3-exo0.3.examples	2005-04-26 18:36:23 UTC (rev 67)
+++ goodies/exo/debian/python2.3-exo0.3.examples	2005-04-26 18:55:01 UTC (rev 68)
@@ -0,0 +1,4 @@
+python/examples/README
+python/examples/ellipsizing.py
+python/examples/toolbars.py
+python/examples/toolbars.ui

Added: goodies/exo/debian/python2.3-exo0.3.install
===================================================================
--- goodies/exo/debian/python2.3-exo0.3.install	2005-04-26 18:36:23 UTC (rev 67)
+++ goodies/exo/debian/python2.3-exo0.3.install	2005-04-26 18:55:01 UTC (rev 68)
@@ -0,0 +1,2 @@
+usr/lib/python*.*/site-packages/*
+usr/share/pygtk/2.0/defs/*

Added: goodies/exo/debian/python2.3-exo0.3.postinst
===================================================================
--- goodies/exo/debian/python2.3-exo0.3.postinst	2005-04-26 18:36:23 UTC (rev 67)
+++ goodies/exo/debian/python2.3-exo0.3.postinst	2005-04-26 18:55:01 UTC (rev 68)
@@ -0,0 +1,33 @@
+#!/bin/bash -e
+#
+# Debian postinst script for Python x.y hierarchical modules
+# Written by Gregor Hoffleit <flight@debian.org>
+# Extended by Matthias Klose <doko@debian.org>
+# Modified by Benedikt Meurer <bm@os-cillation.de>
+#
+
+PACKAGE=`basename $0 | sed -e 's/\.[^.]*$//'`
+PV=`dpkg --listfiles $PACKAGE | sed -n -e '/^\/usr\/lib\/python.*\//{
+  s,/usr/lib/python\([0-9][0-9.]*\)/.*,\1,p
+  q
+}'`
+
+case "$1" in
+    configure|abort-upgrade|abort-remove|abort-deconfigure)
+	# Get the priority of this packages pygtk.py module
+    	pyver=`echo $PACKAGE|sed -ne 's/python\([0-9]\)\.\([0-9]\).*/\1\2/p'`
+	priority=$((100 + ${pyver:-0}))
+
+    	# Install the pygtk.py alternative
+	update-alternatives \
+	  --install /usr/lib/python$PV/site-packages/pyexo.py py${PV}exo.py \
+	  /usr/lib/python$PV/site-packages/pyexo.py.$PACKAGE $priority
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+#DEBHELPER#

Added: goodies/exo/debian/python2.3-exo0.3.prerm
===================================================================
--- goodies/exo/debian/python2.3-exo0.3.prerm	2005-04-26 18:36:23 UTC (rev 67)
+++ goodies/exo/debian/python2.3-exo0.3.prerm	2005-04-26 18:55:01 UTC (rev 68)
@@ -0,0 +1,20 @@
+#!/bin/bash -e
+#
+# Debian prerm script for Python x.y hierarchical modules
+# Written by Gregor Hoffleit <flight@debian.org>
+# Extended by Matthias Klose <doko@debian.org>
+# Modified by Benedikt Meurer <bm@os-cillation.de>
+#
+
+PACKAGE=`basename $0 | sed -e 's/\.[^.]*$//'`
+PV=`dpkg --listfiles $PACKAGE | sed -n -e '/^\/usr\/lib\/python.*\//{
+  s,/usr/lib/python\([0-9][0-9.]*\)/.*,\1,p
+  q
+}'`
+
+if [ "$1" != "upgrade" ]; then
+	update-alternatives --remove py${PV}exo.py \
+		/usr/lib/python$PV/site-packages/pyexo.py.$PACKAGE
+fi
+
+#DEBHELPER#

Added: goodies/exo/debian/rules
===================================================================
--- goodies/exo/debian/rules	2005-04-26 18:36:23 UTC (rev 67)
+++ goodies/exo/debian/rules	2005-04-26 18:55:01 UTC (rev 68)
@@ -0,0 +1,120 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# These are used for cross-compiling and for saving the configure script
+# from having to guess our platform (since we know it already)
+DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -O0
+else
+	CFLAGS += -O2
+endif
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+	INSTALL_PROGRAM += -s
+endif
+
+# determine current exo version
+EXOVERS=$(shell sed -ne 's/^Package: libexo\([0-9]\{1,\}\.[0-9]\{1,\}\)-[0-9]\{1,\}/\1/p' debian/control)
+
+# determine python version in use
+PYVERS=$(shell sed -ne 's/^Build-Depends:.*python\([0-9]\{1,\}\.[0-9]\{1,\}\)-dev.*/\1/p' debian/control)
+
+# determine library package name
+LIBRARY_PKGNAME=$(shell sed -ne 's/^Package: \(libexo[0-9]\{1,\}\.[0-9]\{1,\}-[0-9]\{1,\}\)/\1/p' debian/control)
+
+# option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so
+version=`ls exo/.libs/lib*.so.* | \
+ awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`
+major=`ls exo/.libs/lib*.so.* | \
+ awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
+
+config.status: configure
+	dh_testdir
+	# Add here commands to configure the package.
+	CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --sysconfdir=/etc --enable-final --enable-gtk-doc --enable-python
+
+
+build: build-stamp
+build-stamp:  config.status
+	dh_testdir
+
+	# Add here commands to compile the package.
+	$(MAKE)
+
+	touch build-stamp
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp 
+
+	# Add here commands to clean up after the build process.
+	-$(MAKE) distclean
+ifneq "$(wildcard /usr/share/misc/config.sub)" ""
+	cp -f /usr/share/misc/config.sub config.sub
+endif
+ifneq "$(wildcard /usr/share/misc/config.guess)" ""
+	cp -f /usr/share/misc/config.guess config.guess
+endif
+
+
+	dh_clean 
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k 
+	dh_installdirs
+
+	# Add here commands to install the package into debian/tmp
+	$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
+
+	# rename the exo gtk-docs directory to avoid conflicting -dev
+	# packages
+	(cd $(CURDIR)/debian/tmp/usr/share/gtk-doc/html \
+	 && mv exo exo-$(EXOVERS))
+
+	# move the pyexo.py away, will be managed as an alternative
+	(cd $(CURDIR)/debian/tmp/usr/lib/python$(PYVERS)/site-packages \
+	 && mv pyexo.py pyexo.py.python$(PYVERS)-exo$(EXOVERS))
+
+	# delete unused static library
+	rm -f $(CURDIR)/debian/tmp/usr/lib/python$(PYVERS)/site-packages/exo-$(EXOVERS)/_exo.a
+
+	# delete all pre-compiled python files
+	find $(CURDIR)/debian/tmp -name '*.py[co]' -exec rm -f '{}' ';'
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs ChangeLog
+	dh_installdocs
+	dh_installexamples
+	dh_install --list-missing --sourcedir=debian/tmp
+	dh_installman
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+	dh_makeshlibs
+	dh_python
+	dh_installdeb
+	dh_shlibdeps -L $(LIBRARY_PKGNAME) -l debian/$(LIBRARY_PKGNAME)/usr/lib
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install 


Property changes on: goodies/exo/debian/rules
___________________________________________________________________
Name: svn:executable
   + *