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

ebourg-guest pushed a commit to branch master
in repository libcommons-lang-java.

commit 1928ae00f7bbba690e712de3df196ccfd2086004
Author: Arnaud Vandyck <av...@debian.org>
Date:   Sat Jun 12 18:18:38 2004 +0000

    build with cdbs
---
 debian/control |   2 +-
 debian/rules   | 102 ++++++++++++++++++---------------------------------------
 2 files changed, 32 insertions(+), 72 deletions(-)

diff --git a/debian/control b/debian/control
index c724f7d..9ea9c5a 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Section: libs
 Priority: optional
 Maintainer: Debian Java Maintainers 
<pkg-java-maintainers@lists.alioth.debian.org>
 Uploaders: Ola Lundqvist <o...@debian.org>, Takashi Okamoto <t...@debian.org>, 
Stefan Gybas <sgy...@debian.org>, Arnaud Vandyck <av...@debian.org>
-Build-Depends-Indep: debhelper (>> 4.0.0), jikes-classpath, fastjar, junit (>= 
3.8.1)
+Build-Depends-Indep: debhelper (>> 4.0.0), jikes-classpath, fastjar, junit (>= 
3.8.1), cdbs, gjdoc
 Standards-Version: 3.6.1
 
 Package: libcommons-lang-java
diff --git a/debian/rules b/debian/rules
index baf1c0a..5ad2867 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,78 +1,38 @@
 #!/usr/bin/make -f
-# -*- makefile -*-
-# Sample debian/rules that uses debhelper.
-# GNU copyright 1997 to 1999 by Joey Hess.
+# debian/rules for libcommons-lang-java
 
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
-LIBRARY=commons-lang
-VERSION=2.0
-
-config.status:
-       dh_testdir
-       -mkdir classes
-       -find src -name \*.java>list.sources
-
-build: build-stamp
-
-build-stamp:  config.status
-       dh_testdir
-
-       jikes-classpath -classpath /usr/share/java/junit.jar -sourcepath src -d 
classes @list.sources 
-       fastjar -cf ${LIBRARY}-${VERSION}.jar -C classes org
-
-       touch build-stamp
-
-clean:
-       dh_testdir
-       dh_testroot
-       rm -f build-stamp 
+# This is the debhelper compatibility version to use.
+#export DH_COMPAT=4
 
-       -rm -fr classes list.sources ${LIBRARY}-${VERSION}.jar
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/rules/simple-patchsys.mk
 
-       dh_clean 
-
-install: build
-       dh_testdir
-       dh_testroot
-       dh_clean -k 
-       dh_installdirs
-
-       echo "${LIBRARY}-${VERSION}.jar usr/share/java">debian/install
-       echo "usr/share/java/${LIBRARY}-${VERSION}.jar 
usr/share/java/${LIBRARY}.jar">debian/links
-
-
-# Build architecture-dependent files here.
-binary-indep: build install
-       dh_testdir
-       dh_testroot
-       dh_installchangelogs 
-       dh_installdocs
-#      dh_installexamples
-       dh_install
-#      dh_installmenu
-#      dh_installdebconf       
-#      dh_installlogrotate
-#      dh_installemacsen
-#      dh_installpam
-#      dh_installmime
-#      dh_installinit
-#      dh_installcron
-#      dh_installinfo
-#      dh_installman
-       dh_link
-#      dh_strip
-       dh_compress
-       dh_fixperms
-#      dh_perl
-#      dh_python
-#      dh_makeshlibs
-       dh_installdeb
-       dh_shlibdeps
-       dh_gencontrol
-       dh_md5sums
-       dh_builddeb
-
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install 
+LIBRARY=commons-lang
+VERSION=2.0
+BUILD=build
+SOURCES=src/java
+DIST=dist
+DOCS=docs
+APIDOC=$(DOCS)/api
+CLASSPATH=/usr/share/java/junit.jar
+BASE_PKG=org.apache.commons.lang
+
+install/lib${LIBRARY}-java::
+       find ${SOURCES} -name \*.java | xargs\
+               jikes-classpath -classpath ${CLASSPATH}\
+         -d ${BUILD} -sourcepath ${SOURCES}
+       mkdir ${DIST}
+       fastjar -cf ${DIST}/${LIBRARY}.jar -C ${BUILD} org
+       mkdir -p ${APIDOC}
+       gjdoc -d ${APIDOC} -sourcepath ${SOURCES}\
+               ${BASE_PKG} ${BASE_PKG}.builder ${BASE_PKG}.enum\
+               ${BASE_PKG}.exception ${BASE_PKG}.math ${BASE_PKG}.time
+       install -m 644 dist/${LIBRARY}.jar 
debian/lib${LIBRARY}-java/usr/share/java/${LIBRARY}-${VERSION}.jar
+       echo "usr/share/java/${LIBRARY}-${VERSION}.jar 
usr/share/java/${LIBRARY}.jar" > debian/lib${LIBRARY}-java.links
+
+clean::
+       -rm debian/lib${LIBRARY}-java.links gjdoc_rawcomment.cache
+       -rm -fr ${DIST} ${BUILD} ${APIDOC}

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

_______________________________________________
pkg-java-commits mailing list
pkg-java-comm...@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-commits

Reply via email to