File: rules

package info (click to toggle)
cadabra2 2.4.3.2-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 78,736 kB
  • sloc: ansic: 133,450; cpp: 92,064; python: 1,530; javascript: 203; sh: 184; xml: 182; objc: 53; makefile: 51
file content (36 lines) | stat: -rwxr-xr-x 1,149 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
28
29
30
31
32
33
34
35
36
#!/usr/bin/make -f
#export DH_VERBOSE = 1

# see FEATURE AREAS in dpkg-buildflags(1)
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# see ENVIRONMENT in dpkg-buildflags(1)
# package maintainers to append CFLAGS
export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
# package maintainers to append LDFLAGS
export DEB_LDFLAGS_MAINT_APPEND = -W

export LD_LIBRARY_PATH=$(pwd)/debian/cadabra2/usr/lib/python3/dist-packages

%:
	dh $@ --buildsystem=cmake --with python3

override_dh_auto_configure:
	dh_auto_configure -- \
	-DENABLE_SYSTEM_JSONCPP=ON

# tests keep failing for me so ignoring them
override_dh_auto_test:
	@echo skipping test

override_dh_auto_install:
	dh_auto_install
	sed -i s,python3.10,python3,g debian/cadabra2/usr/bin/cadabra2
	sed -i s,site-,dist-,g debian/cadabra2/usr/bin/cadabra2
	mv debian/cadabra2/usr/lib/python3.*/site-packages/notebook/static/components debian/cadabra2/usr/share/javascript
	rmdir debian/cadabra2/usr/lib/python3.*/site-packages/notebook/static
	rmdir debian/cadabra2/usr/lib/python3.*/site-packages/notebook

override_dh_shlibdeps:
	@echo test
#	dh_shlibdeps -ldebian/cadabra2/usr/lib/python3/dist-packages