# and tests requiring running DB-servers, internet connections, etc.
sed -i \
-e '/testsuite/d' \
- {Data/{MySQL,ODBC},MongoDB,Net,NetSSL_OpenSSL,PDF}/CMakeLists.txt || die
+ {Data/{MySQL,ODBC},MongoDB,Net,NetSSL_OpenSSL,PDF,Redis}/CMakeLists.txt || die
# Poco expands ~ using passwd, which does not match $HOME in the build environment
sed -i \
-e '/CppUnit_addTest.*testExpand/d' \
fi
if use mariadb ; then
- # Fix MariaDB detection
+ # Fix MariaDB detection
sed -i -e 's~/usr/include/mysql~~' \
-e 's/STATUS "Couldn/FATAL_ERROR "Couldn/' \
cmake/FindMySQL.cmake || die
else
- # Fix MySQL detection
+ # Fix MySQL detection
sed -i -e 's/mysqlclient_r/mysqlclient/' \
-e 's/STATUS "Couldn/FATAL_ERROR "Couldn/' \
cmake/FindMySQL.cmake || die
fi
+ # Add missing directory that breaks the build
+ mkdir -p Encodings/testsuite/data || die
+
cmake-utils_src_prepare
}
cmake-utils_src_configure
}
+src_test() {
+ POCO_BASE="${S}" cmake-utils_src_test
+}
+
src_install() {
cmake-utils_src_install