[med-svn] [cluster3] 08/13: d/rules: short dh
Andreas Tille
tille at debian.org
Thu Sep 14 14:36:23 UTC 2017
This is an automated email from the git hooks/post-receive script.
tille pushed a commit to branch master
in repository cluster3.
commit 04db1846c48658a112ef84053b109cbf13c10899
Author: Andreas Tille <tille at debian.org>
Date: Thu Sep 14 15:23:06 2017 +0200
d/rules: short dh
---
debian/changelog | 1 +
debian/cluster3.examples | 1 +
debian/cluster3.manpages | 2 +-
debian/rules | 145 +++++++----------------------------------------
debian/xcluster3.1 | 26 +++++++++
5 files changed, 48 insertions(+), 127 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 5100a43..336866b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,7 @@ cluster3 (1.53-1) UNRELEASED; urgency=medium
* Move packaging from SVN to Git
* Standards-Version: 4.1.0 (no changes needed)
* debhelper 10
+ * d/rules: short dh
-- Andreas Tille <tille at debian.org> Thu, 14 Sep 2017 15:00:42 +0200
diff --git a/debian/cluster3.examples b/debian/cluster3.examples
new file mode 100644
index 0000000..0bbe99e
--- /dev/null
+++ b/debian/cluster3.examples
@@ -0,0 +1 @@
+example/*
diff --git a/debian/cluster3.manpages b/debian/cluster3.manpages
index f388a64..360a5c6 100644
--- a/debian/cluster3.manpages
+++ b/debian/cluster3.manpages
@@ -1 +1 @@
-cluster3.1
+debian/*cluster3.1
diff --git a/debian/rules b/debian/rules
index 2d86de8..c33805e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,68 +1,31 @@
#!/usr/bin/make -f
# -*- makefile -*-
-# Sample debian/rules that uses debhelper.
-# GNU copyright 1997 to 1999 by Joey Hess.
-#
-# Modified to make a template file for a multi-binary package with separated
-# build-arch and build-indep targets by Bill Allombert 2001
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
-
-# This has to be exported to make some magic below work.
-export DH_OPTIONS
+include /usr/share/dpkg/default.mk
# 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)
-CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
-CFLAGS:=$(shell dpkg-buildflags --get CFLAGS)
-CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS)
-LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)
-
-CFLAGS += -Wall -g -fPIC
-
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
- CFLAGS += -O0
-else
- CFLAGS += -O2
-endif
-ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
- INSTALL_PROGRAM += -s
-endif
+%:
+ dh $@
-#Architecture
-
-configure: configure-stamp
-configure-stamp:
- cp -f /usr/share/misc/config.sub config.sub
- cp -f /usr/share/misc/config.guess config.guess
- touch configure-stamp
-
-build-arch: build-arch-stamp-nox build-arch-clean build-arch-stamp-x cluster3.1 xcluster3.1
-build-arch-stamp-nox: configure
- # Add here commands to compile the arch part of the package.
+override_dh_auto_configure:
+ # build nox version first
CFLAGS="$(CFLAGS)" ./configure -C --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --without-x
$(MAKE) CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)"
cp src/cluster cluster.nox
- touch build-arch-stamp-nox
-
-build-arch-stamp-x: configure
+ # now configure X version
CFLAGS="$(CFLAGS)" ./configure -C --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --with-x
- $(MAKE) CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)"
- cp src/cluster cluster.x
- touch build-arch-stamp-x
-# in order to build build-arch-stamp-x after build-arch-stamp-nox
-# any object file needs to be cleaned
-build-arch-clean: configure
- $(MAKE) clean
+override_dh_auto_build-arch:
+ # $(MAKE) CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)"
+ dh_auto_build
+ cp src/cluster cluster.x
-install-arch-perl: install-arch-perl-stamp
-install-arch-perl-stamp:
- #error with prefix defined: perl Makefile.PL prefix=$(CURDIR)/debian/cluster3/usr/
+override_dh_auto_build-indep:
+ #error with prefix defined: perl Makefile.PL prefix=$(CURDIR)/debian/$(DEB_SOURCE)/usr/
perl Makefile.PL INSTALL_BASE=$(CURDIR)/debian/cluster3/usr/
make
make test
@@ -74,84 +37,14 @@ cluster3.1: debian/cluster3.sgml
xcluster3.1: debian/xcluster3.sgml
docbook-to-man $< > $@
-build-indep: build-indep-stamp
-build-indep-stamp:
-
- # Add here commands to compile the indep part of the package.
- touch build-indep-stamp
-
-clean:
- dh_testdir
- dh_testroot
- rm -f build-arch-stamp* build-indep-stamp #CONFIGURE-STAMP#
-
- # Add here commands to clean up after the build process.
- [ ! -f Makefile ] || $(MAKE) clean
-
- -find . -name .deps -a -type d | xargs rm -rf
-
- dh_clean config.status config.cache config.sub config.guess src/*.o X11/*.o src/cluster X11/cluster cluster3.1 xcluster3.1 src/Makefile src/Makefile.old X11/Makefile Makefile
-
-install: install-indep install-arch
-install-indep:
- dh_testdir -i
- dh_testroot -i
- dh_prep -i
- dh_installdirs -i
-
- # Add here commands to install the indep part of the package into
- # debian/<package>-doc.
- #INSTALLDOC#
-
- dh_install -i
-
-install-arch: build-arch install-arch-perl
- dh_testdir -a
- dh_testroot -a
- dh_prep -a
- dh_installdirs -a
-
- # Add here commands to install the arch part of the package into
- # debian/tmp.
- cp cluster.x $(CURDIR)/debian/cluster3/usr/bin/xcluster3
- cp cluster.nox $(CURDIR)/debian/cluster3/usr/bin/cluster3
- cp doc/* $(CURDIR)/debian/cluster3/usr/share/doc/cluster3
- cp -r example $(CURDIR)/debian/cluster3/usr/share/cluster3
- dh_install -s
-
-# Must not depend on anything. This is to be called by
-# binary-arch/binary-indep
-# in another 'make' thread.
-binary-common:
- dh_testdir
- dh_testroot
- dh_installchangelogs ChangeLog
- dh_installdocs
- dh_installmenu
- dh_installman cluster3.1 xcluster3.1
- dh_link
- dh_strip
- dh_compress
- dh_fixperms
- dh_perl
-# dh_python
- dh_makeshlibs
- dh_installdeb
- dh_shlibdeps
- dh_gencontrol
- dh_md5sums
- dh_builddeb
-# Build architecture independant packages using the common target.
-binary-indep: build-indep install-indep
- $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
-
-# Build architecture dependant packages using the common target.
-binary-arch: build-arch install-arch
- $(MAKE) -f debian/rules DH_OPTIONS=-a binary-common
-
-binary: binary-arch
+override_dh_clean:
+ dh_clean src/*.o X11/*.o src/cluster X11/cluster src/Makefile src/Makefile.old X11/Makefile Makefile
-.PHONY: build build-arch clean binary-indep binary-arch binary install install-indep install-arch
+override_dh_install:
+ dh_install
+ mv cluster.x $(CURDIR)/debian/$(DEB_SOURCE)/usr/bin/xcluster3
+ mv cluster.nox $(CURDIR)/debian/$(DEB_SOURCE)/usr/bin/cluster3
+ cp doc/* $(CURDIR)/debian/$(DEB_SOURCE)/usr/share/doc/$(DEB_SOURCE)
get-orig-source:
mkdir -p ../tarballs
diff --git a/debian/xcluster3.1 b/debian/xcluster3.1
new file mode 100644
index 0000000..95060e0
--- /dev/null
+++ b/debian/xcluster3.1
@@ -0,0 +1,26 @@
+.TH "CLUSTER3" "1"
+.SH "NAME"
+xcluster3 \(em Eisen-clustering of microarray data
+.SH "SYNOPSIS"
+.PP
+\fBxcluster3\fR
+.SH "DESCRIPTION"
+.PP
+xcluster3 is the Motif-based X-interface of the Linux-variant of the program cluster by Michael Eisen. It is used to cluster microarray expression data. The presentation of the data is performed by TreeView. This is a Windows program of his, for which the Linux variants TreeView and MapleView exist as Java rewrites.
+
+.SH "SEE ALSO"
+.PP
+mapletree (1), treeview (1), smile (1).
+.SH "AUTHOR"
+.PP
+This manual page was written by Steffen Moeller moeller at pzr.uni-rostock.de for
+the \fBDebian\fP system (but may be used by others). Permission is
+granted to copy, distribute and/or modify this document under
+the terms of the GNU General Public License, Version 2 any
+later version published by the Free Software Foundation.
+
+.PP
+On Debian systems, the complete text of the GNU General Public
+License can be found in /usr/share/common-licenses/GPL.
+
+.\" created by instant / docbook-to-man
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/cluster3.git
More information about the debian-med-commit
mailing list