[med-svn] r6459 - trunk/packages/gbrowse/trunk/debian
Charles Plessy
plessy at alioth.debian.org
Tue Apr 5 00:03:46 UTC 2011
Author: plessy
Date: 2011-04-05 00:03:41 +0000 (Tue, 05 Apr 2011)
New Revision: 6459
Modified:
trunk/packages/gbrowse/trunk/debian/rules
Log:
Factorise options of Build.PL in GBROWSE_BUILD_OPTIONS.
This is to make debian/rules easier to inspect, by avoiding long lines.
Modified: trunk/packages/gbrowse/trunk/debian/rules
===================================================================
--- trunk/packages/gbrowse/trunk/debian/rules 2011-04-04 23:30:04 UTC (rev 6458)
+++ trunk/packages/gbrowse/trunk/debian/rules 2011-04-05 00:03:41 UTC (rev 6459)
@@ -1,5 +1,7 @@
#!/usr/bin/make -f
+GBROWSE_BUILD_OPTIONS = --conf=/etc/gbrowse --htdocs=/usr/share/gbrowse/htdocs --tmp=/var/cache/gbrowse --databases=/usr/share/gbrowse/databases --cgibin=/usr/lib/cgi-bin/gbrowse --www-user=www-data
+
%:
dh $@
@@ -9,16 +11,16 @@
#dh_auto_build
override_dh_auto_test:
- perl Build.PL --conf=/etc/gbrowse --htdocs=/usr/share/gbrowse/htdocs --tmp=/var/cache/gbrowse --databases=/usr/share/gbrowse/databases --cgibin=/usr/lib/cgi-bin/gbrowse --www-user=www-data
+ perl Build.PL $(GBROWSE_BUILD_OPTIONS)
./Build test
./Build clean
override_dh_auto_install:
echo "Using specific install"
- perl Build.PL --conf=/etc/gbrowse --htdocs=/usr/share/gbrowse/htdocs --tmp=/var/cache/gbrowse --databases=/usr/share/gbrowse/databases --cgibin=/usr/lib/cgi-bin/gbrowse --www-user=www-data
+ perl Build.PL $(GBROWSE_BUILD_OPTIONS)
./Build --install_base=debian/gbrowse debianinstall
./Build apache_conf > debian/gbrowse/etc/gbrowse/apache2.conf
- perl Build.PL --conf=/etc/gbrowse --htdocs=/usr/share/gbrowse/htdocs --tmp=/var/cache/gbrowse --databases=/usr/share/gbrowse/databases --cgibin=/usr/lib/cgi-bin/gbrowse --www-user=www-data --installetc=y
+ perl Build.PL $(GBROWSE_BUILD_OPTIONS) --installetc=y
./Build --install_base=debian/gbrowse install_slave
cp debian/gbrowse-slave debian/gbrowse/etc/default/
mkdir -p debian/gbrowse/usr/share/perl5
More information about the debian-med-commit
mailing list