[med-svn] [parsnp] 01/05: The Python script is the main user interface

Andreas Tille tille at debian.org
Wed Apr 20 11:04:41 UTC 2016


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

tille pushed a commit to branch master
in repository parsnp.

commit 1ee2f69969688b280966089fad286a9eb6e833fe
Author: Andreas Tille <tille at debian.org>
Date:   Wed Apr 20 11:57:44 2016 +0200

    The Python script is the main user interface
---
 debian/install                                    |  1 +
 debian/links                                      |  1 +
 debian/patches/add_missing_interpreter_line.patch |  7 +++++++
 debian/patches/series                             |  1 +
 debian/rules                                      | 19 +++++++------------
 5 files changed, 17 insertions(+), 12 deletions(-)

diff --git a/debian/install b/debian/install
new file mode 100644
index 0000000..86f8f42
--- /dev/null
+++ b/debian/install
@@ -0,0 +1 @@
+Parsnp.py	usr/share/parsnp
diff --git a/debian/links b/debian/links
new file mode 100644
index 0000000..dc48797
--- /dev/null
+++ b/debian/links
@@ -0,0 +1 @@
+usr/share/parsnp/Parsnp.py	usr/bin/parsnp
diff --git a/debian/patches/add_missing_interpreter_line.patch b/debian/patches/add_missing_interpreter_line.patch
new file mode 100644
index 0000000..4e326e6
--- /dev/null
+++ b/debian/patches/add_missing_interpreter_line.patch
@@ -0,0 +1,7 @@
+--- a/Parsnp.py
++++ b/Parsnp.py
+@@ -1,3 +1,4 @@
++#!/usr/bin/python
+ # See the LICENSE file included with this software for license information.
+ 
+ import os, sys, string, getopt, random,subprocess, time, glob,operator, math, datetime,numpy #pysam
diff --git a/debian/patches/series b/debian/patches/series
index 6503e10..3569290 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@ fix_libmuscle_path.patch
 fix_setup.py
 fix_install_path.patch
 avoid_rpath.patch
+add_missing_interpreter_line.patch
diff --git a/debian/rules b/debian/rules
index 61c9484..b2a47d9 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,21 +2,16 @@
 
 # DH_VERBOSE := 1
 
-# some helpful variables - uncomment them if needed
-# shamelessly stolen from http://jmtd.net/log/awk/
-#DEBVERS        := $(shell dpkg-parsechangelog | awk '/^Version:/ {print $$2}')
-#VERSION        := $(shell echo '$(DEBVERS)' | sed -e 's/^[0-9]*://' -e 's/-.*//')
-#DEBFLAVOR      := $(shell dpkg-parsechangelog | awk '/^Distribution:/ {print $$2}')
-#DEBPKGNAME     := $(shell dpkg-parsechangelog | awk '/^Source:/ {print $$2}')
-#DEBIAN_BRANCH  := $(shell awk 'BEGIN{FS="[= ]+"} /debian-branch/ {print $$2}' debian/gbp.conf)
-#GIT_TAG        := $(subst ~,_,$(VERSION))
-
-# alternatively to manually set those variables, you can
-#  include /usr/share/dpkg/default.mk
-# and use what is set there.
+DEBPKGNAME     := $(shell dpkg-parsechangelog | awk '/^Source:/ {print $$2}')
 
 %:
 	dh $@ --with autoreconf
 
 override_dh_auto_configure:
 	dh_auto_configure -- --with-libmuscle=/usr/include/libMUSCLE-3.7
+
+override_dh_auto_install:
+	dh_auto_install
+	# The actual user interface is the Python script so move the binary to /usr/lib
+	mkdir -p debian/$(DEBPKGNAME)/usr/lib/$(DEBPKGNAME)
+	mv debian/$(DEBPKGNAME)/usr/bin/$(DEBPKGNAME) debian/$(DEBPKGNAME)/usr/lib/$(DEBPKGNAME)

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



More information about the debian-med-commit mailing list