File: rules

package info (click to toggle)
model-builder 0.4.1-6.2
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch
  • size: 1,272 kB
  • ctags: 802
  • sloc: python: 3,913; fortran: 690; makefile: 19; sh: 11
file content (26 lines) | stat: -rwxr-xr-x 819 bytes parent folder | download
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
#!/usr/bin/make -f

DEB_PYTHON2_MODULE_PACKAGES=model-builder
DEB_COMPRESS_INCLUDE := .ode
DEB_COMPRESS_INCLUDE := .pdf

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/python-distutils.mk

DEB_PYTHON_INSTALL_ARGS_ALL += --install-layout=deb
SITE=$(DEB_DESTDIR)/usr/lib/python*/dist-packages/model_builder/

makebuilddir/model-builder::
	if [ -e model_builder/Docs/Quick-start.pdf ]; then \
		echo "Quick-start.pdf shouldn't be part of the tarball because of licensing issues!"; \
		exit 1; \
	fi

binary-predeb/model-builder::
	chmod 644 $(DEB_DESTDIR)/usr/share/doc/model-builder/examples/*
	chmod 644 $(SITE)/Examples/*
	grep -rl "^#!.*" $(SITE) | xargs sed -i 's/^#!.*//'
	sed -i '1s#python.*#python#' $(DEB_DESTDIR)/usr/bin/PyMB

get-orig-source:
	-uscan --upstream-version 0 --rename