From 1c988fd87eab26213d4961c9057e04a0b7854b95 Mon Sep 17 00:00:00 2001
From: Felix Geyer <fgeyer@debian.org>
Date: Sat, 22 Jul 2017 11:59:20 +0200
Subject: [PATCH] Add Python and Java to findmodules autopkgtest.

---
 debian/changelog                             | 1 +
 debian/tests/control                         | 2 ++
 debian/tests/findmodules_data/CMakeLists.txt | 4 ++--
 3 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 4a58a2add..d8bb67ed0 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,7 @@ cmake (3.9.0-1) UNRELEASED; urgency=medium
   * Refresh patches.
   * Drop ancient Breaks/Replaces/Conflicts.
   * No longer suggest eclipse and codeblocks. (Closes: #750465)
+  * Add Python and Java to findmodules autopkgtest.
 
  -- Felix Geyer <fgeyer@debian.org>  Thu, 20 Jul 2017 19:39:13 +0200
 
diff --git a/debian/tests/control b/debian/tests/control
index 737eef1b7..d10260321 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -11,6 +11,7 @@ Depends: cmake,
   libcups2-dev,
   libcurl4-openssl-dev,
   cvs,
+  default-jdk,
   doxygen,
   libexpat1-dev,
   flex,
@@ -33,6 +34,7 @@ Depends: cmake,
   libxslt1-dev,
   libopenscenegraph-dev,
   perl,
+  python3-dev,
   libphysfs-dev,
   pkg-config,
   ruby-dev,
diff --git a/debian/tests/findmodules_data/CMakeLists.txt b/debian/tests/findmodules_data/CMakeLists.txt
index 2c0eb5cc2..001ab46e5 100644
--- a/debian/tests/findmodules_data/CMakeLists.txt
+++ b/debian/tests/findmodules_data/CMakeLists.txt
@@ -1,9 +1,9 @@
 cmake_minimum_required(VERSION 3.0)
 
 foreach(VTEST ALSA Armadillo BISON Boost BZip2 Cups CURL CVS Doxygen EXPAT FLEX
-        Freetype Gettext GIF Git GnuTLS GTK2 Hg HSPELL Icotool
+        Freetype Gettext GIF Git GnuTLS GTK2 Hg HSPELL Icotool Java
         LibArchive LibLZMA LibXml2 LibXslt OpenSceneGraph Perl PhysFS
-        PkgConfig Ruby Protobuf Subversion SWIG TIFF ZLIB)
+        PkgConfig PythonInterp PythonLibs Ruby Protobuf Subversion SWIG TIFF ZLIB)
     find_package(${VTEST} REQUIRED)
 endforeach()