1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
#!/usr/bin/make -f
# debian/rules for libcommons-httpclient-java (uses CDBS)
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/ant.mk
#include /usr/share/cdbs/1/rules/dpatch.mk
include /usr/share/cdbs/1/rules/simple-patchsys.mk
JAVA_HOME := /usr/lib/jvm/java-gcj
DEB_JARS := junit commons-logging commons-codec
DEB_ANT_BUILD_TARGET := dist #compile doc
#DEB_INSTALL_DIRS_ALL := usr/share/java usr/share/sgml/apache/jakarta/validator
#DEB_INSTALL_DOCS_ALL := RELEASE_NOTES dist/docs/*
LIBRARY=commons-httpclient
VERSION=3.0.1
JARFILE=$(LIBRARY)-${VERSION}.jar
#debian/ssl-stub/ssl-stub.jar:
# # OK, we need the JSSE for this to compile. But we can't
# # redistribute JSSE, and can't require it for the build. So
# # this is a workaround, creating stub classes for this compilation.
# (cd debian/ssl-stub; $(ANT))
#install/lib${LIBRARY}-java::
# # Add here commands to install the package into debian/commons-httpclient.
# ${JAVA_HOME}/bin/jar cf \
# $(CURDIR)/debian/lib${LIBRARY}-java/usr/share/java/${JARFILE} \
# -C target/classes org
#
# # Build the documentation
# mkdir -p $(CURDIR)/debian/lib${PNAME}-java-doc/usr/share/doc/lib${PNAME}-java-doc/
# cp -aRf dist/docs/api $(CURDIR)/debian/lib${PNAME}-java-doc/usr/share/doc/lib${PNAME}-java-doc/
#
# dh_movefiles --sourcedir=debian/lib${PNAME}-java
|