[med-svn] r11377 - trunk/packages/fis-gtm/fis-gtm/trunk/debian

Yaroslav Halchenko yoh at alioth.debian.org
Tue Jun 19 03:55:00 UTC 2012


Author: yoh
Date: 2012-06-19 03:54:59 +0000 (Tue, 19 Jun 2012)
New Revision: 11377

Modified:
   trunk/packages/fis-gtm/fis-gtm/trunk/debian/rules
Log:
ENH: relying on Brad's patch (to be committed) provide 2nd stage build/installation

Modified: trunk/packages/fis-gtm/fis-gtm/trunk/debian/rules
===================================================================
--- trunk/packages/fis-gtm/fis-gtm/trunk/debian/rules	2012-06-19 03:54:56 UTC (rev 11376)
+++ trunk/packages/fis-gtm/fis-gtm/trunk/debian/rules	2012-06-19 03:54:59 UTC (rev 11377)
@@ -12,20 +12,19 @@
 UVERDIR := V$(UVER)_$(ARCH)
 SRCPKG := $(shell dpkg-parsechangelog | sed -n 's/^Source: //p')
 BINPKG := $(shell awk '/Package:.*[0-9]/{print $$2;}' debian/control)
+GTM_INSTALL_DIR := lib/fis-gtm/$(UVERDIR)
 
 %:
 	dh $@
 
 override_dh_auto_configure:
-	dh_auto_configure -- -DCMAKE_INSTALL_PREFIX:PATH=/usr -DGTM_INSTALL_DIR=lib/fis-gtm/$(UVERDIR)
+	dh_auto_configure -- -DCMAKE_INSTALL_PREFIX:PATH=/usr -DGTM_INSTALL_DIR=$(GTM_INSTALL_DIR)
 
-# At some point in the future, GT.M developers will support DESTDIR
-# and then it will look like:
-#override_dh_auto_install:
-#	./pro/gtminstall --utf8 default --installdir /usr/lib/fis-gtm/VERSION DESTDIR=$(CURDIR)/debian/$(BINPKG)
-
 override_dh_auto_install:
-	dh_auto_install --destdir=debian/$(BINPKG) $@
+	dh_auto_install --destdir=debian/$(BINPKG)-stage1 $@
+	cd debian/$(BINPKG)-stage1/usr/$(GTM_INSTALL_DIR) && \
+		gtm_destdir=$(CURDIR)/debian/$(BINPKG) \
+		./gtminstall --utf8 default --installdir $(CURDIR)/debian/$(BINPKG)/usr/$(GTM_INSTALL_DIR)
 
 override_dh_link:
 	echo '/usr/lib/fis-gtm/$(UVERDIR) /usr/lib/fis-gtm/current' > debian/fis-gtm.links
@@ -43,8 +42,7 @@
 
 override_dh_auto_clean:
 	dh_auto_clean
-	#for f in ./$(SRC_EXTRAS_DIR)/*; do \
-	#		rm -rf $$(basename $$f); done
+	rm -rf debian/$(BINPKG)-stage1
 	rm -f debian/fis-gtm.links
 
 override_dh_installchangelogs:




More information about the debian-med-commit mailing list