diff options
author | Tiziano Müller <dev-zero@gentoo.org> | 2008-06-29 01:21:00 +0000 |
---|---|---|
committer | Tiziano Müller <dev-zero@gentoo.org> | 2008-06-29 01:21:00 +0000 |
commit | a6abd92f7adda3bf987b55b2b206a9c52d313d69 (patch) | |
tree | 8ca63fa72ac40e04e2b3552327e0fef47a31bc7a /dev-libs/poco | |
parent | p.mask dev-util/gambas:1, bug #157670 (diff) | |
download | historical-a6abd92f7adda3bf987b55b2b206a9c52d313d69.tar.gz historical-a6abd92f7adda3bf987b55b2b206a9c52d313d69.tar.bz2 historical-a6abd92f7adda3bf987b55b2b206a9c52d313d69.zip |
Initial commit (bug #162846), ebuild written by me.
Package-Manager: portage-2.2_rc1/cvs/Linux 2.6.24-gentoo-r8 x86_64
Diffstat (limited to 'dev-libs/poco')
-rw-r--r-- | dev-libs/poco/ChangeLog | 11 | ||||
-rw-r--r-- | dev-libs/poco/Manifest | 7 | ||||
-rw-r--r-- | dev-libs/poco/files/1.3.2-gentoo.patch | 71 | ||||
-rw-r--r-- | dev-libs/poco/files/1.3.2-missing_includes.patch | 57 | ||||
-rw-r--r-- | dev-libs/poco/metadata.xml | 25 | ||||
-rw-r--r-- | dev-libs/poco/poco-1.3.2.ebuild | 106 |
6 files changed, 277 insertions, 0 deletions
diff --git a/dev-libs/poco/ChangeLog b/dev-libs/poco/ChangeLog new file mode 100644 index 000000000000..46be316756ab --- /dev/null +++ b/dev-libs/poco/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for dev-libs/poco +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/poco/ChangeLog,v 1.1 2008/06/29 01:20:59 dev-zero Exp $ + +*poco-1.3.2 (29 Jun 2008) + + 29 Jun 2008; Tiziano Müller <dev-zero@gentoo.org> + +files/1.3.2-gentoo.patch, +files/1.3.2-missing_includes.patch, + +metadata.xml, +poco-1.3.2.ebuild: + Initial commit (bug #162846), ebuild written by me. + diff --git a/dev-libs/poco/Manifest b/dev-libs/poco/Manifest new file mode 100644 index 000000000000..b80cc9bff987 --- /dev/null +++ b/dev-libs/poco/Manifest @@ -0,0 +1,7 @@ +AUX 1.3.2-gentoo.patch 2922 RMD160 b9c35edb408f399fdb92c5d19026b8916bd8b679 SHA1 19485d5462cf65b5facae005bfdbf958c4bf3e09 SHA256 1f772c61bb2ae956c8a0b2f20dd73b2c8fb08534a7cb2ba943abbf43cb09af4d +AUX 1.3.2-missing_includes.patch 2230 RMD160 83088a2083862d6d1c864c8a08a031886a04b46a SHA1 6e525719f39a20adb92754a22f1c1d16f667839d SHA256 32e7694a2b2d937b402f84ba6336575796326078665d670137ef442d38bb032f +DIST poco-1.3.2-data.tar.bz2 1737200 RMD160 73112ddd532b093bd55bb611759ce96c39395e52 SHA1 b8d884beab455b63c9edc0c60bf4c11b504ccf7a SHA256 f078b5f88b0cd29bcbb77f5d903240025f6c35e225a1e707df1c62ac281b2951 +DIST poco-1.3.2-doc.tar.gz 800076 RMD160 813f8b0ce8cb18269c5fcbf1c577375bca7db0c4 SHA1 cbf72f9cfbb624f28978f3d752cba7d4dc471ce6 SHA256 256c4c1becb1119ee0207360c8c0013b69744c0c4765ea2bd29b1695122196b9 +EBUILD poco-1.3.2.ebuild 3058 RMD160 a1c14c833983d12a8e88e0b7339884128139d954 SHA1 34fe0a9c615c8345b5c3fd9f58e62e4df92c32a5 SHA256 f70b543032e22b347e98ff2bd4244ce29c29d1f097600d667d23491de114d591 +MISC ChangeLog 439 RMD160 666d01141ad5e26287e8f77f724a3432dced392d SHA1 94b52fa69ad77367b7975fe4dda5458900447be0 SHA256 0d3dd654d154afe5d65eec4b7e3b01855af57217a2457cee3d0f1037de3c4b28 +MISC metadata.xml 1214 RMD160 ad53912d3b0bfe957afb93f48a14acb8a63065ac SHA1 0540a52d1fb89cb295e74a76ff82b5a9aa9e17d2 SHA256 db4e1800aef5727137536db629841d0fe719018f9c5cb7fd8dd332fbe8c78e1c diff --git a/dev-libs/poco/files/1.3.2-gentoo.patch b/dev-libs/poco/files/1.3.2-gentoo.patch new file mode 100644 index 000000000000..bed364c524fa --- /dev/null +++ b/dev-libs/poco/files/1.3.2-gentoo.patch @@ -0,0 +1,71 @@ +diff -Naur poco-1.3.2-data.orig/components poco-1.3.2-data/components +--- poco-1.3.2-data.orig/components 2008-05-29 16:54:08.000000000 +0200 ++++ poco-1.3.2-data/components 2008-05-29 16:58:26.000000000 +0200 +@@ -2,8 +2,4 @@ + XML + Util + Net +-NetSSL_OpenSSL + Data +-Data/SQLite +-Data/ODBC +-CppUnit +diff -Naur poco-1.3.2-data.orig/Data/ODBC/Makefile poco-1.3.2-data/Data/ODBC/Makefile +--- poco-1.3.2-data.orig/Data/ODBC/Makefile 2008-05-29 16:54:08.000000000 +0200 ++++ poco-1.3.2-data/Data/ODBC/Makefile 2008-05-29 16:56:05.000000000 +0200 +@@ -8,11 +8,11 @@ + + include $(POCO_BASE)/build/rules/global + +-ifeq (0, $(shell test -e /usr/lib/libodbc$(SHAREDLIBLINKEXT); echo $$?)) ++ifeq (unixodbc, $(GENTOO_ODBC)) + SYSLIBS += -lodbc -lodbcinst + COMMONFLAGS += -DPOCO_UNIXODBC + else +-ifeq (0, $(shell test -e /usr/lib/libiodbc$(SHAREDLIBLINKEXT); echo $$?)) ++ifeq (iodbc, $(GENTOO_ODBC)) + SYSLIBS += -liodbc -liodbcinst + COMMONFLAGS += -DPOCO_IODBC + else +diff -Naur poco-1.3.2-data.orig/Makefile poco-1.3.2-data/Makefile +--- poco-1.3.2-data.orig/Makefile 2008-05-29 16:54:08.000000000 +0200 ++++ poco-1.3.2-data/Makefile 2008-05-29 20:32:35.000000000 +0200 +@@ -17,17 +17,17 @@ + + .PHONY: all libexecs cppunit tests samples install + +-all: libexecs tests samples ++all: libexecs + + INSTALLDIR = $(DESTDIR)$(POCO_PREFIX) +-COMPONENTS = Foundation XML Util Net NetSSL_OpenSSL Data Data/SQLite Data/ODBC ++COMPONENTS = Foundation XML Util Net Data + + cppunit: + $(MAKE) -C $(POCO_BASE)/CppUnit + + 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 \ +@@ -37,14 +37,14 @@ + find $(POCO_BUILD)/$$comp/bin -perm -700 -type f -exec cp -Rf {} $(INSTALLDIR)/bin \; ; \ + fi ; \ + done +- find $(POCO_BUILD)/lib -name "libPoco*" -exec cp -Rf {} $(INSTALLDIR)/lib \; ++ find $(POCO_BUILD)/$(LIBDIR) -name "libPoco*" -exec cp -Rf {} $(INSTALLDIR)/$(LIBDIR) \; + + .PHONY: Foundation-libexec XML-libexec Util-libexec Net-libexec NetSSL_OpenSSL-libexec Data-libexec Data/SQLite-libexec Data/ODBC-libexec + .PHONY: Foundation-tests XML-tests Util-tests Net-tests NetSSL_OpenSSL-tests Data-tests Data/SQLite-tests Data/ODBC-tests + .PHONY: Foundation-samples XML-samples Util-samples Net-samples NetSSL_OpenSSL-samples Data-samples + +-libexecs: Foundation-libexec XML-libexec Util-libexec Net-libexec NetSSL_OpenSSL-libexec Data-libexec Data/SQLite-libexec Data/ODBC-libexec +-tests: Foundation-tests XML-tests Util-tests Net-tests NetSSL_OpenSSL-tests Data-tests Data/SQLite-tests Data/ODBC-tests ++libexecs: Foundation-libexec XML-libexec Util-libexec Net-libexec Data-libexec ++tests: Foundation-tests XML-tests Util-tests Net-tests Data-tests + samples: Foundation-samples XML-samples Util-samples Net-samples NetSSL_OpenSSL-samples Data-samples + + Foundation-libexec: diff --git a/dev-libs/poco/files/1.3.2-missing_includes.patch b/dev-libs/poco/files/1.3.2-missing_includes.patch new file mode 100644 index 000000000000..afcbe57560ff --- /dev/null +++ b/dev-libs/poco/files/1.3.2-missing_includes.patch @@ -0,0 +1,57 @@ +diff -Naur poco-1.3.2-data.orig/Data/ODBC/include/Poco/Data/ODBC/Diagnostics.h poco-1.3.2-data/Data/ODBC/include/Poco/Data/ODBC/Diagnostics.h +--- poco-1.3.2-data.orig/Data/ODBC/include/Poco/Data/ODBC/Diagnostics.h 2008-05-29 20:47:39.000000000 +0200 ++++ poco-1.3.2-data/Data/ODBC/include/Poco/Data/ODBC/Diagnostics.h 2008-05-29 20:49:09.000000000 +0200 +@@ -42,6 +42,7 @@ + + #include "Poco/Data/ODBC/ODBC.h" + #include <vector> ++#include <cstring> + #ifdef POCO_OS_FAMILY_WINDOWS + #include <windows.h> + #endif +diff -Naur poco-1.3.2-data.orig/Foundation/include/Poco/FIFOStrategy.h poco-1.3.2-data/Foundation/include/Poco/FIFOStrategy.h +--- poco-1.3.2-data.orig/Foundation/include/Poco/FIFOStrategy.h 2008-05-29 20:47:40.000000000 +0200 ++++ poco-1.3.2-data/Foundation/include/Poco/FIFOStrategy.h 2008-05-29 22:01:36.000000000 +0200 +@@ -42,7 +42,7 @@ + #include "Poco/NotificationStrategy.h" + #include <map> + #include <list> +- ++#include <memory> + + namespace Poco { + +diff -Naur poco-1.3.2-data.orig/Foundation/include/Poco/HashTable.h poco-1.3.2-data/Foundation/include/Poco/HashTable.h +--- poco-1.3.2-data.orig/Foundation/include/Poco/HashTable.h 2008-05-29 20:47:40.000000000 +0200 ++++ poco-1.3.2-data/Foundation/include/Poco/HashTable.h 2008-05-29 22:08:33.000000000 +0200 +@@ -47,7 +47,7 @@ + #include <vector> + #include <map> + #include <cstddef> +- ++#include <cstring> + + namespace Poco { + +diff -Naur poco-1.3.2-data.orig/Foundation/src/BinaryWriter.cpp poco-1.3.2-data/Foundation/src/BinaryWriter.cpp +--- poco-1.3.2-data.orig/Foundation/src/BinaryWriter.cpp 2008-05-29 20:47:40.000000000 +0200 ++++ poco-1.3.2-data/Foundation/src/BinaryWriter.cpp 2008-05-29 20:48:05.000000000 +0200 +@@ -33,6 +33,7 @@ + // DEALINGS IN THE SOFTWARE. + // + ++#include <cstring> + + #include "Poco/BinaryWriter.h" + #include "Poco/ByteOrder.h" +diff -Naur poco-1.3.2-data.orig/Foundation/src/File_UNIX.cpp poco-1.3.2-data/Foundation/src/File_UNIX.cpp +--- poco-1.3.2-data.orig/Foundation/src/File_UNIX.cpp 2008-05-29 20:47:40.000000000 +0200 ++++ poco-1.3.2-data/Foundation/src/File_UNIX.cpp 2008-05-29 20:48:05.000000000 +0200 +@@ -33,6 +33,7 @@ + // DEALINGS IN THE SOFTWARE. + // + ++#include <cstring> + + #include "Poco/File_UNIX.h" + #include "Poco/Buffer.h" diff --git a/dev-libs/poco/metadata.xml b/dev-libs/poco/metadata.xml new file mode 100644 index 000000000000..9f60e14796eb --- /dev/null +++ b/dev-libs/poco/metadata.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>cpp</herd> +<maintainer> + <email>dev-zero@gentoo.org</email> + <name>Tiziano Müller</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> +</pkgmetadata> diff --git a/dev-libs/poco/poco-1.3.2.ebuild b/dev-libs/poco/poco-1.3.2.ebuild new file mode 100644 index 000000000000..a096e66c6e75 --- /dev/null +++ b/dev-libs/poco/poco-1.3.2.ebuild @@ -0,0 +1,106 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/poco/poco-1.3.2.ebuild,v 1.1 2008/06/29 01:20:59 dev-zero Exp $ + +EAPI="1" + +inherit eutils toolchain-funcs flag-o-matic + +DESCRIPTION="C++ class libraries that simplify and accelerate the development of network-centric, portable applications." +HOMEPAGE="http://pocoproject.org/" +SRC_URI="mirror://sourceforge/poco/${P}-data.tar.bz2 + doc? ( mirror://sourceforge/poco/${P}-doc.tar.gz )" +LICENSE="Boost-1.0" +SLOT="0" +KEYWORDS="~amd64" +IUSE="doc examples iodbc odbc sqlite ssl" + +DEPEND="dev-libs/libpcre + odbc? ( iodbc? ( dev-db/libiodbc ) + !iodbc? ( dev-db/unixODBC ) ) + ssl? ( dev-libs/openssl ) + sqlite? ( dev-db/sqlite:3 )" +RDEPEND="${DEPEND}" + +# Upstream has three editions: "economic", "with NetSSL" and "with NetSSL and Data" +# We take the last one and provide useflags for ssl, odbc, sqlite +S="${WORKDIR}/${P}-data" + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch \ + "${FILESDIR}/${PV}-missing_includes.patch" \ + "${FILESDIR}/${PV}-gentoo.patch" + +} + +src_compile() { + local targets="all" + local odbc="unixodbc" + + if use ssl; then + targets="${targets} NetSSL_OpenSSL-libexec" + echo NetSSL_OpenSSL >> 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 has test ${FEATURES}; then + targets="${targets} cppunit tests" + echo CppUnit >> components + use ssl && targets="${targets} NetSSL_OpenSSL-tests" + use odbc && targets="${targets} Data/ODBC-tests" + use sqlite && targets="${targets} Data/SQLite-tests" + fi + + # not autoconf + ./configure \ + --no-samples \ + --prefix=/usr \ + || die "configure failed" + + sed -i \ + -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 = /usr/bin/true|" \ + -e "s|CFLAGS = |CFLAGS = ${CFLAGS}|" \ + -e "s|CXXFLAGS = |CXXFLAGS = ${CXXFLAGS} |" \ + -e "s|LINKFLAGS = |LINKFLAGS = ${LDFLAG} |" \ + -e 's|-O2||g' \ + build/config/Linux build/config/FreeBSD || die "sed failed" + + 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}/${P}-doc"/* + + 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 +} |