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 | 44885bd5a0bc3ca0790f516eb14a960a9cd186e4 (patch) | |
tree | c38a788b95c2197ce80a4331e1264da19bdd8833 /dev-libs | |
parent | p.mask dev-util/gambas:1, bug #157670 (diff) | |
download | gentoo-2-44885bd5a0bc3ca0790f516eb14a960a9cd186e4.tar.gz gentoo-2-44885bd5a0bc3ca0790f516eb14a960a9cd186e4.tar.bz2 gentoo-2-44885bd5a0bc3ca0790f516eb14a960a9cd186e4.zip |
Initial commit (bug #162846), ebuild written by me.
(Portage version: 2.2_rc1/cvs/Linux 2.6.24-gentoo-r8 x86_64)
Diffstat (limited to 'dev-libs')
-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..e38b1ef32438 --- /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 2963 RMD160 83672e445f482337d5101d8ea42f6e06294a84cb SHA1 44dd288b62d89801cfd7c1ac787c14408d7acd94 SHA256 c506baec300bdb7ee7371ca619fe99b1c80bbc989bfd5ab819708249e84d1835 +MISC ChangeLog 352 RMD160 e5e75ab0d0cc8d8777efae799ea7149b076e1918 SHA1 c6c2252613b6a6b5d6e70ca805528f8a41c41236 SHA256 0ce201ae34a2fe736490b4c8125e292319517cfb6866a34da203df3595502ed3 +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 +} |