commit:     5e73e0ed7381f90bd98366cbfd4a1e3e29470542
Author:     Tiziano Müller <dev-zero <AT> gentoo <DOT> org>
AuthorDate: Mon Mar 21 13:44:37 2016 +0000
Commit:     Tiziano Müller <dev-zero <AT> gentoo <DOT> org>
CommitDate: Mon Mar 21 13:44:37 2016 +0000
URL:        https://gitweb.gentoo.org/dev/dev-zero.git/commit/?id=5e73e0ed

dev-libs/poco: add version bump for bug #550976, one test is still failing

 dev-libs/poco/Manifest                            |   1 +
 dev-libs/poco/files/poco-1.7.1-iodbc-incdir.patch |  13 +++
 dev-libs/poco/metadata.xml                        |  31 +++++++
 dev-libs/poco/poco-1.7.1.ebuild                   | 108 ++++++++++++++++++++++
 4 files changed, 153 insertions(+)

diff --git a/dev-libs/poco/Manifest b/dev-libs/poco/Manifest
new file mode 100644
index 0000000..fba93d5
--- /dev/null
+++ b/dev-libs/poco/Manifest
@@ -0,0 +1 @@
+DIST poco-1.7.1.tar.gz 7927255 SHA256 
6dbbc2018912ad9af6af96f605933ed91354a1e7423e5dbd04d8e9a2b2d15c05 SHA512 
55b3c4dc93111674ea72d99bcdb0e571f75423cffd9df6be114cf3e0f6fbe55be05082bc2e9e6087fef8afec542d65cbf19b739d6f3e7029b0d1bf1e707c8f9d
 WHIRLPOOL 
13e80a6242a3dd294e82f13e8bb1556e461fc93441cbad7b77461745f79eedc4749e3660c6ffd931e8bd0f25edb945e35baebdb6c0f89a9469489f4a9836041a

