[Pkg-cli-libs-commits] [taoframework] 77/91: Convert to DH7

Jo Shields directhex at moszumanska.debian.org
Mon Sep 22 08:33:23 UTC 2014


This is an automated email from the git hooks/post-receive script.

directhex pushed a commit to branch master
in repository taoframework.

commit 09128c13040bbb0097e95b6746c75b8bfe0152fe
Author: Iain Lane <laney at debian.org>
Date:   Wed Jun 29 19:35:33 2011 +0000

    Convert to DH7
---
 debian/changelog                      |   1 +
 debian/compat                         |   2 +-
 debian/rules                          | 111 +++++++---------------------------
 debian/source/format                  |   1 +
 debian/taoframework-examples.examples |   3 +-
 5 files changed, 25 insertions(+), 93 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 93606cd..1daa250 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ taoframework (2.1.svn20090801-6) UNRELEASED; urgency=low
 
   * debian/control: Add missing libx11-dev BD, needed so that dh_clideps
     generates all runtime dependencies in a clean environment. 
+  * Convert to DH7
 
  -- Iain Lane <laney at debian.org>  Wed, 29 Jun 2011 15:33:30 +0100
 
diff --git a/debian/compat b/debian/compat
index 7ed6ff8..7f8f011 100644
--- a/debian/compat
+++ b/debian/compat
@@ -1 +1 @@
-5
+7
diff --git a/debian/rules b/debian/rules
index ed29a05..94fca40 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,103 +2,34 @@
 
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
-export MONO_SHARED_DIR=$(CURDIR)
 
 UPVERSION = $(shell dpkg-parsechangelog | grep ^Vers | cut -d\  -f2 | sed 's,-.*,,' | sed 's,+.*,,')
 NEXT_UPVERSION = $(shell perl -e '$$_=pop; s/(\d+)$$/$$1+1/e; print' $(UPVERSION))
 
-configure: configure-stamp
-configure-stamp:
-	dh_testdir
-	QUILT_PATCHES=debian/patches quilt push -a || test $$? = 2
-	GACUTIL=/usr/bin/gacutil CSC=/usr/bin/mono-csc ./configure --prefix=/usr
-	touch configure-stamp
+override_dh_auto_configure:
+	dh_auto_configure -- GACUTIL=/usr/bin/gacutil CSC=/usr/bin/mono-csc
 
