File: rules

package info (click to toggle)
transdecoder 5.0.1-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 25,824 kB
  • sloc: perl: 7,689; python: 271; sh: 101; makefile: 62
file content (49 lines) | stat: -rwxr-xr-x 1,458 bytes parent folder | download | duplicates (3)
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
38
39
40
41
42
43
44
45
46
47
48
49
#!/usr/bin/make -f

DH_VERBOSE := 1

include /usr/share/dpkg/default.mk

%:
	dh $@

override_dh_auto_clean:
	cd ./sample_data && for script in ./*/cleanme.pl; do $$($$script); done

override_dh_auto_build:

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	dh_auto_test
	cd ./sample_data && for script in ./*/cleanme.pl; do $$($$script); done
endif

override_dh_install:
	dh_install
	find debian/transdecoder -name '*.p?' | xargs sed -i \
                's=^#!/usr/local/bin/perl=#!/usr/bin/perl='
	find debian/*/usr/lib/transdecoder -type d -empty -delete

override_dh_installman:
	pod2man --section=1 --center="Transcriptome Protein Prediction" \
		--release="$(DEB_VERSION_UPSTREAM)" TransDecoder.LongOrfs > \
		debian/TransDecoder.LongOrfs.1
	pod2man --section=1 --center="Transcriptome Protein Prediction" \
		--release="$(DEB_VERSION_UPSTREAM)" TransDecoder.Predict > \
		debian/TransDecoder.Predict.1
	dh_installman

override_dh_fixperms:
	dh_fixperms
	chmod -x debian/transdecoder/usr/lib/transdecoder/PerlLib/Fasta_retriever.pm
	find debian -name Process_cmd.pm -exec chmod -x \{\} \;

override_dh_clean:
	# generated man pages
	dh_clean debian/TransDecoder.LongOrfs.1 debian/TransDecoder.Predict.1

override_dh_installdocs:
	dh_installdocs
	for pl in `grep -Rl '#![[:space:]]*/usr/bin/env[[:space:]]\+perl' debian/*/usr/*` ; do \
	    sed -i '1s?^#![[:space:]]*/usr/bin/env[[:space:]]\+perl?#!/usr/bin/perl?' $${pl} ; \
	done