summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Sachau <tommy@gentoo.org>2012-12-20 16:56:30 +0000
committerThomas Sachau <tommy@gentoo.org>2012-12-20 16:56:30 +0000
commit6a9acdea5ab3452e0d28e8da26977f298a9e89df (patch)
tree7ac995b080d1c5b68e472f71ea3795ea3ad14f86 /dev-libs/poco
parentDev channel bump. Use a smaller tarball and https for downloads. Remove old. (diff)
downloadhistorical-6a9acdea5ab3452e0d28e8da26977f298a9e89df.tar.gz
historical-6a9acdea5ab3452e0d28e8da26977f298a9e89df.tar.bz2
historical-6a9acdea5ab3452e0d28e8da26977f298a9e89df.zip
Version bump, fixes bug 446249
Package-Manager: portage-2.2.0_alpha149-r1/cvs/Linux x86_64 Manifest-Sign-Key: 0x35899067
Diffstat (limited to 'dev-libs/poco')
-rw-r--r--dev-libs/poco/ChangeLog8
-rw-r--r--dev-libs/poco/Manifest16
-rw-r--r--dev-libs/poco/files/1.4.5-gentoo.patch74
-rw-r--r--dev-libs/poco/poco-1.4.5.ebuild119
4 files changed, 210 insertions, 7 deletions
diff --git a/dev-libs/poco/ChangeLog b/dev-libs/poco/ChangeLog
index 36fdbe63885b..fa5fb95b44f6 100644
--- a/dev-libs/poco/ChangeLog
+++ b/dev-libs/poco/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-libs/poco
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/poco/ChangeLog,v 1.19 2012/12/20 16:12:53 tommy Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/poco/ChangeLog,v 1.20 2012/12/20 16:56:18 tommy Exp $
+
+*poco-1.4.5 (20 Dec 2012)
+
+ 20 Dec 2012; Thomas Sachau (Tommy[D]) <tommy@gentoo.org>
+ +files/1.4.5-gentoo.patch, +poco-1.4.5.ebuild:
+ Version bump, fixes bug 446249
20 Dec 2012; Thomas Sachau (Tommy[D]) <tommy@gentoo.org> poco-1.4.3_p1.ebuild:
Restrict libpcre dependency to <=dev-libs/libpcre-8.31, fixes bug 447108
diff --git a/dev-libs/poco/Manifest b/dev-libs/poco/Manifest
index fb8d32dea7ad..9acbff1ca49a 100644
--- a/dev-libs/poco/Manifest
+++ b/dev-libs/poco/Manifest
@@ -7,6 +7,7 @@ AUX 1.3.3_p1-openssl-1.patch 402 SHA256 076b0b024a225656989520b7d921e6e182f9cb7f
AUX 1.3.3_p1-unbundle_libs.patch 8075 SHA256 63ae188d12bdef000eeb33ce79b045f01d6ab5d2c112079877d1735861f3496f SHA512 18b276682c4d89a18d7dab8786b94d11942eb9deca3cdf48e0560f54680af601789ed333fc798b790b08f833ebd4aeabd746ada78a9286339e5a7e992e017ec7 WHIRLPOOL 038a1f8bdf0ea7d3e958ca89c28c19536737a1c18b0fce94b10fcf66c3346df4cc894c52e7e51fc0a44ec77bcf1f8099cbb13ad5b6dc34a27ce4e85187ea00ef
AUX 1.3.6_p2-gentoo.patch 3726 SHA256 1555ce072ac1e6ad37e1d570dfd2b0d9862aae4629425ad7443335952887e3e7 SHA512 67ec0b4c96e588d2e03ad28bd330806174216a174f750d9523a7f684c1e44539d5e028e95d0d2b578c170fb8cdb84507def947a564232ac9c1c6af6e5b446331 WHIRLPOOL 7dea5a576a2a649a392ccfb4e6cfb8dfee918d73b87631ba6bcd72e85e5686dde64cab0a6114fe17b7350e47957410b1766523ff3708c93ff768c8f60d9d02b1
AUX 1.4.3_p1-gentoo.patch 3778 SHA256 f856ef1329bc1ae5c40ef78bbc8798d1f0b0f6fbc71f2f52326954693e4d9e3e SHA512 4fd531b1be72eb92bdd3986cee2151e6244176a4d6f8fff2367bcc32b70c773b33b3407e0cce578d91796561a18101694baac5c099eb7a725ecb9e6775745d06 WHIRLPOOL adebd430e823069ea9890fa7bb975080f5ffb4751fd20f6314840660b6566fd2ddd46c2025e67ba4b1a52d74e1fd5db5b3fbf880a65ea7f16aabd58b8454c74b
+AUX 1.4.5-gentoo.patch 3198 SHA256 3beb9d686f4d09ee65764b3807a94858d64edd5b1a07821adfa31b4384790364 SHA512 f100138e529963b63cdcc77bfeefef8e9402f3622e6145de0e8b092b2ff4ce1167c9d7f16401417a6d3bf7f52a2a78546a62487d646424bf22a1c0d5633a9f9c WHIRLPOOL 063cb6e273d6103c4e44d373774c63825680baaa80d846aab34cc66f2d5cbde5d7ee18d4003be71f0ff7d1081cb37ca6ee96eb08d6829be4acbf7860e21b3f6d
AUX libpcre-8.13.patch 339 SHA256 cadb2f6099f7f23c1fd0c2a522de12ef2ad57e71effe209f951bc11ecb8f40e5 SHA512 090e9ee1694ba1b91ea2d28b5e518ebbc098c19ba0f02ad7a830de5f41a31b11aeccd2524d5412d638229a75b0ef19fa05b0d6af0e31930b533db4c11a7fa719 WHIRLPOOL 8024a825ca4754df76087906e48b8fb30d84287b48024b1f6558b19500127a8c05411c1b09b30ebb717bdde9d34c15bce8cdc1a859fde02b2150e9ebe60bd7c2
DIST poco-1.3.3-doc.tar.gz 924194 SHA256 5edcc2216807c05ba236d4d8423c05c1f4645438196816db33380a4a2f543167 SHA512 7a66db3494b8565df65e280f010ab83de8b06a80636e192dea3b1036d509a8a0b068a77bf6b7ba1a45b8a4ce78b105299011b75fcc218e074246f065a3b4a45a WHIRLPOOL 6721b9d79f290f53ef61026ed00adf52e3b39bb6743c56b1dc6bd4d4f6145f59d9358982adfa591e3e753f2147c9b6e620f6faaa87c4738d9d01767a2971a37a
DIST poco-1.3.3p1-all.tar.bz2 2011910 SHA256 9b011301f9111b21c37684fc3c2f8a85356300f003b1f827ae2de196e2c11909 SHA512 608b28b170c24576accdfbc6fce925f97f842210bfae2af0f28fd26bc3fad30e96a27b1be60c64e234ca7aaa85b5532dc70424fb6f0ba8d68f5e2f34d4047464 WHIRLPOOL 60430e6a2c93ea0f9d2ce8ccf6e00b69867053b15b508c3b8a512d970f863cea51ff4927ce7568b15c0648d36a06d5f58892f06de6c45e5acf99f9596137c6a4
@@ -14,17 +15,20 @@ DIST poco-1.3.6-all-doc.zip 1911077 SHA256 ccd0920cabfc61969f168b0fc63e3bd8a718f
DIST poco-1.3.6p2-all.tar.bz2 2321552 SHA256 290c7f80827e509642f200b766e3709ef6ace0b6efadc832c9e879ac11830ae5 SHA512 a7bfafc91a547344838e762659187f8180e7553250df03614f7ed8b06f6686700fde49e032df977142d41ebc13ecf9614779617018f6bfed71d3ca2b5884039f WHIRLPOOL cc962a0559322372cd4f281bd25b37860fcd79484561b38fe54c5db910167efdf595627a6dd0e2cffbb2b7fb6b89c164881778c72583794066088a6b232d4ae9
DIST poco-1.4.3-all-doc.zip 2118165 SHA256 23d92cb042a603a9be5afc4225efe92063f4e295d2625c7d72bb3ed3ce392188 SHA512 9af6637c067a755291bea199546abd741f8ba231501d203ceb6ea7214b3067ec4f236ce392430ab7092ba7f944d7133a7317c2b27579ddc9f63b408f5cbe1f40 WHIRLPOOL 5ec943d75c3b06e16916fddf8e6f2d92ae252494521a3009d4bdd2ea4d04132ea960d7f346f0e6133a098473b9c161ae772bf47b7d33807562760debe25f9fa8
DIST poco-1.4.3p1-all.tar.bz2 3005394 SHA256 8a3fd41234a8015e5c46470baa90140c7726cd7dc70d8300c655f08d71fdc35a SHA512 c8cbc8800e32f91ccc8c4c9aeaff4c813e0201792026255d80a369bcf1119407fcc1ce09fb8acb49c87a734a4b9d2d46651d19084412958bc155f8ece5d92e68 WHIRLPOOL 02eb234f624af7b8273a9c3ac5d57d941adb2eb6f45880f8358bd0e0baf170fa19c8c53b3fa7d819836b9618ed3e479d6b502abcb49ec6ac24429a7621dfa7d9
+DIST poco-1.4.5-all-doc.zip 2072054 SHA256 2c89cfc63a1913d7263400a631178c0457482e5a8944410764733508be4c4c60 SHA512 4bf6f6bd0851af83cf9941bee16619c42892c4ea27b286b681ea8ad1d18a4fd56c31501489f36c9e122bdf4ab7d190b1e642a85f504a005a8b92098f4db5120f WHIRLPOOL a78254f0db93a8cdb629d9d15a95e6e219231882ae1e224a8d145bae9bcdb77c4c2956789aaae8da27b84761b0e57c4f5236531a90906519bf3baea5dfb8fbc7
+DIST poco-1.4.5-all.tar.bz2 3128716 SHA256 e33a4a8a9bc7c696ec1e54faa56c76adf360f01506d05140952ea0e213343dd4 SHA512 ea62259bbc93a4af8523479169c182d4155332fd68bccb090cf86a31411348ea63fe406a5d1e2c897f817f0dcd2b7314430c600b23adc89caca800416858bed7 WHIRLPOOL 90d035556ec6c5bd4835a09b3f42e39fb7be4a05c431baa92f19c3a0c7df6952f82e7366b47dc4b6a7c2fedb940afb42135a2700d6f140661da20e4d3a2dfcce
EBUILD poco-1.3.3_p1.ebuild 3385 SHA256 ded40f4286a44d062686293a81171020ca6e8194a7c3d510aad347d8b4da3a9d SHA512 5a69ec536778a63206926a2f6f79383acd8e789a97179e57b7072bf35e6a86113d5ce5789a067746ed8fc0ab279f47ae54c5ba1d0dff7338db557802bfa5ff97 WHIRLPOOL c1328c7dc35b8c6c8279ebfd0f2e500072ed4d819470117a67d15d0d54dc7a91e6aed23cb0ac7632e490a7f0a53f2cf06d48853e78c278ee25a9318cab5b0eb5
EBUILD poco-1.3.6_p2.ebuild 3437 SHA256 8ee0ae8876e590e3e3db9fc60d3e07aaef5b621d38201333520638694dc671f8 SHA512 9a5ade7d6131ef41140efed27dcaea237949984deaadd97f1a88063ca2850f0d489009d56cf29c89620426fe2141d9e6095e913c8fd941307ba8a43bfe157896 WHIRLPOOL 4e2c4714be76cf0b0a76cf74f3791bd3c2e4db9fa9b1b14b2f3824eef299ef70ef8f1fbfc55451519229ef4e0a27745ced63a9bb2ff42327f84f47cc318fb440
EBUILD poco-1.4.3_p1.ebuild 3503 SHA256 babe4ee18e7c9e06edb19f8d75b10b2ad630fecdc578fda3a14470023de5a16e SHA512 decbfb01532f7d786ce74a5212d86532d838eb0fac546aa6832f858d54f5cbe891d7381180a75a6129f86f162d2d831dabdf7ef9961bacecfd0b40eb15d4d936 WHIRLPOOL f23dedd798cfc0151721eae6d2e2f6540f96a5a5b890322cb8a213845c21b18cc3a97f9bce14a9e42a0af1279c86abe280d8d24c3e03cefdefd95d73d5d16f31
-MISC ChangeLog 3328 SHA256 a16a8b008913646357cd278b7eb40e906f28db27c8fc885a3ec349e32a1f4e64 SHA512 50dd082d1fc8484da665ab9d66a4b87363818f59a29faa06bf153ce679222ee52067968ba7421c4e2dd0fbe32ead283f1cbf9d8e9ad1f82d3755a06bffb9fb9e WHIRLPOOL 17c41a26c3896c6c4c9a3a3d04aa10d8dfccb8973164fc24bd72c45a1018a1e3ca80262f0c3ad9ceb6bc3804f6ce47f5ef4a178ea33d8c752758b53f837c8045
+EBUILD poco-1.4.5.ebuild 3464 SHA256 425385b33898ef6f6b662b52d946795da5dee53a7c2890106d1212bf069cebf8 SHA512 399e2fd8cfe8fc89eee2ccbb4375aa26d22aacace82a6a125c8a3b15bf76d8c82ef671365241bf0547c8aa654d37fbb2877aa032981a929e1d285dc6fb3cd579 WHIRLPOOL 9234f8e65bd7aeb9a039ea1bf416b00947dd4f021cb1d2f6050795cb1152ff976d49b9bad20ff8df1047c5bd48c9f4e8892b36c74c599e2494b5aed85471f7bb
+MISC ChangeLog 3497 SHA256 7aa900b55260d52a9fce279d99bee534c805a375e96d8e5a1e73bb2bc5908492 SHA512 85d8b8db7376040f21e651662c1575a7d7f49339c432a14eacc4d3603494b922b3fbccd36d8fc26183be6df6b52ee11698abaf429351e66d94efacd0bc388a9f WHIRLPOOL 589d96a1f10eeb1da5d622e997d50888dc9175a9bff2d7e0e02dbfbb726e44c1aa6137a0c80f46e6de9d1295c3beb453ef5fc241fa28637fa75feb982f26dce5
MISC metadata.xml 1222 SHA256 d28bbe65a45a5d1bb144ffde4b17ea70af62e4d7432cd12fb26f43645e12ff49 SHA512 4ad4f4ff5288eccf854a488042833787906966ab047cb8009d09d15af7cbee8306d0dbe850a556a4e05209852753b2662de08ec8b0f5754361e4f8b5c8d980de WHIRLPOOL b05756d97565723de5344eb38aaf88652084df9e1285f86c45dfbd01ae7cd114bfe2d3c49c960bcbe20d0cfc8d62971b52c44944182bf2c162b1eb0991fb726a
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
-iJwEAQEIAAYFAlDTOQsACgkQG7kqcTWJkGd2GQQA0DcdjO2A6ycoSmRFLPZNTOva
-S0BMRzuc1akkZ9NZVFSsmEZDPmxBWxSXIIZjx8njSmpzo5qUm/GSFuuJKbIdRs92
-6+vJkXZO/SqlVxXhmSkjMC/aZ49tFj6HPQ+2vHS52/WFzp9l06ey8lAAcheyp5j8
-q9eGgphHe8yQqjBL5ew=
-=hY7J
+iJwEAQEIAAYFAlDTQzkACgkQG7kqcTWJkGc0fQP9G0mh149ZIB2M98sblsxYS+iy
+PWAwIaqhPHjzkxo54Fv9B8XEXwCPSoO8VUIejL73rQFzVeLI6SWABFmYwHcHDlr5
+MClArR50LhcdbCeRKSVSTQlqdlvFpfyU53L7yANAKjxJVZuiHeSYgbpjiE4wnLSN
+v2OXzmHS8RvmNLWhPfo=
+=a0td
-----END PGP SIGNATURE-----
diff --git a/dev-libs/poco/files/1.4.5-gentoo.patch b/dev-libs/poco/files/1.4.5-gentoo.patch
new file mode 100644
index 000000000000..243ee924b16b
--- /dev/null
+++ b/dev-libs/poco/files/1.4.5-gentoo.patch
@@ -0,0 +1,74 @@
+diff -Nur poco-1.4.5-all_old/components poco-1.4.5-all/components
+--- poco-1.4.5-all_old/components 2012-11-18 16:56:59.000000000 +0100
++++ poco-1.4.5-all/components 2012-12-06 12:29:07.779546771 +0100
+@@ -1,14 +1,8 @@
+-CppUnit
+ Foundation
+ XML
+ Util
+ Net
+-Crypto
+-NetSSL_OpenSSL
+ Data
+-Data/SQLite
+-Data/ODBC
+-Data/MySQL
+ Zip
+ PageCompiler
+ PageCompiler/File2Page
+diff -Nur poco-1.4.5-all_old/Data/ODBC/ODBC.make poco-1.4.5-all/Data/ODBC/ODBC.make
+--- poco-1.4.5-all_old/Data/ODBC/ODBC.make 2012-11-18 16:56:57.000000000 +0100
++++ poco-1.4.5-all/Data/ODBC/ODBC.make 2012-12-06 12:29:07.779546771 +0100
+@@ -14,9 +14,9 @@
+ ifeq (0, $(shell test -d /usr/lib/$(OSARCH)-linux-gnu; echo $$?))
+ ODBCLIBDIR = /usr/lib/$(OSARCH)-linux-gnu
+ else ifeq (0, $(shell test -d /usr/lib64; echo $$?))
+-ODBCLIBDIR = /usr/lib64
++ODBCLIBDIR = /usr/$(LIBDIR)
+ else
+-ODBCLIBDIR = /usr/lib
++ODBCLIBDIR = /usr/$(LIBDIR)
+ endif
+ endif
+
+@@ -39,10 +39,10 @@
+ CXXFLAGS += -DODBCVER=0x0300 -DNOMINMAX
+ # CYGWIN platform has its own ODBC library in /lib/w32api
+ SYSLIBS += -L/lib/w32api -lodbc32 -lodbccp32
+-else ifeq (0, $(shell test -e $(ODBCLIBDIR)/libodbc$(LIBLINKEXT); echo $$?))
++else ifeq (unixodbc, $(GENTOO_ODBC))
+ SYSLIBS += -lodbc -lodbcinst
+ COMMONFLAGS += -DPOCO_UNIXODBC
+-else ifeq (0, $(shell test -e $(ODBCLIBDIR)/libiodbc$(LIBLINKEXT); echo $$?))
++else ifeq (unixodbc, $(GENTOO_ODBC))
+ SYSLIBS += -liodbc -liodbcinst
+ COMMONFLAGS += -DPOCO_IODBC -I/usr/include/iodbc
+ else
+diff -Nur poco-1.4.5-all_old/Makefile poco-1.4.5-all/Makefile
+--- poco-1.4.5-all_old/Makefile 2012-11-18 16:57:00.000000000 +0100
++++ poco-1.4.5-all/Makefile 2012-12-06 12:29:07.779546771 +0100
+@@ -33,7 +33,7 @@
+
+ install: libexecs
+ mkdir -p $(INSTALLDIR)/include/Poco
+- mkdir -p $(INSTALLDIR)/lib
++ mkdir -p $(INSTALLDIR)/$(LIBDIR)
+ mkdir -p $(INSTALLDIR)/bin
+ for comp in $(COMPONENTS) ; do \
+ if [ -d "$(POCO_BASE)/$$comp/include" ] ; then \
+@@ -43,11 +43,11 @@
+ find $(POCO_BUILD)/$$comp/bin -perm -700 -type f -exec cp -f {} $(INSTALLDIR)/bin \; ; \
+ fi ; \
+ done
+- find $(POCO_BUILD)/lib -name "libPoco*" -type f -exec cp -f {} $(INSTALLDIR)/lib \;
+- find $(POCO_BUILD)/lib -name "libPoco*" -type l -exec cp -Rf {} $(INSTALLDIR)/lib \;
++ find $(POCO_BUILD)/$(LIBDIR) -name "libPoco*" -type f -exec cp -f {} $(INSTALLDIR)/$(LIBDIR) \;
++ find $(POCO_BUILD)/$(LIBDIR) -name "libPoco*" -type l -exec cp -Rf {} $(INSTALLDIR)/$(LIBDIR) \;
+
+-libexecs = Foundation-libexec XML-libexec Util-libexec Net-libexec Crypto-libexec NetSSL_OpenSSL-libexec Data-libexec Data/SQLite-libexec Data/ODBC-libexec Data/MySQL-libexec Zip-libexec PageCompiler-libexec PageCompiler/File2Page-libexec
+-tests = Foundation-tests XML-tests Util-tests Net-tests Crypto-tests NetSSL_OpenSSL-tests Data-tests Data/SQLite-tests Data/ODBC-tests Data/MySQL-tests Zip-tests
++libexecs = Foundation-libexec XML-libexec Util-libexec Net-libexec Data-libexec Zip-libexec PageCompiler-libexec
++tests = Foundation-tests XML-tests Util-tests Net-tests Data-tests Zip-tests
+ samples = Foundation-samples XML-samples Util-samples Net-samples Crypto-samples NetSSL_OpenSSL-samples Data-samples Zip-samples PageCompiler-samples
+
+ .PHONY: $(libexecs)
diff --git a/dev-libs/poco/poco-1.4.5.ebuild b/dev-libs/poco/poco-1.4.5.ebuild
new file mode 100644
index 000000000000..04ef7819b9a3
--- /dev/null
+++ b/dev-libs/poco/poco-1.4.5.ebuild
@@ -0,0 +1,119 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/poco/poco-1.4.5.ebuild,v 1.1 2012/12/20 16:56:18 tommy Exp $
+
+EAPI="2"
+
+inherit eutils toolchain-funcs flag-o-matic multilib versionator
+
+MY_P="${P/_}"
+MY_DOCP="${PN}-$(get_version_component_range 1-3)-all-doc"
+
+DESCRIPTION="C++ class libraries that simplify and accelerate the development of network-centric, portable applications"
+HOMEPAGE="http://pocoproject.org/"
+SRC_URI="mirror://sourceforge/poco/${MY_P}-all.tar.bz2
+ doc? ( mirror://sourceforge/poco/${MY_DOCP}.zip )"
+LICENSE="Boost-1.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="doc examples iodbc mysql odbc sqlite ssl test"
+
+DEPEND=">=dev-libs/libpcre-8.13
+ <=dev-libs/libpcre-8.31
+ dev-libs/expat
+ sys-libs/zlib
+ mysql? ( virtual/mysql )
+ odbc? ( iodbc? ( dev-db/libiodbc )
+ !iodbc? ( dev-db/unixODBC ) )
+ ssl? ( dev-libs/openssl )
+ sqlite? ( dev-db/sqlite:3 )"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}-all"
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${PV}-gentoo.patch
+}
+
+src_configure() {
+ targets="libexecs"
+ odbc="unixodbc"
+
+ if use ssl; then
+ targets="${targets} NetSSL_OpenSSL-libexec Crypto-libexec"
+ echo NetSSL_OpenSSL >> components
+ echo Crypto >> components
+ fi
+ if use odbc; then
+ targets="${targets} Data/ODBC-libexec"
+ echo Data/ODBC >> components
+ if use iodbc; then
+ append-flags "-I/usr/include/iodbc"
+ odbc="iodbc"
+ fi
+ fi
+ if use sqlite; then
+ targets="${targets} Data/SQLite-libexec"
+ echo Data/SQLite >> components
+ fi
+ if use mysql; then
+ targets="${targets} Data/MySQL-libexec"
+ echo Data/MySQL >> components
+ fi
+
+ if use test; then
+ targets="${targets} cppunit tests"
+ echo CppUnit >> components
+ use ssl && targets="${targets} NetSSL_OpenSSL-tests Crypto-tests"
+ use odbc && targets="${targets} Data/ODBC-tests"
+ use sqlite && targets="${targets} Data/SQLite-tests"
+ use mysql && targets="${targets} Data/MySQL-tests"
+ fi
+
+ local myconf
+ use test || myconf="--no-tests"
+ # not autoconf
+ ./configure \
+ --no-samples ${myconf} \
+ --prefix=/usr \
+ --unbundled \
+ || die "configure failed"
+
+ sed -i \
+ -e 's|-O2||g' \
+ -e "s|CC = .*|CC = $(tc-getCC)|" \
+ -e "s|CXX = .*|CXX = $(tc-getCXX)|" \
+ -e "s|RANLIB = .*|RANLIB = $(tc-getRANLIB)|" \
+ -e "s|LIB = ar|LIB = $(tc-getAR)|" \
+ -e "s|STRIP = .*|STRIP = /bin/true|" \
+ -e "s|CFLAGS = |CFLAGS = ${CFLAGS}|" \
+ -e "s|CXXFLAGS = |CXXFLAGS = ${CXXFLAGS} |" \
+ -e "s|LINKFLAGS =|LINKFLAGS = ${LDFLAGS} |" \
+ -e "s|SHAREDOPT_LINK = -Wl,-rpath,\$(LIBPATH)|SHAREDOPT_LINK =|" \
+ build/config/Linux build/config/FreeBSD || die "sed failed"
+ sed -i -e "s|SHLIBFLAGS)|SHLIBFLAGS) ${LDFLAGS}|" build/rules/lib || die
+}
+
+src_compile() {
+ emake POCO_PREFIX=/usr GENTOO_ODBC="${odbc}" LIBDIR="$(get_libdir)" ${targets} || die "emake failed"
+}
+
+src_install() {
+ emake POCO_PREFIX=/usr LIBDIR="$(get_libdir)" DESTDIR="${D}" install || die "emake install failed"
+
+ dodoc CHANGELOG CONTRIBUTORS NEWS README
+
+ use doc && dohtml -r "${WORKDIR}/${MY_DOCP}"/*
+
+ if use examples ; then
+ for d in Net XML Data Util NetSSL_OpenSSL Foundation ; do
+ insinto /usr/share/doc/${PF}/examples/${d}
+ doins -r ${d}/samples
+ done
+ find "${D}/usr/share/doc/${PF}/examples" \
+ -iname "*.sln" -or -iname "*.vcproj" -or \
+ -iname "*.vmsbuild" -or -iname "*.properties" \
+ | xargs rm
+ fi
+}