File: rules

package info (click to toggle)
jpy 1.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 2,420 kB
  • sloc: ansic: 8,196; java: 3,617; python: 2,952; xml: 180; makefile: 162; sh: 49; javascript: 29
file content (27 lines) | stat: -rwxr-xr-x 745 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f
export JAVA_HOME=/usr/lib/jvm/default-java
export DH_VERBOSE=1

PY3VERS:=$(shell py3versions -r)

export PYBUILD_NAME=jpy
%:
	dh $@ --with python3 --buildsystem=pybuild

build-python%:
	python$* setup.py build

override_dh_auto_build: $(PYTHON3:%=build-python%)
	dh_auto_build

override_dh_auto_test:
	@echo "Tests disabled: pybuild gets paths wrong."

override_dh_auto_install:
	for p in $(PY3VERS) ; do \
                $$p setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb ; \
        done
	dh_auto_install
	find . -name '*.so' -exec chrpath -d {} \;
	# Strip build path; the libs will exist under /usr, not debian/tmp
	find . -name 'jpyconfig.properties' -exec sed -i -e 's,$(CURDIR)/debian/tmp,,g' {} \;