File: rules

package info (click to toggle)
straw 0.27-0.1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 1,972 kB
  • ctags: 2,318
  • sloc: python: 13,450; ansic: 107; makefile: 21
file content (31 lines) | stat: -rwxr-xr-x 852 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
30
31
#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-

include /usr/share/cdbs/1/rules/simple-patchsys.mk
include /usr/share/cdbs/1/rules/debhelper.mk
DEB_PYTHON_SYSTEM=pycentral
include /usr/share/cdbs/1/class/python-distutils.mk

DEB_PYTHON_COMPILE_VERSION = $(shell pyversions -vr)
DEB_INSTALL_MANPAGES_straw := debian/straw.1

DEB_PYTHON_INSTALL_ARGS_ALL += \
	--disable-modules-check \
	--disable-schemas-install \
	--prefix=/usr \
	--with-gconf-schema-file-dir=/usr/share/gconf/schemas \
	 --install-lib=/usr/lib/straw

#binary-install/straw::
#	dh_pycentral -pstraw

binary-post-install/straw::
	dh_install debian/straw.xpm usr/share/straw
	# Install this, upstream doesn't currently
	dh_install data/straw.schemas usr/share/gconf/schemas
	dh_gconf

clean::
	rm -rf build
	rm -f src/eggtray/trayicon.c
	-find . -name '*.pyc' -exec rm {} \;