Gentoo Archives: gentoo-commits

From: "Robin H. Johnson (robbat2)" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-db/libodbc++: libodbc++-0.2.5-r1.ebuild libodbc++-0.2.5.ebuild ChangeLog
Date: Fri, 19 Feb 2010 21:55:14
Message-Id: E1Niaoa-0007N7-GS@stork.gentoo.org
1 robbat2 10/02/19 21:55:12
2
3 Modified: libodbc++-0.2.5.ebuild ChangeLog
4 Added: libodbc++-0.2.5-r1.ebuild
5 Log:
6 Fix up bug 297146 for documentation location. And add new revision for the pending qt3 removal. 0.2.5-r0 has fully specified qt3 support that works for the moment, but is to be pmasked when qt3 mask comes. 0.2.5-r1 has qt3 support disabled.
7 (Portage version: 2.2_rc61/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.2 dev-db/libodbc++/libodbc++-0.2.5.ebuild
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/libodbc++/libodbc++-0.2.5.ebuild?rev=1.2&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/libodbc++/libodbc++-0.2.5.ebuild?rev=1.2&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/libodbc++/libodbc++-0.2.5.ebuild?r1=1.1&r2=1.2
15
16 Index: libodbc++-0.2.5.ebuild
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-db/libodbc++/libodbc++-0.2.5.ebuild,v
19 retrieving revision 1.1
20 retrieving revision 1.2
21 diff -p -w -b -B -u -u -r1.1 -r1.2
22 --- libodbc++-0.2.5.ebuild 19 Feb 2010 21:41:22 -0000 1.1
23 +++ libodbc++-0.2.5.ebuild 19 Feb 2010 21:55:11 -0000 1.2
24 @@ -1,6 +1,6 @@
25 # Copyright 1999-2010 Gentoo Foundation
26 # Distributed under the terms of the GNU General Public License v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-db/libodbc++/libodbc++-0.2.5.ebuild,v 1.1 2010/02/19 21:41:22 robbat2 Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-db/libodbc++/libodbc++-0.2.5.ebuild,v 1.2 2010/02/19 21:55:11 robbat2 Exp $
29
30 EAPI=2
31 inherit eutils flag-o-matic
32 @@ -15,6 +15,7 @@ SLOT=0
33 IUSE="qt3"
34
35 DEPEND="dev-db/unixODBC
36 + qt3? ( dev-db/unixODBC[qt3] )
37 sys-libs/ncurses"
38 RDEPEND="${DEPEND}"
39
40 @@ -24,9 +25,7 @@ SB_MT="${S}-build-mt"
41 #SB_QT="${S}-build_qt"
42 SB_QT_MT="${S}-build_qt-mt"
43
44 -src_unpack() {
45 - unpack ${A}
46 - cd "${S}"
47 +src_prepare() {
48 #epatch "${FILESDIR}"/${PN}-0.2.3-std-streamsize.patch
49 epatch "${FILESDIR}"/${PN}-0.2.3-doxygen.patch
50 epatch "${FILESDIR}"/${PN}-0.2.3-gcc41.patch
51 @@ -89,7 +88,6 @@ src_compile() {
52 }
53
54 src_install () {
55 - cd "${S}"
56 dodoc AUTHORS BUGS ChangeLog NEWS README THANKS TODO
57
58 buildlist="${SB} ${SB_MT}"
59 @@ -99,4 +97,8 @@ src_install () {
60 cd ${sd}
61 emake DESTDIR="${D}" install || die "make install failed"
62 done
63 + if [[ "${P}" != "${PF}" ]]; then
64 + mv "${D}"/usr/share/doc/${P}/* "${D}"/usr/share/doc/${PF}/
65 + rmdir "${D}"/usr/share/doc/${P}
66 + fi
67 }
68
69
70
71 1.20 dev-db/libodbc++/ChangeLog
72
73 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/libodbc++/ChangeLog?rev=1.20&view=markup
74 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/libodbc++/ChangeLog?rev=1.20&content-type=text/plain
75 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/libodbc++/ChangeLog?r1=1.19&r2=1.20
76
77 Index: ChangeLog
78 ===================================================================
79 RCS file: /var/cvsroot/gentoo-x86/dev-db/libodbc++/ChangeLog,v
80 retrieving revision 1.19
81 retrieving revision 1.20
82 diff -p -w -b -B -u -u -r1.19 -r1.20
83 --- ChangeLog 19 Feb 2010 21:41:22 -0000 1.19
84 +++ ChangeLog 19 Feb 2010 21:55:11 -0000 1.20
85 @@ -1,6 +1,15 @@
86 # ChangeLog for dev-db/libodbc++
87 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
88 -# $Header: /var/cvsroot/gentoo-x86/dev-db/libodbc++/ChangeLog,v 1.19 2010/02/19 21:41:22 robbat2 Exp $
89 +# $Header: /var/cvsroot/gentoo-x86/dev-db/libodbc++/ChangeLog,v 1.20 2010/02/19 21:55:11 robbat2 Exp $
90 +
91 +*libodbc++-0.2.5-r1 (19 Feb 2010)
92 +
93 + 19 Feb 2010; Robin H. Johnson <robbat2@g.o> libodbc++-0.2.5.ebuild,
94 + +libodbc++-0.2.5-r1.ebuild:
95 + Fix up bug 297146 for documentation location. And add new revision for the
96 + pending qt3 removal. 0.2.5-r0 has fully specified qt3 support that works
97 + for the moment, but is to be pmasked when qt3 mask comes. 0.2.5-r1 has qt3
98 + support disabled.
99
100 *libodbc++-0.2.5 (19 Feb 2010)
101
102
103
104
105 1.1 dev-db/libodbc++/libodbc++-0.2.5-r1.ebuild
106
107 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/libodbc++/libodbc++-0.2.5-r1.ebuild?rev=1.1&view=markup
108 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/libodbc++/libodbc++-0.2.5-r1.ebuild?rev=1.1&content-type=text/plain
109
110 Index: libodbc++-0.2.5-r1.ebuild
111 ===================================================================
112 # Copyright 1999-2010 Gentoo Foundation
113 # Distributed under the terms of the GNU General Public License v2
114 # $Header: /var/cvsroot/gentoo-x86/dev-db/libodbc++/libodbc++-0.2.5-r1.ebuild,v 1.1 2010/02/19 21:55:11 robbat2 Exp $
115
116 EAPI=2
117 inherit eutils flag-o-matic
118
119 KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~x86"
120
121 DESCRIPTION="Libodbc++ is a c++ class library that provides a subset of the well-known JDBC 2.0(tm) and runs on top of ODBC."
122 SRC_URI="mirror://sourceforge/libodbcxx/${P}.tar.bz2"
123 HOMEPAGE="http://libodbcxx.sourceforge.net/"
124 LICENSE="LGPL-2.1"
125 SLOT=0
126 IUSE=""
127
128 DEPEND="dev-db/unixODBC
129 sys-libs/ncurses"
130 RDEPEND="${DEPEND}"
131
132 SB="${S}-build"
133 SB_MT="${S}-build-mt"
134 # QT3 is no longer supported in Gentoo.
135 #SB_QT="${S}-build_qt"
136 #SB_QT_MT="${S}-build_qt-mt"
137
138 src_prepare() {
139 #epatch "${FILESDIR}"/${PN}-0.2.3-std-streamsize.patch
140 epatch "${FILESDIR}"/${PN}-0.2.3-doxygen.patch
141 epatch "${FILESDIR}"/${PN}-0.2.3-gcc41.patch
142 #epatch "${FILESDIR}"/${PN}-0.2.3-gcc43.patch
143 #epatch "${FILESDIR}"/${PN}-0.2.3-typecast.patch
144 epatch "${FILESDIR}"/${PN}-0.2.3-gcc44.patch
145
146 # Fix configure to use ncurses instead of termcap (bug #103105)
147 sed -i -e 's~termcap~ncurses~g' configure
148 }
149
150 src_configure() {
151 local commonconf buildlist
152 commonconf="--with-odbc=/usr --without-tests"
153 commonconf="${commonconf} --enable-static --enable-shared"
154 # " --enable-threads"
155
156 export ECONF_SOURCE="${S}"
157 append-flags -DODBCXX_DISABLE_READLINE_HACK
158
159 buildlist="${SB} ${SB_MT}"
160 #use qt3 && buildlist="${buildlist} $SB_QT $SB_QT_MT"
161
162 for sd in ${buildlist}; do
163 einfo "Doing configure pass for $sd"
164 mkdir -p "${sd}"
165 cd "${sd}"
166 commonconf2=''
167 LIBS=''
168 [ "${sd}" == "${SB_MT}" -o "${sd}" == "${SB_QT_MT}" ] && commonconf2="${commonconf2} --enable-threads"
169 [ "${sd}" == "${SB_QT}" -o "${sd}" == "${SB_QT_MT}" ] && commonconf2="${commonconf2} --with-qt"
170 # isql++ tool fails to compile:
171 #libodbc++-0.2.5/isql++/isql++.cpp: In constructor 'Isql::Isql(odbc::Connection*)':
172 #libodbc++-0.2.5/isql++/isql++.cpp:275: error: invalid cast to function type 'char** ()()'
173 #[ "${sd}" == "${SB}" ] && commonconf2="${commonconf2} --with-isqlxx"
174 # Upstream configure is broken as well, passing --without or
175 # --with-isqlxx=no will turn it ON instead of forcing it off.
176 #commonconf2="${commonconf2} _-without-isqlxx"
177 [ "${sd}" == "${SB_QT}" ] && commonconf2="${commonconf2} --with-qtsqlxx"
178 export LIBS
179 # using without-qt breaks the build
180 #--without-qt \
181 econf \
182 ${commonconf} \
183 ${commonconf2} \
184 || die "econf failed"
185 done
186 }
187
188 src_compile() {
189 local buildlist failures
190 buildlist="${SB} ${SB_MT}"
191 #use qt3 && buildlist="${buildlist} $SB_QT $SB_QT_MT"
192 for sd in ${buildlist}; do
193 einfo "Doing compile pass for $sd"
194 cd "${sd}"
195 emake LIBS='' || failures="${failures} ${sd//${S}-}"
196 done
197 [ -n "${failures}" ] && die "Failures: ${failures}"
198 }
199
200 src_install () {
201 dodoc AUTHORS BUGS ChangeLog NEWS README THANKS TODO
202
203 buildlist="${SB} ${SB_MT}"
204 #use qt3 && buildlist="${buildlist} $SB_QT $SB_QT_MT"
205 for sd in ${buildlist}; do
206 einfo "Doing install pass for $sd"
207 cd ${sd}
208 emake DESTDIR="${D}" install || die "make install failed"
209 done
210 if [[ "${P}" != "${PF}" ]]; then
211 mv "${D}"/usr/share/doc/${P}/* "${D}"/usr/share/doc/${PF}/
212 rmdir "${D}"/usr/share/doc/${P}
213 fi
214 }