tags 507373 +patch
thanks

The attached patch adds a target to debian/rules that creates a libev-source
package.

Please could you consider including something along these lines in the
packaging.

-- 
Chris Butler <chr...@debian.org>
  GnuPG Key ID: 4096R/49E3ACD3
diff -urN orig/libev-3.9/debian//clean libev-3.9/debian//clean
--- orig/libev-3.9/debian//clean	1970-01-01 01:00:00.000000000 +0100
+++ libev-3.9/debian//clean	2010-06-09 00:27:17.112119925 +0100
@@ -0,0 +1 @@
+srcpkg/libev-*.tar.gz
diff -urN orig/libev-3.9/debian//control libev-3.9/debian//control
--- orig/libev-3.9/debian//control	2010-06-09 00:13:42.000000000 +0100
+++ libev-3.9/debian//control	2010-06-09 00:13:23.532120083 +0100
@@ -60,3 +60,19 @@
  same event.
  .
  libev supports select, poll, epoll, kqueue, and inotify.
+
+Package: libev-source
+Section: devel
+Architecture: all
+Description: high-performance event loop library (source)
+ libev provides a full-featured and high-performance event loop that is
+ loosely modelled after libevent. It includes relative timers, absolute
+ timers with customized rescheduling, synchronous signals, process status
+ change events, event watchers dealing with the event loop itself, file
+ watchers, and even limited support for fork events. It uses a priority
+ queue to manage timers and uses arrays as fundamental data structure. It
+ has no artificial limitations on the number of watchers waiting for the
+ same event.
+ .
+ This package provides the source code for the library, as there are some
+ applications that need a build a specialized version of it.
diff -urN orig/libev-3.9/debian//libev-source.install libev-3.9/debian//libev-source.install
--- orig/libev-3.9/debian//libev-source.install	1970-01-01 01:00:00.000000000 +0100
+++ libev-3.9/debian//libev-source.install	2010-06-09 00:05:45.752121973 +0100
@@ -0,0 +1 @@
+srcpkg/libev-*.tar.gz		/usr/src
diff -urN orig/libev-3.9/debian//rules libev-3.9/debian//rules
--- orig/libev-3.9/debian//rules	2010-06-09 00:13:42.000000000 +0100
+++ libev-3.9/debian//rules	2010-06-09 00:34:47.144606661 +0100
@@ -1,10 +1,16 @@
 #!/usr/bin/make -f
+
+version=$(shell dpkg-parsechangelog | sed -n 's/^Version: [0-9]\+:\(.*\)-[^-]\+/\1/p')
+srcpkg/libev-$(version).tar.gz:
+	mkdir -p srcpkg
+	tar czvf $@ --exclude=./srcpkg --transform s/^\./libev-$(version)/ .
+
 %:
 	dh $@
 
 include /usr/share/quilt/quilt.make
 
-build: patch build-stamp
+build: patch build-stamp srcpkg/libev-$(version).tar.gz
 build-stamp:
 	dh build --before configure
 	autoreconf -fvi

Reply via email to