[bytecode] 04/09: switch to debhelper

Olivier Sallou osallou at debian.org
Tue Jun 21 08:49:55 UTC 2016


This is an automated email from the git hooks/post-receive script.

osallou pushed a commit to branch master
in repository bytecode.

commit be4eb38b5f54826452bf4e7e30b1765c627e6c65
Author: Olivier Sallou <olivier.sallou at debian.org>
Date:   Tue Jun 21 10:03:18 2016 +0200

    switch to debhelper
---
 debian/control                   |  4 ++--
 debian/libbytecode-java.jlibs    |  1 +
 debian/libbytecode-java.manpages |  1 +
 debian/rules                     | 50 ++++------------------------------------
 4 files changed, 8 insertions(+), 48 deletions(-)

diff --git a/debian/control b/debian/control
index 6868445..6ac3645 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Section: java
 Priority: optional
 Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
 Uploaders: Olivier Sallou <osallou at debian.org>           
-Build-Depends: debhelper (>= 4.0.0), default-jdk, quilt, junit, ant
+Build-Depends: debhelper (>= 9), default-jdk, quilt, junit, ant, javahelper
 Standards-Version: 3.9.6
 XS-Vcs-Browser: http://svn.debian.org/wsvn/pkg-escience/bytecode/trunk/
 XS-Vcs-Svn: svn://svn.debian.org/svn/pkg-escience/bytecode/
@@ -11,7 +11,7 @@ Homepage: http://www.biojava.org
 
 Package: libbytecode-java
 Architecture: all
-Depends: ${shlibs:Depends}, ${misc:Depends}, default-jre
+Depends: ${shlibs:Depends}, ${misc:Depends}, default-jre, ${java:Depends}
 Description: Java bytecode manipulation library
  The library presents itself as a collection of routines to manipulate Java
  bytecode. It allows for the dynamic creation of Java class files without
diff --git a/debian/libbytecode-java.jlibs b/debian/libbytecode-java.jlibs
new file mode 100644
index 0000000..42e7786
--- /dev/null
+++ b/debian/libbytecode-java.jlibs
@@ -0,0 +1 @@
+dist/bytecode*/lib/bytecode*.jar
diff --git a/debian/libbytecode-java.manpages b/debian/libbytecode-java.manpages
new file mode 100644
index 0000000..b918a89
--- /dev/null
+++ b/debian/libbytecode-java.manpages
@@ -0,0 +1 @@
+debian/bytecode.3
diff --git a/debian/rules b/debian/rules
index 74e4784..8c7abad 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,61 +9,19 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+%:
+	dh $@ --with javahelper
 
-MAKE=ant
-
-include /usr/share/quilt/quilt.make
-
-build: patch build-stamp
-
-build-stamp: 
-	dh_testdir
-	if [ ! -d demos ]; then mkdir demos; fi
-	if [ ! -d resources ]; then mkdir resources; fi
-	$(MAKE) dist
-	touch build-stamp
-
-clean: unpatch
-	dh_testdir
-	dh_testroot
-	rm -f build-stamp configure-stamp
-	-$(MAKE) clean
-	dh_clean 
-
-install: build
-	dh_testdir
-	dh_testroot
-	dh_clean
-	dh_installdirs
 
+override_dh_install:
 	# Add here commands to install the package into debian/bytecode.
-	cp dist/bytecode*/lib/bytecode*.jar $(CURDIR)/debian/libbytecode-java/usr/share/java/
+	#cp dist/bytecode*/lib/bytecode*.jar $(CURDIR)/debian/libbytecode-java/usr/share/java/
 	[ -d $(CURDIR)/debian/libbytecode-java-doc/usr/share/doc/libbytecode-java-doc/api ] || mkdir -p $(CURDIR)/debian/libbytecode-java-doc/usr/share/doc/libbytecode-java-doc/api
 	cp -r dist/bytecode-*/docs/* $(CURDIR)/debian/libbytecode-java-doc/usr/share/doc/libbytecode-java-doc/api
 
-# Build architecture-dependent files here.
-binary-arch:
-# We have nothing to do by default.
-
-# Build architecture-independent files here.
-binary-indep: build install
-	dh_testdir
-	dh_testroot
-	dh_installchangelogs 
-	dh_installdocs
-	dh_installman debian/bytecode.3
-	dh_compress
-	dh_fixperms
-	dh_installdeb
-	dh_shlibdeps
-	dh_gencontrol
-	dh_md5sums
-	dh_builddeb
 
 get-orig-source:
 	version=0.92 ; \
 	today=`date +"%Y%m%d" | tr -d '\n'` ; \
 	cd .. ; svn export svn://code.open-bio.org/biojava/bytecode/trunk bytecode-$$version.svn.$$today && GZIP=-9 tar czf bytecode_$$version.svn.$$today.orig.tar.gz bytecode-$$version.svn.$$today
 
-binary: binary-indep
-.PHONY: build clean binary-indep binary-arch binary install configure get-orig-source

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/bytecode.git



More information about the pkg-java-commits mailing list