diff --git a/dev-libs/poco/files/poco-1.7.1-iodbc-incdir.patch 
b/dev-libs/poco/files/poco-1.7.1-iodbc-incdir.patch
new file mode 100644
index 0000000..e41d8f3
--- /dev/null
+++ b/dev-libs/poco/files/poco-1.7.1-iodbc-incdir.patch
@@ -0,0 +1,13 @@
+diff --git a/cmake/FindODBC.cmake b/cmake/FindODBC.cmake
+index 9e229ed..5d79c7e 100644
+--- a/cmake/FindODBC.cmake
++++ b/cmake/FindODBC.cmake
+@@ -16,7 +16,7 @@
+ find_path(ODBC_INCLUDE_DIRECTORIES 
+       NAMES sql.h
+       HINTS
+-      /usr/include
++      /usr/include/iodbc
+       /usr/include/odbc
+       /usr/local/include
+       /usr/local/include/odbc

diff --git a/dev-libs/poco/metadata.xml b/dev-libs/poco/metadata.xml
new file mode 100644
index 0000000..929b5dc
--- /dev/null
+++ b/dev-libs/poco/metadata.xml
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>[email protected]</email>
+               <name>Thomas Sachau (Tommy[D])</name>
+       </maintainer>
+       <maintainer type="project">
+               <email>[email protected]</email>
+               <name>Gentoo C++ Project</name>
+       </maintainer>
+       <longdescription>
+POCO, the C++ Portable Components, is a collection of open source
+C++ class libraries that simplify and accelerate the development of
+network-centric, portable applications in C++. The libraries integrate
+perfectly with the C++ Standard Library and fill many of the functional
+gaps left open by it. Their modular and efficient design and implementation
+makes the C++ Portable Components extremely well suited for embedded
+development, an area where the C++ programming language is becoming
+increasingly popular, due to its suitability for both low-level (device
+I/O, interrupt handlers, etc.) and high-level object-oriented development.
+Of course, POCO is also ready for enterprise-level challenges.
+
+The POCO libraries free developers from re-inventing the wheel, and allow
+them to spend their time on more worthwhile areas, such as getting things
+done quickly and working on the features that make their application unique.
+</longdescription>
+       <upstream>
+               <remote-id type="sourceforge">poco</remote-id>
+       </upstream>
+</pkgmetadata>

diff --git a/dev-libs/poco/poco-1.7.1.ebuild b/dev-libs/poco/poco-1.7.1.ebuild
new file mode 100644
index 0000000..844d784
--- /dev/null
+++ b/dev-libs/poco/poco-1.7.1.ebuild
@@ -0,0 +1,108 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit cmake-utils
+
+DESCRIPTION="C++ class libraries to simplify the development of 
network-centric, portable applications"
+HOMEPAGE="http://pocoproject.org/";
+SRC_URI="https://github.com/pocoproject/${PN}/archive/${P}-release.tar.gz -> 
${P}.tar.gz"
+LICENSE="Boost-1.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="7z apache cppparser +crypto +data examples +file2pagecompiler +json 
+pagecompiler iodbc libressl +mongodb mysql +net odbc pdf pocodoc sqlite +ssl 
test +util +xml +zip"
+REQUIRED_USE="apache? ( net util )
+       file2pagecompiler? ( pagecompiler )
+       iodbc? ( odbc )
+       mongodb? ( data )
+       mysql? ( data )
+       odbc? ( data )
+       pagecompiler? ( json net util xml )
+       pocodoc? ( cppparser util xml )
+       sqlite? ( data )
+       test? ( data? ( sqlite ) json util xml )"
+
+RDEPEND=">=dev-libs/libpcre-8.13
+       xml? ( dev-libs/expat )
+       apache? ( dev-libs/apr
+               dev-libs/apr-util
+               www-servers/apache )
+       mysql? ( virtual/mysql )
+       odbc? ( iodbc? ( dev-db/libiodbc )
+               !iodbc? ( dev-db/unixODBC ) )
+       ssl? (
+               !libressl? ( dev-libs/openssl:0 )
+               libressl? ( dev-libs/libressl )
+       )
+       sqlite? ( dev-db/sqlite:3 )
+       zip? ( sys-libs/zlib )"
+DEPEND="${DEPEND}
+       virtual/pkgconfig"
+
+S="${WORKDIR}/${PN}-${P}-release"
+
+PATCHES=( "${FILESDIR}/${P}-iodbc-incdir.patch" )
+
+src_prepare() {
+       if use test ; then
+               # ignore missing tests on experimental library
+               # 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
+               # Poco expands ~ using passwd, which does not match $HOME in 
the build environment
+               sed -i \
+                       -e '/CppUnit_addTest.*testExpand/d' \
+                       Foundation/testsuite/src/PathTest.cpp || die
+       fi
+}
+
+src_configure() {
+       local mycmakeargs=(
+               -DPOCO_UNBUNDLED=ON
+               -DENABLE_APACHECONNECTOR="$(usex apache)"
+               -DENABLE_CPPPARSER="$(usex cppparser)"
+               -DENABLE_CRYPTO="$(usex ssl)"
+               -DENABLE_DATA="$(usex data)"
+               -DENABLE_DATA_MYSQL="$(usex mysql)"
+               -DENABLE_DATA_ODBC="$(usex odbc)"
+               -DENABLE_DATA_SQLITE="$(usex sqlite)"
+               -DENABLE_JSON="$(usex util)"
+               -DENABLE_MONGODB="$(usex mongodb)"
+               -DENABLE_NET="$(usex net)"
+               -DENABLE_NETSSL="$(usex ssl)"
+               -DENABLE_NETSSL_WIN=OFF
+               -DENABLE_PAGECOMPILER="$(usex pagecompiler)"
+               -DENABLE_PAGECOMPILER_FILE2PAGE="$(usex file2pagecompiler)"
+               -DENABLE_PDF="$(usex pdf)"
+               -DENABLE_POCODOC="$(usex pocodoc)"
+               -DENABLE_SEVENZIP="$(usex 7z)"
+               -DENABLE_TESTS="$(usex test)"
+               -DENABLE_UTIL="$(usex util)"
+               -DENABLE_XML="$(usex test)"
+               -DENABLE_ZIP="$(usex zip)"
+        )
+
+       if ! use iodbc ; then
+               sed -i -e 's|iodbc||' cmake/FindODBC.cmake || die
+       fi
+
+       cmake-utils_src_configure
+}
+
+src_install() {
+       cmake-utils_src_install
+
+       if use examples ; then
+               for sd in */samples ; do
+                       insinto /usr/share/doc/${PF}/examples/${sd%/samples}
+                       doins -r ${sd}
+               done
+               find "${D}/usr/share/doc/${PF}/examples" \
+                       -iname "*.sln" -or -iname "*.vcproj" -or \
+                       -iname "*.vmsbuild" -or -iname "*.properties" \
+                       | xargs rm
+       fi
+}

Reply via email to