| 1 |
|
| 2 |
|
| 3 |
export DH_VERBOSEscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/DH_VERBOSE.=1 |
| 4 |
|
| 5 |
export DEB_BUILD_MAINT_OPTIONSscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/DEB_BUILD_MAINT_OPTIONS. = hardening=+all |
| 6 |
|
| 7 |
|
| 8 |
sould |
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
%scip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/`%`().: |
| 13 |
dh $@ |
| 14 |
|
| 15 |
include /usr/share/dpkg/default.mk |
| 16 |
VERSIONscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/VERSION.=$(DEB_VERSION_UPSTREAMscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/DEB_VERSION_UPSTREAM.) |
| 17 |
RENAMEDscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/RENAMED. := cons pscan |
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
nojava_archsscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/nojava_archs. = hppa |
| 22 |
ifneq (,$(filterscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/filter. $(DEB_HOST_ARCHscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/DEB_HOST_ARCH.), $(nojava_archsscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/nojava_archs.))) |
| 23 |
export DEB_BUILD_PROFILESscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/DEB_BUILD_PROFILES. += nojava |
| 24 |
endif |
| 25 |
|
| 26 |
EMBOSS-TMPscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/EMBOSS-TMP. = $(CURDIRscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/CURDIR.)/debian/emboss_tmp |
| 27 |
EMBOSSscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/EMBOSS. = $(CURDIRscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/CURDIR.)/debian/emboss |
| 28 |
EMBOSS-TESTscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/EMBOSS-TEST. = $(CURDIRscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/CURDIR.)/debian/emboss-test |
| 29 |
EMBOSS-LIBscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/EMBOSS-LIB. = $(CURDIRscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/CURDIR.)/debian/emboss-lib |
| 30 |
|
| 31 |
CONFFLAGSscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/CONFFLAGS. = --bindir=/usr/lib/emboss |
| 32 |
CONFFLAGSscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/CONFFLAGS. += --libdir=/usr/lib/emboss/lib |
| 33 |
CONFFLAGSscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/CONFFLAGS. += --includedir=/usr/lib/emboss/include |
| 34 |
CONFFLAGSscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/CONFFLAGS. += --enable-systemlibs |
| 35 |
|
| 36 |
ifeq ($(filterscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/filter. nojava,$(DEB_BUILD_PROFILESscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/DEB_BUILD_PROFILES.)),) |
| 37 |
CONFFLAGSscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/CONFFLAGS. += --with-java=/usr/lib/jvm/default-java/include |
| 38 |
CONFFLAGSscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/CONFFLAGS. += --with-javaos=/usr/lib/jvm/default-java/include/linux |
| 39 |
endif |
| 40 |
|
| 41 |
CPPFLAGSscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/CPPFLAGS.:=$(shellscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/shell. dpkg-buildflags --get CPPFLAGS) |
| 42 |
CFLAGSscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/CFLAGS.:=$(shellscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/shell. dpkg-buildflags --get CFLAGS) |
| 43 |
|
| 44 |
DEB_LDFLAGSscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/DEB_LDFLAGS. += -lexpat |
| 45 |
DEB_LDFLAGSscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/DEB_LDFLAGS. += $(shellscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/shell. mysql_config --libs) |
| 46 |
DEB_LDFLAGSscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/DEB_LDFLAGS. += -lpq |
| 47 |
DEB_LDFLAGSscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/DEB_LDFLAGS. += $(shellscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/shell. dpkg-buildflags --get LDFLAGS) |
| 48 |
|
| 49 |
|
| 50 |
override_dh_auto_configurescip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/override_dh_auto_configure().: |
| 51 |
dh_auto_configurescip-debian debian debhelper . dh_auto_configure(). -- $(CONFFLAGSscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/CONFFLAGS.) |
| 52 |
|
| 53 |
override_dh_auto_buildscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/override_dh_auto_build().: |
| 54 |
dh_auto_buildscip-debian debian debhelper . dh_auto_build(). -- AJAX_FIXED_ROOT=\\\"/usr/share/EMBOSS\\\" CPPFLAGS="$(CPPFLAGSscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/CPPFLAGS.)" CFLAGS="$(CFLAGSscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/CFLAGS.)" LDFLAGS="$(DEB_LDFLAGSscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/DEB_LDFLAGS.)" |
| 55 |
ifeq ($(filterscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/filter. nojava,$(DEB_BUILD_PROFILESscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/DEB_BUILD_PROFILES.)),) |
| 56 |
|
| 57 |
cd jemboss/lib && make jemboss.jar |
| 58 |
cd jemboss && jar uf lib/jemboss.jar resources/version resources/*.properties |
| 59 |
endif |
| 60 |
|
| 61 |
override_dh_cleanscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/override_dh_clean().: |
| 62 |
rm -rf debian/emboss_tmp |
| 63 |
find jemboss/ -type f -name "*.class" -delete |
| 64 |
[ ! -d debian/testbackup ] || ( $(RMscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/RM.) --recursive test ; mv debian/testbackup test ) |
| 65 |
dh_cleanscip-debian debian debhelper . dh_clean(). --exclude=feattext.html~ config.status test-stamp install-stamp |
| 66 |
rm -f jemboss/runJemboss.sh |
| 67 |
rm -f jemboss/utils/makeJar.csh |
| 68 |
rm -f jemboss/lib/jemboss.jar jemboss/resources/resources.jar jemboss/lib/activation.jar |
| 69 |
find test '(' -name 'Makefile' -o -name 'Makefile.in' ')' -delete |
| 70 |
rm -f config.guess |
| 71 |
|
| 72 |
override_dh_auto_install-archscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/override_dh_auto_install-arch().: |
| 73 |
|
| 74 |
$(MAKEscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/MAKE.) -C emboss install DESTDIR=$(EMBOSS-TMPscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/EMBOSS-TMP.) |
| 75 |
|
| 76 |
|
| 77 |
cd $(EMBOSSscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/EMBOSS.)/usr/bin/ ; \ |
| 78 |
for i in $(EMBOSS-TMPscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/EMBOSS-TMP.)/usr/lib/emboss/* ; \ |
| 79 |
do ln -sf ../lib/emboss/`basename $$i` . ; \ |
| 80 |
done |
| 81 |
|
| 82 |
|
| 83 |
for i in $(RENAMEDscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/RENAMED.) ; \ |
| 84 |
do mv $(EMBOSSscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/EMBOSS.)/usr/bin/$$i $(EMBOSSscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/EMBOSS.)/usr/bin/em_$$i ; \ |
| 85 |
done |
| 86 |
|
| 87 |
|
| 88 |
$(MAKEscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/MAKE.) -C ajax install DESTDIR=$(EMBOSS-LIBscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/EMBOSS-LIB.) |
| 89 |
$(MAKEscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/MAKE.) -C nucleus install DESTDIR=$(EMBOSS-LIBscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/EMBOSS-LIB.) |
| 90 |
$(MAKEscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/MAKE.) -C plplot install DESTDIR=$(EMBOSS-LIBscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/EMBOSS-LIB.) |
| 91 |
find $(EMBOSS-LIBscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/EMBOSS-LIB.)/usr/lib -name '*.la' -exec rm {} \; |
| 92 |
|
| 93 |
override_dh_auto_install-indepscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/override_dh_auto_install-indep().: |
| 94 |
|
| 95 |
|
| 96 |
$(MAKEscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/MAKE.) -C emboss install DESTDIR=$(EMBOSS-TMPscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/EMBOSS-TMP.) |
| 97 |
ifeq ($(filterscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/filter. nojava,$(DEB_BUILD_PROFILESscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/DEB_BUILD_PROFILES.)),) |
| 98 |
$(MAKE) -C jemboss install DESTDIR=$(CURDIR)/debian/jemboss bindir=/usr/bin |
| 99 |
|
| 100 |
find debian/jemboss/usr/share/EMBOSS/jemboss/utils -type f -not -executable -name "*sh" -exec chmod a+x \{\} \; |
| 101 |
|
| 102 |
rm debian/jemboss/usr/share/EMBOSS/jemboss/LICENSE |
| 103 |
|
| 104 |
rm -f debian/jemboss/usr/share/EMBOSS/jemboss/resources/resources.jar |
| 105 |
endif |
| 106 |
|
| 107 |
|
| 108 |
$(MAKEscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/MAKE.) -C doc install DESTDIR=$(CURDIRscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/CURDIR.)/debian/emboss-doc |
| 109 |
antiword debian/emboss-doc/usr/share/EMBOSS/doc/manuals/domainatrix.doc > debian/emboss-doc/usr/share/EMBOSS/doc/manuals/domainatrix.txt |
| 110 |
|
| 111 |
uudecode -o debian/emboss-doc/usr/share/EMBOSS/doc/manuals/EMBOSS_qg.pdf debian/EMBOSS_qg_new.pdf.uu |
| 112 |
|
| 113 |
|
| 114 |
cp -a test debian/emboss-test/usr/share/EMBOSS/ |
| 115 |
sed -i "/SET emboss_tempdata/cSET emboss_tempdata /usr/share/EMBOSS/test" debian/emboss-test/usr/share/EMBOSS/test/.embossrc |
| 116 |
sed -i "/SET emboss_qadata/cSET emboss_qadata /usr/share/EMBOSS/test" debian/emboss-test/usr/share/EMBOSS/test/.embossrc |
| 117 |
mv debian/emboss-test/usr/share/EMBOSS/test/.embossrc debian/emboss-test/etc/emboss/embossrc.d/emboss-test |
| 118 |
find debian/emboss-test/usr/share/EMBOSS/test/data -executable -type f -exec chmod a-x \{\} \; |
| 119 |
find debian/emboss-test/usr/share/EMBOSS/test -type d -name CVS | xargs rm -rf |
| 120 |
find debian/emboss-test/usr/share/EMBOSS/test -type f -name .cvsignore -delete |
| 121 |
|
| 122 |
override_dh_auto_testscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/override_dh_auto_test().: |
| 123 |
ifeq (,$(filterscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/filter. nocheck,$(DEB_BUILD_OPTIONSscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/DEB_BUILD_OPTIONS.))) |
| 124 |
$(RM) test-stamp |
| 125 |
[ -d debian/testbackup ] || cp -a test debian/testbackup |
| 126 |
sed -i "/SET emboss_tempdata/cSET emboss_tempdata $(CURDIR)/test" test/.embossrc |
| 127 |
sed -i "/SET emboss_qadata/cSET emboss_qadata $(CURDIR)/test" test/.embossrc |
| 128 |
echo "SET emboss_acdroot $(CURDIR)/emboss/acd" >> test/.embossrc |
| 129 |
echo "SET emboss_data $(CURDIR)/emboss/data" >> test/.embossrc |
| 130 |
echo "SET emboss_docroot $(CURDIR)/doc" >> test/.embossrc |
| 131 |
cd test/qa && LS_COLORS='' EMBOSSRC=$(CURDIR)/test PATH=$(CURDIR)/emboss:$$PATH EMBOSS_ROOT=../../../ ./qatest.csh |
| 132 |
cat test/testdb/testdb.fasta | EMBOSS_ROOT=emboss emboss/seqret -filter |
| 133 |
endif |
| 134 |
|
| 135 |
override_dh_installchangelogsscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/override_dh_installchangelogs().: |
| 136 |
dh_installchangelogsscip-debian debian debhelper . dh_installchangelogs(). -k ChangeLog |
| 137 |
|
| 138 |
override_dh_installman-archscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/override_dh_installman-arch().: |
| 139 |
dh_installmanscip-debian debian debhelper . dh_installman(). -a -p emboss |
| 140 |
for i in $(RENAMEDscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/RENAMED.) ; \ |
| 141 |
do dh_linkscip-debian debian debhelper . dh_link(). usr/share/man/man1/$$i.1e.gz usr/share/man/man1/em_$$i.1e.gz ; \ |
| 142 |
done |
| 143 |
|
| 144 |
|
| 145 |
|
| 146 |
manpagesscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/manpages().: debian/manpages/success |
| 147 |
debian/manpages/successscip-debian debian emboss 6.6.0+dfsg-19 emboss/rules/`debian/manpages/success`().: |
| 148 |
debian/build-manpages.sh |
| 149 |
echo "The manpages have been sucessfully built" > debian/manpages/success |