File: rules

package info (click to toggle)
soya 0.9.2-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 11,860 kB
  • ctags: 20,187
  • sloc: ansic: 13,953; python: 4,755; makefile: 16
file content (29 lines) | stat: -rwxr-xr-x 1,120 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
27
28
29
#!/usr/bin/make -f

DEB_AUTO_UPDATE_DEBIAN_CONTROL := yes

include /usr/share/cdbs/1/rules/debhelper.mk
# Including this file gets us a simple patch system.  You can just
# drop patches in debian/patches, and they will be automatically
# applied and unapplied.
include /usr/share/cdbs/1/rules/simple-patchsys.mk
include /usr/share/cdbs/1/class/python-distutils.mk



DEB_COMPRESS_EXCLUDE := .py

PYTHON_CURRENT_VER := $(shell ls -l /usr/bin/python | sed 's/^.*python\([0-9]\.[0-9]\).*$$/\1/')

binary-install/python-soya::
	find debian/python-soya/usr/share/ -type f -exec chmod -R a-x {} \;
	mkdir -p debian/python-soya/usr/share/python-soya
	mv debian/python-soya/usr/lib/python$(PYTHON_CURRENT_VER)/site-packages/soya/data/* debian/python-soya/usr/share/python-soya/
	rm -rf debian/python-soya/usr/lib/python$(PYTHON_CURRENT_VER)/site-packages/soya/data
	chmod a+x debian/python-soya/usr/lib/python2.3/site-packages/soya/_3DS2soya.py \
		debian/python-soya/usr/lib/python2.3/site-packages/soya/objmtl2soya.py \
		debian/python-soya/usr/lib/python2.3/site-packages/soya/ms3d2soya.py

clean::
	rm -rf build config.pyc