1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/packages/ubuntu-gutsy/jython-webstack/debian/rules Sat Nov 15 02:33:55 2008 +0100
1.3 @@ -0,0 +1,57 @@
1.4 +#!/usr/bin/make -f
1.5 +
1.6 +# Uncomment this to turn on verbose mode.
1.7 +#export DH_VERBOSE=1
1.8 +
1.9 +export DH_COMPAT=5
1.10 +
1.11 +build: build-stamp
1.12 +
1.13 +build-stamp:
1.14 + touch $@
1.15 +
1.16 +clean:
1.17 + dh_testdir
1.18 + dh_testroot
1.19 + rm -f *-stamp
1.20 + dh_clean
1.21 +
1.22 +install: build install-prereq install-pyservlet
1.23 + # Script fixing would appear here.
1.24 +
1.25 +install-prereq:
1.26 + dh_testdir
1.27 + dh_testroot
1.28 + dh_clean -k
1.29 +
1.30 +# The main WebStack libraries should be installed in the python-webstack package.
1.31 +
1.32 +install-pyservlet:
1.33 + # NOTE: To be enabled in the future, perhaps.
1.34 + #install -d $(CURDIR)/debian/jython-webstack/usr/share/java
1.35 + #cp tools/JavaServlet/classes/webstack-pyservlet.jar $(CURDIR)/debian/jython-webstack/usr/share/java/
1.36 +
1.37 +# The WebStack scripts (including Jython/Java-related scripts) should be
1.38 +# installed in the python-webstack package.
1.39 +
1.40 +# Build architecture-independent files here.
1.41 +
1.42 +binary-indep: install
1.43 + JYTHON_LIB=/usr/share/jython/jython.jar SERVLET_LIB=/usr/share/java/servlet-api.jar tools/JavaServlet/compile.sh
1.44 + dh_testdir -i
1.45 + dh_testroot -i
1.46 + #dh_pycentral -i
1.47 + dh_installdocs -i
1.48 + dh_fixperms -i
1.49 + dh_installdeb -i
1.50 + dh_gencontrol -i
1.51 + dh_md5sums -i
1.52 + dh_builddeb -i
1.53 +
1.54 +# Build architecture-dependent files here.
1.55 +
1.56 +binary-arch:
1.57 + # Empty rule for this package.
1.58 +
1.59 +binary: binary-indep binary-arch
1.60 +.PHONY: build clean binary-arch binary-indep binary install