See where *.js are installed,
 remove the duplicate cookies.js
 link prototype scriptaculous dragdrop effects (libjs-scriptaculous)

Understand the status of SOAP. Is it maintained here or is it another
   code copy? It carries version 1.5.0 in src/soap/soap.ads

Check (or remove) the get-orig-source target.

* Avoid duplication with upstream projects
   See the commented patches at the end of patch/series.

   Gprbuild is required for aggregate projects An aggregate project
   only brings some comfort and does not justify risking potential
   bootstrap problems.

   Also note that dh_ada_library would be confused because aws.gpr
   imports zlib.gpr but neither xmlada.gpr nor templates_parser.gpr.

* Avoid duplication with upstream makefiles
   Previous issue should be solved first.

   Makefile.conf does obscure things silently. For example, its
   variables are computed each time the makefile is parsed, even if
   most of the time they are immediately erased by makefile.setup. So
   we'd better override them at each run for efficiency. We would end
   up with something like the following.

BUILDER_OPTIONS := $(filter-out -j$(BUILDER_JOBS),$(BUILDER_OPTIONS)) \
                   $(foreach v, ADAFLAGS CFLAGS CPPFLAGS LDFLAGS,'$(v)=$($(v))')
# Single quotes mandatory as upstream plays with double quotes.

make_args := prefix=/usr/ TARGET=$(DEB_HOST_MULTIARCH) \
   ENABLE_SHARED=true DEFAULT_LIBRARY_TYPE=relocatable XMLADA=true \
   ASIS=true ZLIB=true IPv6=false SOCKET=$(SSL) LDAP=true DEBUG=false \
   PROCESSORS=$(BUILDER_JOBS) GPRBUILD="gnatmake $(BUILDER_OPTIONS)" \
   GPRCLEAN=gnatclean MODULES="config include ssl src tools gps"

# Rewrite the setup_target to avoid gen_setup and setup_tp.
setup-stamp:
	$(MAKE) setup_dir setup_modules setup_config gxmlada_setup gasis_setup \
	$(make_vars)
	touch $@
override_dh_auto_clean: setup-stamp
	dh_auto_clean -- $(make_vars)
override_dh_auto_build-arch: setup-stamp
	$(MAKE) $(make_vars)
