[med-svn] [mach-haplotyper] 01/09: It is one of those tools that cannot be redistributed, but it can be packaged for local purposes. Other than VMD or ROSETTA, mach comes with a working watch file. We could as such auto-create the package, if some good soul only prepares a proper download script that also performes the repackaging because of the multiple topdirs.

Andreas Tille tille at debian.org
Sun Dec 10 16:50:29 UTC 2017


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

tille pushed a commit to branch master
in repository mach-haplotyper.

commit 0d335dc6d54d9d13f91e474d0026f01bbe86a314
Author: Steffen Moeller <moeller at debian.org>
Date:   Tue Feb 19 15:48:51 2013 +0000

    It is one of those tools that cannot be redistributed, but it can be packaged for local purposes. Other than VMD or ROSETTA, mach comes with a working watch file. We could as such auto-create the package, if some good soul only prepares a proper download script that also performes the repackaging because of the multiple topdirs.
---
 debian/README.Debian          |  6 ++++++
 debian/changelog              |  6 ++++++
 debian/compat                 |  1 +
 debian/control                | 17 +++++++++++++++++
 debian/copyright              | 28 ++++++++++++++++++++++++++++
 debian/docs                   |  0
 debian/mach-haplotyper.dirs   |  1 +
 debian/mach-haplotyper.links  |  1 +
 debian/mach1.1                | 12 ++++++++++++
 debian/manpages               |  1 +
 debian/patches/Makefile.patch | 43 +++++++++++++++++++++++++++++++++++++++++++
 debian/patches/series         |  1 +
 debian/rules                  | 17 +++++++++++++++++
 debian/source/format          |  1 +
 debian/watch                  |  2 ++
 15 files changed, 137 insertions(+)

diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644
index 0000000..3998ffc
--- /dev/null
+++ b/debian/README.Debian
@@ -0,0 +1,6 @@
+mach-haplotyper for Debian
+--------------------------
+
+This package cannot be redistributed.
+
+ -- Steffen Moeller <moeller at debian.org>  Tue, 19 Feb 2013 14:16:48 +0100
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..0f21f30
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,6 @@
+mach-haplotyper (1.0.18-1) UNRELEASED; urgency=low
+
+  * This package is not released. Packaging instructions are only for
+    internal use.
+
+ -- Steffen Moeller <moeller at debian.org>  Tue, 19 Feb 2013 14:16:48 +0100
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..45a4fb7
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+8
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..e9db268
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,17 @@
+Source: mach-haplotyper
+Section: non-free/science
+Priority: extra
+Maintainer: Steffen Moeller <moeller at debian.org>
+Build-Depends: debhelper (>= 8.0.0), dpkg-dev (>= 1.16.1~)
+Standards-Version: 3.9.4
+Homepage: http://www.sph.umich.edu/csg/abecasis/MACH/
+Vcs-Svn: svn://svn.debian.org/debian-med/trunk/packages/mach-haplotyper/trunk/
+Vcs-Browser: http://svn.debian.org/viewvc/debian-med/trunk/packages/mach-haplotyper/trunk/
+
+Package: mach-haplotyper
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Markov Chain based SNP haplotyper
+ Recent advancements in chip-based DNA genotyping allow to infer DNA
+ variants that are not part of the chip but known to be associated
+ with a combination of SNPs that are measured.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..acf6bb2
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,28 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: mach-haplotyper
+Source: http://www.sph.umich.edu/csg/abecasis/MACH/download/
+
+Files: *
+Copyright: <years> <put author's name and email here>
+           <years> <likewise for another author>
+License:
+ not redistributable
+
+Files: debian/*
+Copyright: 2013 Steffen Moeller <moeller at debian.org>
+License: GPL-2+
+ This package is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+ .
+ This package is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..e69de29
diff --git a/debian/mach-haplotyper.dirs b/debian/mach-haplotyper.dirs
new file mode 100644
index 0000000..e772481
--- /dev/null
+++ b/debian/mach-haplotyper.dirs
@@ -0,0 +1 @@
+usr/bin
diff --git a/debian/mach-haplotyper.links b/debian/mach-haplotyper.links
new file mode 100644
index 0000000..2693165
--- /dev/null
+++ b/debian/mach-haplotyper.links
@@ -0,0 +1 @@
+usr/share/man/man1/mach1.1 usr/share/man/man1/thunder.1
diff --git a/debian/mach1.1 b/debian/mach1.1
new file mode 100644
index 0000000..db42e3d
--- /dev/null
+++ b/debian/mach1.1
@@ -0,0 +1,12 @@
+.\"                                      Hey, EMACS: -*- nroff -*-
+.TH MACH-HAPLOTYPER 1 "February 19, 2013"
+.SH NAME
+mach \- haplotyping and imputation of SNPs
+.SH SYNOPSIS
+.B mach1
+.br
+.B thunder
+.SH DESCRIPTION
+Some good soul please provide a man page for MACH.
+.SH SEE ALSO
+.BR http://www.sph.umich.edu/csg/abecasis/MACH
diff --git a/debian/manpages b/debian/manpages
new file mode 100644
index 0000000..a5a7625
--- /dev/null
+++ b/debian/manpages
@@ -0,0 +1 @@
+debian/mach1.1
diff --git a/debian/patches/Makefile.patch b/debian/patches/Makefile.patch
new file mode 100644
index 0000000..ace1fb6
--- /dev/null
+++ b/debian/patches/Makefile.patch
@@ -0,0 +1,43 @@
+Index: mach-haplotyper-1.0.18/Makefile
+===================================================================
+--- mach-haplotyper-1.0.18.orig/Makefile
++++ mach-haplotyper-1.0.18/Makefile
+@@ -16,7 +16,7 @@
+ # 
+ # CFLAGS=-O2 -I./libsrc/ -I./mach1 
+ # 
+-CFLAGS=-O2 -static -I./libsrc -I./mach1 -D__ZLIB_AVAILABLE__  -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE
++CFLAGS +=-O2 -I./libsrc -I./mach1 -D__ZLIB_AVAILABLE__  -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE
+ 
+ # executable file names and locations 
+ BINDIR = executables
+@@ -89,10 +89,10 @@
+ 
+ # dependencies for executables 
+ $(MACH) : $(LIBFILE) $(MACHOBJ) $(BINDIR)
+-	$(CXX) $(CFLAGS) -o $@ $(MACHOBJ) $(LIBFILE) -lm -lz
++	$(CXX) $(LDFLAGS) $(CFLAGS) -o $@ $(MACHOBJ) $(LIBFILE) -lm -lz
+ 
+ $(THUNDER) : $(LIBFILE) $(THUNDEROBJ) $(BINDIR)
+-	$(CXX) $(CFLAGS) -o $@ $(THUNDEROBJ) $(LIBFILE) -lm -lz
++	$(CXX) $(LDFLAGS) $(CFLAGS) -o $@ $(THUNDEROBJ) $(LIBFILE) -lm -lz
+ 
+ $(BINDIR) :
+ 	mkdir $(BINDIR)
+@@ -142,13 +142,13 @@
+ 	cd $(DISTRIBDIR); csh ../stamp MaCH
+ 
+ .c.o :
+-	$(CXX) $(CFLAGS) -o $@ -c $*.c
++	$(CXX) $(CPPFLAGS) $(CFLAGS) -o $@ -c $*.c
+ 
+ .cpp.X.o :
+-	$(CXX) $(CFLAGS) -o $@ -c $*.cpp -DVERSION=\"$(VERSION)\" -D__CHROMOSOME_X__
++	$(CXX) $(CPPFLAGS) $(CFLAGS) -o $@ -c $*.cpp -DVERSION=\"$(VERSION)\" -D__CHROMOSOME_X__
+ 
+ .cpp.o :
+-	$(CXX) $(CFLAGS) -o $@ -c $*.cpp -DVERSION=\"$(VERSION)\"
++	$(CXX) $(CPPFLAGS) $(CFLAGS) -o $@ -c $*.cpp -DVERSION=\"$(VERSION)\"
+ 
+ archive : clean
+ 	mkdir -p mach-$(VERSION)
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..5b1c0a4
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+Makefile.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..3978d2c
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,17 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+DPKG_EXPORT_BUILDFLAGS = 1
+include /usr/share/dpkg/buildflags.mk
+
+%:
+	dh $@ 
+
+override_dh_auto_build:
+	$(MAKE) all
+
+override_dh_auto_install:
+	$(MAKE) install INSTALLDIR=$(CURDIR)/debian/mach-haplotyper/usr/bin/
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..3a47c80
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://www.sph.umich.edu/csg/abecasis/MACH/download/mach\.([0-9.]*)\.source.tgz

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/mach-haplotyper.git



More information about the debian-med-commit mailing list