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 50 51 52 53 54 55 56 57
|
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
include /usr/share/postgresql-common/pgxs_debian_control.mk
%:
dh $@ --with sphinxdoc
override_dh_auto_configure:
set -e; \
for v in $$(pg_buildext supported-versions); do \
cmake -H. -Bbuild-$$v -DWITH_DOC=ON -DPOSTGRESQL_PG_CONFIG=/usr/lib/postgresql/$$v/bin/pg_config; \
done
override_dh_auto_build:
+pg_buildext build build-%v
set -e; \
for v in $$(pg_buildext supported-versions); do \
make -C build-$$v doc; \
rm build-$$v/doc/html/en/_static/images/pgrouting.png; \
ln -s ../pgrouting.png build-$$v/doc/html/en/_static/images/pgrouting.png; \
rm build-$$v/doc/html/en/_static/images/ccbysa.png; \
ln -s ../../_images/ccbysa.png build-$$v/doc/html/en/_static/images/ccbysa.png; \
rm build-$$v/doc/html/en/_images/before_node_net1.png; \
ln -s before_node_net.png build-$$v/doc/html/en/_images/before_node_net1.png; \
done
override_dh_auto_install:
+pg_buildext install build-%v postgresql-%v-pgrouting
set -e; \
for v in $$(pg_buildext supported-versions); do \
mkdir -p debian/postgresql-$$v-pgrouting-doc/usr/share/doc/postgresql-$$v-pgrouting-doc; \
cp -r build-$$v/doc/html debian/postgresql-$$v-pgrouting-doc/usr/share/doc/postgresql-$$v-pgrouting-doc; \
mkdir -p debian/postgresql-$$v-pgrouting-doc/usr/share/doc-base; \
sed "s,PGVERSION,$$v,g" <debian/postgresql-pgrouting-doc.doc-base.in >debian/postgresql-$$v-pgrouting-doc/usr/share/doc-base/postgresql-$$v-pgrouting-doc; \
done
override_dh_auto_clean:
+pg_buildext clean build-%v
override_dh_sphinxdoc-indep:
dh_sphinxdoc -Xtheme_extras.js
override_dh_sphinxdoc-arch:
override_dh_installchangelogs:
dh_installchangelogs doc/src/changelog/2_0.rst
override_dh_lintian:
set -e; \
for v in $$(pg_buildext supported-versions); do \
mkdir -p debian/postgresql-$$v-pgrouting/usr/share/lintian/overrides; \
sed "s,PGVERSION,$$v,g" <debian/postgresql-pgrouting.lintian-overrides.in >debian/postgresql-$$v-pgrouting/usr/share/lintian/overrides/postgresql-$$v-pgrouting; \
done
dh_lintian
|