-build: build-stamp
-build-stamp: configure-stamp
-	dh_testdir
-	$(MAKE)
-	touch build-stamp
-	
-	#for dir in $(shell find -maxdepth 2 -wholename './Tao.*/Tao.*' -type d | grep -v '\(Cg\|Glfw\|Tests\|Windows\)'); do \
-	#  base="$${dir##*/}"; \
-	#  cp $(CURDIR)/$$dir/$$base.dll \
-	#     $(CURDIR)/$$dir/$$base.dll.config \
-	#     $(CURDIR)/build/; \
-	#  /usr/bin/monodocer --assembly:$(CURDIR)/build/$$base.dll \
-        #                     --path:$(CURDIR)/build/doc/tmp/$$base; \
-	#  pkg=$$(echo $$base | cut -f2 -d. | tr A-Z a-z); \
-	#  if [ "$$pkg" = "platform" ]; then continue; fi; \
-	#  version=$$(monodis --assembly $(CURDIR)/build/$$base.dll | sed -ne 's/Version:[[:space:]]*//p'); \
-	#  abi=$$(echo $$version | cut -f1,2 -d.); \
-	#  if [ ! -f debian/tao-$$pkg-$$abi.pc ]; then echo "Error: file debian/tao-$$pkg-$$abi.pc for tao.$$base (version $$version) not found"; exit 1; fi; \
-	#  pcversion=$$(sed -ne 's/Version:[[:space:]]*//p' debian/tao-$$pkg-$$abi.pc); \
-	#  if [ "$$version" != "$$pcversion" ]; then echo "Error: version $$pcversion in debian/tao-$$pkg-$$abi.pc does not match tao.$$base version $$version"; exit 1; fi; \
-	#  if [ ! -f debian/libtaoframework-$$pkg$$abi-cil.install ]; then echo "Error: file debian/libtaoframework-$$pkg$$abi-cil.install for tao.$$base (version $$version) not found"; exit 1; fi; \
-	#done
-
-clean:
-	dh_testdir
-	dh_testroot
-	#rm -f debian/*.config
-	rm -f build-stamp configure-stamp
-	[ ! -f Makefile ] || $(MAKE) distclean
-	rm -rf $(CURDIR)/debian/examples
-	QUILT_PATCHES=debian/patches quilt pop -a -R || test $$? = 2
-	dh_clean
-
-install: build
-	dh_testdir
-	dh_testroot
-	dh_prep
-	$(MAKE) install DESTDIR=$$(pwd)/debian/tmp
-	
-	# Copy examples contents, then clean up unwanted files
-	mkdir -p $(CURDIR)/debian/examples
-	cp -r $(CURDIR)/examples/* $(CURDIR)/debian/examples
-	find $(CURDIR)/debian/examples '(' -name bin -o -name '*.exe' \
-	  -o -name '*.dll' -o -name '*.dll.config' -o -name 'Makefile*' \
-	  -o -name '*.csproj' -o -name COPYING ')' -exec rm -f '{}' ';'
-	
-	# On Debian, we want stuff in /usr/lib/cli instead of /usr/lib/mono
-	# and we manage the GAC ourselves.
-	#mkdir debian/tmp/usr/lib/cli
-	#find debian -path '*lib/mono/tao*' | while read src; do \
-	#  dest=$$(echo "$$src" | sed s,/mono/,/cli/,); \
-	#  [ -d "$$src" ] && mkdir "$$dest"; \
-	#  [ -f "$$src" ] && cp "$$src" "$$dest" && rm -f "$$src"; \
-	#done
-	#find debian -path '*lib/pkgconfig/*.pc' | while read pc; do \
-	#  sed -i 's,/mono/,/cli/,' "$$pc"; \
-	#done
-	#rm -Rf debian/tmp/usr/lib/mono/gac
-	
-	dh_install -si --list-missing --sourcedir=debian/tmp
-	dh_installdirs
-
-binary-arch:
-	# Do nothing
-
-binary-indep: build install
-	dh_testdir
-	dh_testroot
-	dh_installcligac
-	dh_installchangelogs
-	dh_installdocs
-	dh_clifixperms
+override_dh_installexamples:
 	dh_installexamples
-	dh_installman
-	dh_link
-	dh_strip
+	find $(CURDIR)/debian/taoframework-examples/usr/share/doc \
+	'(' -name bin -o -name '*.exe' -o -name '*.dll' -o -name \
+	'*.dll.config' -o -name 'Makefile*' -o -name '*.csproj' -o \
+	-name COPYING ')' -delete
+	cp $(CURDIR)/debian/Makefile \
+	$(CURDIR)/debian/taoframework-examples/usr/share/doc/taoframework-examples/examples/
+
+override_dh_compress:
 	# please don't compress the examples, thanks
 	dh_compress -Xusr/share/doc/taoframework-examples/examples
-	dh_fixperms
-	dh_installdeb
+
+override_dh_makeclilibs:
 	dh_makeclilibs -m $(UPVERSION) -l $(NEXT_UPVERSION)
-	dh_clideps -d --exclude-moduleref=libdl.dylib --exclude-moduleref=/System/Library/Frameworks/Cocoa.framework/Cocoa --exclude-moduleref=libobjc.dylib
-	dh_gencontrol
-	dh_md5sums
-	dh_builddeb
 
-binary: binary-indep
-.PHONY: build clean binary-indep binary install configure
+override_dh_clideps:
+	dh_clideps -d \
+	--exclude-moduleref=libdl.dylib \
+	--exclude-moduleref=/System/Library/Frameworks/Cocoa.framework/Cocoa \
+	--exclude-moduleref=libobjc.dylib
+
+%:
+	dh $@ --with quilt,cli
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..d3827e7
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+1.0
diff --git a/debian/taoframework-examples.examples b/debian/taoframework-examples.examples
index 2d3d1ae..e39721e 100644
--- a/debian/taoframework-examples.examples
+++ b/debian/taoframework-examples.examples
@@ -1,2 +1 @@
-debian/examples/*
-debian/Makefile
+examples/*

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-cli-libs/packages/taoframework.git



More information about the Pkg-cli-libs-commits mailing list