[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Putting AutoDockSuite test files in -test packages.



Hi all,

I have tried to separate the test files from the AutoDockSuite packages,
because they take a lot of space in an Arch:any context, but did not
manage to trigger their creation with Debhelper.

I probably have again missed something obvious. Any idea ?

Have a nice day,

-- Charles

Le Tue, Apr 08, 2008 at 02:10:20PM +0000, charles-guest@alioth.debian.org a écrit :
> Author: charles-guest
> Date: 2008-04-08 14:10:18 +0000 (Tue, 08 Apr 2008)
> New Revision: 1709
> 
> Added:
>    trunk/packages/autodocksuite/trunk/debian/autodock-test.install
>    trunk/packages/autodocksuite/trunk/debian/autodock.docs
>    trunk/packages/autodocksuite/trunk/debian/autogrid-test.dirs
>    trunk/packages/autodocksuite/trunk/debian/autogrid-test.install
>    trunk/packages/autodocksuite/trunk/debian/autogrid.docs
> Modified:
>    trunk/packages/autodocksuite/trunk/debian/changelog
>    trunk/packages/autodocksuite/trunk/debian/control
>    trunk/packages/autodocksuite/trunk/debian/rules
> Log:
> Work in progress, strangely install-indep is not called apparently...
> 
> Added: trunk/packages/autodocksuite/trunk/debian/autodock-test.install
> ===================================================================
> --- trunk/packages/autodocksuite/trunk/debian/autodock-test.install	                        (rev 0)
> +++ trunk/packages/autodocksuite/trunk/debian/autodock-test.install	2008-04-08 14:10:18 UTC (rev 1709)
> @@ -0,0 +1 @@
> +src/autodock/Tests	usr/share/autodock/Tests
> 
> Added: trunk/packages/autodocksuite/trunk/debian/autodock.docs
> ===================================================================
> --- trunk/packages/autodocksuite/trunk/debian/autodock.docs	                        (rev 0)
> +++ trunk/packages/autodocksuite/trunk/debian/autodock.docs	2008-04-08 14:10:18 UTC (rev 1709)
> @@ -0,0 +1,4 @@
> +src/autodock/AUTHORS
> +src/autodock/README
> +src/autodock/NEWS
> +src/autodock/Tests
> 
> Added: trunk/packages/autodocksuite/trunk/debian/autogrid-test.dirs
> ===================================================================
> --- trunk/packages/autodocksuite/trunk/debian/autogrid-test.dirs	                        (rev 0)
> +++ trunk/packages/autodocksuite/trunk/debian/autogrid-test.dirs	2008-04-08 14:10:18 UTC (rev 1709)
> @@ -0,0 +1 @@
> +usr/share/autogrid-tests/
> 
> Added: trunk/packages/autodocksuite/trunk/debian/autogrid-test.install
> ===================================================================
> --- trunk/packages/autodocksuite/trunk/debian/autogrid-test.install	                        (rev 0)
> +++ trunk/packages/autodocksuite/trunk/debian/autogrid-test.install	2008-04-08 14:10:18 UTC (rev 1709)
> @@ -0,0 +1 @@
> +src/autogrid/Tests/*	usr/share/autogrid-tests/
> 
> Added: trunk/packages/autodocksuite/trunk/debian/autogrid.docs
> ===================================================================
> --- trunk/packages/autodocksuite/trunk/debian/autogrid.docs	                        (rev 0)
> +++ trunk/packages/autodocksuite/trunk/debian/autogrid.docs	2008-04-08 14:10:18 UTC (rev 1709)
> @@ -0,0 +1,4 @@
> +src/autogrid/AUTHORS
> +src/autogrid/README
> +src/autogrid/NEWS
> +src/autogrid/Tests
> 
> Modified: trunk/packages/autodocksuite/trunk/debian/changelog
> ===================================================================
> --- trunk/packages/autodocksuite/trunk/debian/changelog	2008-04-08 13:44:06 UTC (rev 1708)
> +++ trunk/packages/autodocksuite/trunk/debian/changelog	2008-04-08 14:10:18 UTC (rev 1709)
> @@ -1,3 +1,14 @@
> +autodocksuite (4.0.1-4) UNRELEASED; urgency=low
> +
> +  * debian/rules:
> +    - Using dh_installdocs instead of the cp command (Closes: #472538)
> +  * debian/contol, debian/rules, debian/autodock-test.install,
> +    debian/autogrid-test.install:
> +    - Separated the test files from the main Arch:any packages into Arch:all
> +      packages.
> +
> + -- Charles Plessy <charles-debian-nospam@plessy.org>  Tue, 08 Apr 2008 20:54:42 +0900
> +
>  autodocksuite (4.0.1-3) unstable; urgency=low
>  
>    [Charles]
> 
> Modified: trunk/packages/autodocksuite/trunk/debian/control
> ===================================================================
> --- trunk/packages/autodocksuite/trunk/debian/control	2008-04-08 13:44:06 UTC (rev 1708)
> +++ trunk/packages/autodocksuite/trunk/debian/control	2008-04-08 14:10:18 UTC (rev 1709)
> @@ -38,3 +38,15 @@
>   ligand to a set of grids that describe the effect that the protein has
>   on point charges.  The effect of these forces on the ligand is then
>   analysed by the AutoDock program.
> +
> +Package: autodock-test
> +Architecture: all
> +Suggests: autodock
> +Description: Test files for AutoDock
> + This package contain the test files for the AutoDock program.
> +
> +Package: autogrid-test
> +Architecture: all
> +Suggests: autogrid
> +Description: Test files for AutoGrid
> + This package contain the test files for the AutoGrid program.
> 
> Modified: trunk/packages/autodocksuite/trunk/debian/rules
> ===================================================================
> --- trunk/packages/autodocksuite/trunk/debian/rules	2008-04-08 13:44:06 UTC (rev 1708)
> +++ trunk/packages/autodocksuite/trunk/debian/rules	2008-04-08 14:10:18 UTC (rev 1709)
> @@ -66,30 +66,24 @@
>  
>  install: install-indep install-arch
>  install-indep:
> -#	Nothing to do
> -#	dh_testdir
> -#	dh_testroot
> -#	dh_clean -k -i 
> -#	dh_installdirs -i
> -#
> -#	# Add here commands to install the indep part of the package into
> -#	# debian/<package>-doc.
> -#	#INSTALLDOC#
> -#
> -#	dh_install -i
> +	dh_testdir
> +	dh_testroot
> +	dh_clean -k -i 
> +	dh_installdirs -p autodock-test -p autogrid-test
> +	dh_install -p autodock-test -p autogrid-test
>  
>  install-arch:
>  	dh_testdir
>  	dh_testroot
> -	dh_clean -k -s 
> -	dh_installdirs -s
> +	dh_clean -k -a 
> +	dh_installdirs -a
>  
>  	# Add here commands to install the arch part of the package into 
>  	# debian/tmp.
>  	#$(MAKE) -C $$d DESTDIR=$(CURDIR)/debian/autodocksuite install
>  	for d in autodock autogrid; do \
>  		$(MAKE) -C src/$$d DESTDIR=$(CURDIR)/debian/$$d install; \
> -		cp -r src/$$d/{AUTHORS,README,NEWS,Tests} $(CURDIR)/debian/$$d/usr/share/doc/$$d ; \
> +		$(RM) $(CURDIR)/debian/$$d/usr/share/$$d/doc/Tests ;\
>  	done
>  
>  	-rmdir $(CURDIR)/debian/autodock/usr/share/doc/autodock/Tests/AutoDockTools
> @@ -99,7 +93,7 @@
>  		cat src/$$d/ChangeLog | gzip -c9 > $(CURDIR)/debian/$$d/usr/share/doc/$$d/changelog.gz ; \
>  	done
>  
> -	dh_install -s
> +	dh_install -a
>  
>  # Must not depend on anything. This is to be called by
>  # binary-arch/binary-indep
> @@ -123,7 +117,7 @@
>  	dh_builddeb
>  
>  # Build architecture independant packages using the common target.
> -#binary-indep: build-indep install-indep
> +binary-indep: build-indep install-indep
>  #	$(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
>  
>  # Build architecture dependant packages using the common target.
> @@ -131,5 +125,5 @@
>  	$(MAKE) -f debian/rules DH_OPTIONS=-s binary-common
>  
>  #binary-indep
> -binary: binary-arch
> +binary: binary-arch binary-indep
>  .PHONY: build clean binary-indep binary-arch binary install install-indep install-arch configure
> 
> 
> _______________________________________________
> debian-med-commit mailing list
> debian-med-commit@lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/debian-med-commit

-- 
Charles Plessy
http://charles.plessy.org
Wakō, Saitama, Japan


Reply to: