[med-svn] [Git][med-team/wtdbg2][master] Enable installation to different target location

Andreas Tille gitlab at salsa.debian.org
Thu Apr 2 11:18:03 BST 2020



Andreas Tille pushed to branch master at Debian Med / wtdbg2


Commits:
1f3ec74b by Andreas Tille at 2020-04-02T12:17:48+02:00
Enable installation to different target location

- - - - -


4 changed files:

- debian/control
- + debian/patches/fix_install.patch
- + debian/patches/series
- debian/rules


Changes:

=====================================
debian/control
=====================================
@@ -3,7 +3,8 @@ Maintainer: Debian Med Packaging Team <debian-med-packaging at lists.alioth.debian.
 Uploaders: Andreas Tille <tille at debian.org>
 Section: science
 Priority: optional
-Build-Depends: debhelper-compat (= 12)
+Build-Depends: debhelper-compat (= 12),
+               zlib1g-dev
 Standards-Version: 4.5.0
 Vcs-Browser: https://salsa.debian.org/med-team/wtdbg2
 Vcs-Git: https://salsa.debian.org/med-team/wtdbg2.git


=====================================
debian/patches/fix_install.patch
=====================================
@@ -0,0 +1,16 @@
+Author: Andreas Tille <tille at debian.org>
+Last-Update: Thu, 02 Apr 2020 11:37:59 +0200
+Description: Enable installation to different target location
+
+--- a/Makefile
++++ b/Makefile
+@@ -2,7 +2,9 @@ VERSION=2.5
+ RELEASE=20190621
+ 
+ CC  := gcc
++ifeq ($(BIN),)
+ BIN := /usr/local/bin
++endif
+ 
+ ifeq (0, ${MAKELEVEL})
+ TIMESTAMP=$(shell date)


=====================================
debian/patches/series
=====================================
@@ -0,0 +1 @@
+fix_install.patch


=====================================
debian/rules
=====================================
@@ -4,15 +4,6 @@
 export LC_ALL=C.UTF-8
 
 include /usr/share/dpkg/default.mk
-# this provides:
-# DEB_SOURCE: the source package name
-# DEB_VERSION: the full version of the package (epoch + upstream vers. + revision)
-# DEB_VERSION_EPOCH_UPSTREAM: the package's version without the Debian revision
-# DEB_VERSION_UPSTREAM_REVISION: the package's version without the Debian epoch
-# DEB_VERSION_UPSTREAM: the package's upstream version
-# DEB_DISTRIBUTION: the distribution(s) listed in the current entry of debian/changelog
-# SOURCE_DATE_EPOCH: the source release date as seconds since the epoch, as
-#                    specified by <https://reproducible-builds.org/specs/source-date-epoch/>
 
 # for hardening you might like to uncomment this:
 # export DEB_BUILD_MAINT_OPTIONS=hardening=+all
@@ -20,12 +11,5 @@ include /usr/share/dpkg/default.mk
 %:
 	dh $@
 
-### When overriding auto_test make sure DEB_BUILD_OPTIONS will be respected
-#override_dh_auto_test:
-#ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
-#	do_stuff_for_testing
-#endif
-
-### If you **really** can not use uscan (even not with mode=git) use a debian/get-orig-script
-#get-orig-source:
-#	. debian/get-orig-source
+override_dh_auto_install:
+	make BIN=debian/$(DEB_SOURCE)/usr/bin install



View it on GitLab: https://salsa.debian.org/med-team/wtdbg2/-/commit/1f3ec74b3b677ae35deba1ca598c279c4e750f0c

-- 
View it on GitLab: https://salsa.debian.org/med-team/wtdbg2/-/commit/1f3ec74b3b677ae35deba1ca598c279c4e750f0c
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20200402/3043a4ef/attachment-0001.html>


More information about the debian-med-commit mailing list