Gentoo Archives: gentoo-commits

From: "Tiziano Mueller (dev-zero)" <dev-zero@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-libs/poco: ChangeLog poco-1.3.3_p1.ebuild poco-1.3.2.ebuild
Date: Sun, 23 Nov 2008 10:27:29
Message-Id: E1L4CBU-0004q4-1e@stork.gentoo.org
1 dev-zero 08/11/23 10:27:20
2
3 Modified: ChangeLog
4 Added: poco-1.3.3_p1.ebuild
5 Removed: poco-1.3.2.ebuild
6 Log:
7 Version bump, unbundled libs (bug #247242). Dropped old version.
8 (Portage version: 2.2_rc14/cvs/Linux 2.6.27.5 x86_64)
9
10 Revision Changes Path
11 1.5 dev-libs/poco/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/poco/ChangeLog?rev=1.5&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/poco/ChangeLog?rev=1.5&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/poco/ChangeLog?r1=1.4&r2=1.5
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-libs/poco/ChangeLog,v
20 retrieving revision 1.4
21 retrieving revision 1.5
22 diff -u -r1.4 -r1.5
23 --- ChangeLog 25 Aug 2008 17:07:33 -0000 1.4
24 +++ ChangeLog 23 Nov 2008 10:27:19 -0000 1.5
25 @@ -1,6 +1,14 @@
26 # ChangeLog for dev-libs/poco
27 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/poco/ChangeLog,v 1.4 2008/08/25 17:07:33 maekke Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/poco/ChangeLog,v 1.5 2008/11/23 10:27:19 dev-zero Exp $
30 +
31 +*poco-1.3.3_p1 (23 Nov 2008)
32 +
33 + 23 Nov 2008; Tiziano Müller <dev-zero@g.o>
34 + -files/1.3.2-gentoo.patch, +files/1.3.3_p1-gentoo.patch,
35 + -files/1.3.2-missing_includes.patch, +files/1.3.3_p1-unbundle_libs.patch,
36 + -poco-1.3.2.ebuild, +poco-1.3.3_p1.ebuild:
37 + Version bump, unbundled libs (bug #247242). Dropped old version.
38
39 25 Aug 2008; Markus Meier <maekke@g.o> poco-1.3.2.ebuild:
40 add ~x86, bug #235675
41
42
43
44 1.1 dev-libs/poco/poco-1.3.3_p1.ebuild
45
46 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/poco/poco-1.3.3_p1.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/poco/poco-1.3.3_p1.ebuild?rev=1.1&content-type=text/plain
48
49 Index: poco-1.3.3_p1.ebuild
50 ===================================================================
51 # Copyright 1999-2008 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/dev-libs/poco/poco-1.3.3_p1.ebuild,v 1.1 2008/11/23 10:27:19 dev-zero Exp $
54
55 EAPI="2"
56
57 inherit eutils toolchain-funcs flag-o-matic versionator
58
59 MY_P="${P/_}"
60 MY_DOCP="${PN}-$(get_version_component_range 1-3)-doc"
61
62 DESCRIPTION="C++ class libraries that simplify and accelerate the development of network-centric, portable applications."
63 HOMEPAGE="http://pocoproject.org/"
64 SRC_URI="mirror://sourceforge/poco/${MY_P}-all.tar.bz2
65 doc? ( mirror://sourceforge/poco/${MY_DOCP}.tar.gz )"
66 LICENSE="Boost-1.0"
67 SLOT="0"
68 KEYWORDS="~amd64 ~x86"
69 IUSE="doc examples iodbc mysql odbc sqlite ssl"
70
71 DEPEND="dev-libs/libpcre
72 dev-libs/expat
73 sys-libs/zlib
74 mysql? ( dev-db/mysql )
75 odbc? ( iodbc? ( dev-db/libiodbc )
76 !iodbc? ( dev-db/unixODBC ) )
77 ssl? ( dev-libs/openssl )
78 sqlite? ( dev-db/sqlite:3 )"
79 RDEPEND="${DEPEND}"
80
81 S="${WORKDIR}/${MY_P}-all"
82
83 src_prepare() {
84 epatch \
85 "${FILESDIR}/${PV}-gentoo.patch" \
86 "${FILESDIR}/${PV}-unbundle_libs.patch"
87 }
88
89 src_configure() {
90 targets="all"
91 odbc="unixodbc"
92
93 if use ssl; then
94 targets="${targets} NetSSL_OpenSSL-libexec Crypto-libexec"
95 echo NetSSL_OpenSSL >> components
96 echo Crypto >> components
97 fi
98 if use odbc; then
99 targets="${targets} Data/ODBC-libexec"
100 echo Data/ODBC >> components
101 if use iodbc; then
102 append-flags "-I/usr/include/iodbc"
103 odbc="iodbc"
104 fi
105 fi
106 if use sqlite; then
107 targets="${targets} Data/SQLite-libexec"
108 echo Data/SQLite >> components
109 fi
110 if use mysql; then
111 targets="${targets} Data/MySQL-libexec"
112 echo Data/MySQL >> components
113 fi
114
115 if has test ${FEATURES}; then
116 targets="${targets} cppunit tests"
117 echo CppUnit >> components
118 use ssl && targets="${targets} NetSSL_OpenSSL-tests Crypto-tests"
119 use odbc && targets="${targets} Data/ODBC-tests"
120 use sqlite && targets="${targets} Data/SQLite-tests"
121 use mysql && targets="${targets} Data/MySQL-tests"
122 fi
123
124 local myconf
125 has test ${FEATURES} || myconf="--no-tests"
126 # not autoconf
127 ./configure \
128 --no-samples ${myconf} \
129 --prefix=/usr \
130 || die "configure failed"
131
132 sed -i \
133 -e "s|CC = .*|CC = $(tc-getCC)|" \
134 -e "s|CXX = .*|CXX = $(tc-getCXX)|" \
135 -e "s|RANLIB = .*|RANLIB = $(tc-getRANLIB)|" \
136 -e "s|LIB = ar|LIB = $(tc-getAR)|" \
137 -e "s|STRIP = .*|STRIP = /bin/true|" \
138 -e "s|CFLAGS = |CFLAGS = ${CFLAGS}|" \
139 -e "s|CXXFLAGS = |CXXFLAGS = ${CXXFLAGS} |" \
140 -e "s|LINKFLAGS = |LINKFLAGS = ${LDFLAG} |" \
141 -e 's|-O2||g' \
142 build/config/Linux build/config/FreeBSD || die "sed failed"
143 }
144
145 src_compile() {
146 emake POCO_PREFIX=/usr GENTOO_ODBC="${odbc}" LIBDIR="$(get_libdir)" ${targets} || die "emake failed"
147 }
148
149 src_install() {
150 emake POCO_PREFIX=/usr LIBDIR="$(get_libdir)" DESTDIR="${D}" install || die "emake install failed"
151
152 dodoc CHANGELOG CONTRIBUTORS NEWS README
153
154 use doc && dohtml -r "${WORKDIR}/${MY_DOCP}"/*
155
156 if use examples ; then
157 for d in Net XML Data Util NetSSL_OpenSSL Foundation ; do
158 insinto /usr/share/doc/${PF}/examples/${d}
159 doins -r ${d}/samples
160 done
161 find "${D}/usr/share/doc/${PF}/examples" \
162 -iname "*.sln" -or -iname "*.vcproj" -or \
163 -iname "*.vmsbuild" -or -iname "*.properties" \
164 | xargs rm
165 fi
166 }