[med-svn] r14240 - trunk/packages/gnuhealth/trunk/debian

Emilien Klein e2jk-guest at alioth.debian.org
Thu Jul 25 20:17:09 UTC 2013


Author: e2jk-guest
Date: 2013-07-25 20:17:09 +0000 (Thu, 25 Jul 2013)
New Revision: 14240

Modified:
   trunk/packages/gnuhealth/trunk/debian/gnuhealth-server.install
   trunk/packages/gnuhealth/trunk/debian/rules
Log:
GNU Health used to have a Makefile, but now we have to do it manually


Modified: trunk/packages/gnuhealth/trunk/debian/gnuhealth-server.install
===================================================================
--- trunk/packages/gnuhealth/trunk/debian/gnuhealth-server.install	2013-07-25 20:09:35 UTC (rev 14239)
+++ trunk/packages/gnuhealth/trunk/debian/gnuhealth-server.install	2013-07-25 20:17:09 UTC (rev 14240)
@@ -1,4 +1,3 @@
-debian/tmp/*
 debian/gnuhealth-server.conf etc/gnuhealth
 debian/database-scripts/install usr/share/dbconfig-common/scripts/gnuhealth-server
 debian/database-scripts/upgrade usr/share/dbconfig-common/scripts/gnuhealth-server

Modified: trunk/packages/gnuhealth/trunk/debian/rules
===================================================================
--- trunk/packages/gnuhealth/trunk/debian/rules	2013-07-25 20:09:35 UTC (rev 14239)
+++ trunk/packages/gnuhealth/trunk/debian/rules	2013-07-25 20:17:09 UTC (rev 14240)
@@ -17,8 +17,14 @@
 override_dh_auto_build:
 	@
 
+TRYTON_PATH:=$(shell python -c 'from distutils import sysconfig; print sysconfig.get_python_lib()')
+DESTDIR:="debian/gnuhealth-server$(TRYTON_PATH)/trytond/modules"
 override_dh_auto_install:
 	dh_auto_install
+	# GNU Health used to have a Makefile, but now we have to do it manually here
+	install -d $(DESTDIR)
+	cp -a health/ $(DESTDIR)
+	cp -a health_* $(DESTDIR)
 	# Remove the qr code module (dependency currently not satisfied in Debian)
 	find debian -name "health_qrcodes" -type d -prune -execdir rm -r \{\} \;
 	# Mark all the Python scripts non-executable
@@ -27,7 +33,7 @@
 	chmod a+x debian/gnuhealth-client.py
 	# Remove all the tests folders from the binary package
 	find debian -name "tests" -type d -prune -execdir rm -r \{\} \;
-	# Remove empty directories (locale folder of ICU module)
+	# Remove empty directories (health_who_essential_medicines/security)
 	find debian -type d -empty -delete
 
 override_dh_link:




More information about the debian-med-commit mailing list