File: rules

package info (click to toggle)
taskjuggler 2.4.3-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 13,156 kB
  • ctags: 3,713
  • sloc: cpp: 37,683; sh: 13,617; xml: 6,021; perl: 5,207; lisp: 538; makefile: 283; python: 258
file content (37 lines) | stat: -rwxr-xr-x 1,047 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
32
33
34
35
36
37
#!/usr/bin/make -f

FILENAME = $(DEB_SOURCE_PACKAGE)_$(DEB_UPSTREAM_VERSION).orig.tar.gz
UPFILENAME = $(DEB_SOURCE_PACKAGE)-$(shell echo $(DEB_UPSTREAM_VERSION) | sed 's/~/-/').tar.bz2
URL = http://www.taskjuggler.org/download/$(UPFILENAME)

export kde_confdir = /etc/kde3

DEB_CONFIGURE_EXTRA_FLAGS := \
	--disable-rpath \
	--with-xinerama \
	--disable-debug \
	--with-docdir=/usr/share/doc/kde/HTML/en/taskjuggler/ \
	--with-ical-support=no

%:
	dh $@

override_dh_auto_configure:
	rm TestSuite/Syntax/Errors/Timezone.tjp
	dh_auto_configure -- $(DEB_CONFIGURE_EXTRA_FLAGS)

override_dh_install:
	dh_install --list-missing

override_dh_compress:
	dh_compress -X.dcl -X.docbook -X-license -X.tag -X.sty -X.el

get-orig-source:
	@@dh_testdir
	@@[ -d ../tarballs/. ]||mkdir -p ../tarballs
	@@echo Downloading $(UPFILENAME) from $(URL) ...
	@@wget -N -nv -T10 -t3 -O ../tarballs/$(UPFILENAME) $(URL)
	@@echo Converting $(UPFILENAME) to $(FILENAME)
	@@bzcat ../tarballs/$(UPFILENAME) | gzip -9 > ../tarballs/$(FILENAME)

.PHONY: override_dh_auto_test