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 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107
|
#!/usr/bin/make -f
include /usr/share/dpkg/buildflags.mk
include /usr/share/dpkg/architecture.mk
export LDFLAGS += -Wl,--as-needed -Wl,-z,defs
GEANY_VERSION = $(shell pkg-config --modversion geany)
override_dh_autoreconf:
rm -rf build/cache
dh_autoreconf --as-needed
# specify libexecdir to avoid cascading geany-plugins directories in /usr/lib
override_dh_auto_configure:
dh_auto_configure -- \
--libexecdir='$${exec_prefix}/lib' \
--enable-largefile \
--enable-addons \
--enable-autoclose \
--enable-automark \
--enable-codenav \
--enable-commander \
--enable-debugger \
--enable-defineformat \
--enable-geanyctags \
--enable-geanydoc \
--enable-geanyextrasel \
--enable-geanygendoc \
--enable-geanyinsertnum \
--enable-geanylua \
--enable-geanymacro \
--enable-geanyminiscript \
--enable-geanynumberedbookmarks \
--enable-geanypg \
--enable-geanyprj \
--enable-geanyvc \
--enable-geniuspaste \
--enable-gitchangebar \
--enable-keyrecord \
--enable-latex \
--enable-lineoperations \
--enable-lipsum \
--enable-lsp \
--enable-system-jsonrpc \
--enable-markdown \
--enable-overview \
--enable-pairtaghighlighter \
--enable-pohelper \
--enable-pretty-printer \
--enable-projectorganizer \
--enable-scope \
--enable-sendmail \
--enable-shiftcolumn \
--enable-spellcheck \
--enable-tableconvert \
--enable-treebrowser \
--enable-updatechecker \
--enable-vimode \
--enable-webhelper \
--enable-workbench \
--enable-xmlsnippets
# install separate ChangeLogs for each different plugin
override_dh_installchangelogs:
for changelog in */ChangeLog; do \
[ ! -s $$changelog ] && continue; \
if [ $$changelog = po/ChangeLog ]; then \
pkg=geany-plugins-common; \
else \
pkg=geany-plugin-$$(dirname $$changelog | sed -e's/^geany//'); \
fi; \
dh_installchangelogs \
-p$$pkg \
$$changelog; \
done
dh_installchangelogs
# add geany:Version substvar to debian/*.substvars
override_dh_gencontrol:
. /usr/lib/$(DEB_HOST_MULTIARCH)/geany/debian-abi-helper && \
dh_gencontrol -- \
"-Vgeany:Version=$(GEANY_VERSION)" \
"-Vgeany:API=$${GEANY_ABI}" \
"-Vgeany:ABI=$${GEANY_ABI}"
# Don't make shlibs (false positive on pretty-printer.so
override_dh_makeshlibs:
dh_makeshlibs -n -p geany-plugins-common -V
override_dh_install:
find debian/tmp/ -name '*.pyc' -delete
dh_install
execute_after_dh_installdocs-arch:
cd $(CURDIR)/debian/geany-plugin-latex/usr/share/doc/geany-plugin-latex/ && \
ls -1 *.html | \
while read -r file; do \
iconv --from=iso-8859-1 --to=utf-8 "$$file" | \
sponge "$$file"; \
done
override_dh_missing:
dh_missing --fail-missing -Xusr/share/doc/geany-plugins/ -X.la
%:
dh $@ --with=autoreconf
|