summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2010-02-19 21:55:11 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2010-02-19 21:55:11 +0000
commit99f3287b1a8b38728e6de9d6c8255d4a7cfe9d29 (patch)
tree080d28d7b8d53417796d39dc35efb5cb40c249e7 /dev-db/libodbc++
parentBug #282982: version bump. Upstream build system has lots of bugs however, so... (diff)
downloadhistorical-99f3287b1a8b38728e6de9d6c8255d4a7cfe9d29.tar.gz
historical-99f3287b1a8b38728e6de9d6c8255d4a7cfe9d29.tar.bz2
historical-99f3287b1a8b38728e6de9d6c8255d4a7cfe9d29.zip
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.
Package-Manager: portage-2.2_rc61/cvs/Linux x86_64
Diffstat (limited to 'dev-db/libodbc++')
-rw-r--r--dev-db/libodbc++/ChangeLog11
-rw-r--r--dev-db/libodbc++/Manifest5
-rw-r--r--dev-db/libodbc++/libodbc++-0.2.5-r1.ebuild103
-rw-r--r--dev-db/libodbc++/libodbc++-0.2.5.ebuild12
4 files changed, 123 insertions, 8 deletions
diff --git a/dev-db/libodbc++/ChangeLog b/dev-db/libodbc++/ChangeLog
index 09a71a2122a0..55a82825a7bf 100644
--- a/dev-db/libodbc++/ChangeLog
+++ b/dev-db/libodbc++/ChangeLog
@@ -1,6 +1,15 @@
# ChangeLog for dev-db/libodbc++
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/libodbc++/ChangeLog,v 1.19 2010/02/19 21:41:22 robbat2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-db/libodbc++/ChangeLog,v 1.20 2010/02/19 21:55:11 robbat2 Exp $
+
+*libodbc++-0.2.5-r1 (19 Feb 2010)
+
+ 19 Feb 2010; Robin H. Johnson <robbat2@gentoo.org> libodbc++-0.2.5.ebuild,
+ +libodbc++-0.2.5-r1.ebuild:
+ 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.
*libodbc++-0.2.5 (19 Feb 2010)
diff --git a/dev-db/libodbc++/Manifest b/dev-db/libodbc++/Manifest
index cc3c3d07f459..0f0cbb8a392c 100644
--- a/dev-db/libodbc++/Manifest
+++ b/dev-db/libodbc++/Manifest
@@ -7,6 +7,7 @@ AUX libodbc++-0.2.3-typecast.patch 917 RMD160 de780c1267e223d66f70aaf58968e87823
DIST libodbc++-0.2.3.tar.gz 450097 RMD160 dc6f8cad2a10d028a4a40099c453528ab093e605 SHA1 962860ed6bb569c57d35fcc324d2b624d2260074 SHA256 06f93e2f828eeedaa51be51b65c8bb9324b52ce2e39530da6f9ce43f91991758
DIST libodbc++-0.2.5.tar.bz2 362310 RMD160 c9f4e73d5f0cf2a99d1b684a56678aa65b5caafd SHA1 8a77921b21c23926042c413f4a7a187a3656025b SHA256 ba3030a27b34e4aafbececa2ddbbf42a38815e9534f34c051620540531b5e23e
EBUILD libodbc++-0.2.3-r2.ebuild 2324 RMD160 e20405b6f3aa3b4a5d6fe86bc542e807ef35c49a SHA1 c6dd268f20696a5f16fadf911f1bb6a380cf5b8f SHA256 4eeea2d6a62bc5fc558fe621204cb4656546d2467ace604f3faa0eb07b459af7
-EBUILD libodbc++-0.2.5.ebuild 3181 RMD160 67ca971e00c4a6ac620bd1a8557908c8f80a4e1d SHA1 95a02ee57b684516b060659c107a1616b9f57cf6 SHA256 f885b439f586c11896b657fa4c75cdd6a5b4013932758f142906d25b6df7b124
-MISC ChangeLog 3202 RMD160 c2af2fcc30a830c27c87ab72ff716d8d9ef85cf6 SHA1 c5e87e7f78d1ec847a2fba9e1f7bcaa102ac5ffc SHA256 7c697c5a9b61a2ea676272009a71b35cbf50e2fd237eb59066b00cb0715b220d
+EBUILD libodbc++-0.2.5-r1.ebuild 3286 RMD160 6d5778ed87da4597b23472a642136190cb2de23b SHA1 c62cdf1422da37cf36c2f71fd672e7a90760d9fc SHA256 602dd6aa2abc4bc1b7495ad6ee1813e3b60b6c3184df484660aff68dddae85cc
+EBUILD libodbc++-0.2.5.ebuild 3312 RMD160 01e183ea51bb20b44b841adc087f7257e5ad5c05 SHA1 fb1dfa76678d4335e43e1f3f45618085afa1b3ed SHA256 53a30f4d141ee1fc3906bac5c6188d1fe1ba6f764482efc821d742085a3972ec
+MISC ChangeLog 3594 RMD160 18162a9f222d37b53fe4318435b4c2a0e9023e32 SHA1 40523c0ca2cb490b93d03e32c668450f51f9941e SHA256 c392a64f807546c37914df33f6b935618e46b9cc748983441432c39d685803e8
MISC metadata.xml 219 RMD160 38db0f8e5f44d75870709f7d3c98f081451875ef SHA1 9a9a48ef3ef70943b35ffd9b6f97b1a7bf5d64f9 SHA256 3335b69d39a6e311a24d996131a068c8846b17ea832eac15a646e25a6a73c5d7
diff --git a/dev-db/libodbc++/libodbc++-0.2.5-r1.ebuild b/dev-db/libodbc++/libodbc++-0.2.5-r1.ebuild
new file mode 100644
index 000000000000..3781fe7369d2
--- /dev/null
+++ b/dev-db/libodbc++/libodbc++-0.2.5-r1.ebuild
@@ -0,0 +1,103 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $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 $
+
+EAPI=2
+inherit eutils flag-o-matic
+
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~x86"
+
+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."
+SRC_URI="mirror://sourceforge/libodbcxx/${P}.tar.bz2"
+HOMEPAGE="http://libodbcxx.sourceforge.net/"
+LICENSE="LGPL-2.1"
+SLOT=0
+IUSE=""
+
+DEPEND="dev-db/unixODBC
+ sys-libs/ncurses"
+RDEPEND="${DEPEND}"
+
+SB="${S}-build"
+SB_MT="${S}-build-mt"
+# QT3 is no longer supported in Gentoo.
+#SB_QT="${S}-build_qt"
+#SB_QT_MT="${S}-build_qt-mt"
+
+src_prepare() {
+ #epatch "${FILESDIR}"/${PN}-0.2.3-std-streamsize.patch
+ epatch "${FILESDIR}"/${PN}-0.2.3-doxygen.patch
+ epatch "${FILESDIR}"/${PN}-0.2.3-gcc41.patch
+ #epatch "${FILESDIR}"/${PN}-0.2.3-gcc43.patch
+ #epatch "${FILESDIR}"/${PN}-0.2.3-typecast.patch
+ epatch "${FILESDIR}"/${PN}-0.2.3-gcc44.patch
+
+ # Fix configure to use ncurses instead of termcap (bug #103105)
+ sed -i -e 's~termcap~ncurses~g' configure
+}
+
+src_configure() {
+ local commonconf buildlist
+ commonconf="--with-odbc=/usr --without-tests"
+ commonconf="${commonconf} --enable-static --enable-shared"
+ # " --enable-threads"
+
+ export ECONF_SOURCE="${S}"
+ append-flags -DODBCXX_DISABLE_READLINE_HACK
+
+ buildlist="${SB} ${SB_MT}"
+ #use qt3 && buildlist="${buildlist} $SB_QT $SB_QT_MT"
+
+ for sd in ${buildlist}; do
+ einfo "Doing configure pass for $sd"
+ mkdir -p "${sd}"
+ cd "${sd}"
+ commonconf2=''
+ LIBS=''
+ [ "${sd}" == "${SB_MT}" -o "${sd}" == "${SB_QT_MT}" ] && commonconf2="${commonconf2} --enable-threads"
+ [ "${sd}" == "${SB_QT}" -o "${sd}" == "${SB_QT_MT}" ] && commonconf2="${commonconf2} --with-qt"
+ # isql++ tool fails to compile:
+ #libodbc++-0.2.5/isql++/isql++.cpp: In constructor 'Isql::Isql(odbc::Connection*)':
+ #libodbc++-0.2.5/isql++/isql++.cpp:275: error: invalid cast to function type 'char** ()()'
+ #[ "${sd}" == "${SB}" ] && commonconf2="${commonconf2} --with-isqlxx"
+ # Upstream configure is broken as well, passing --without or
+ # --with-isqlxx=no will turn it ON instead of forcing it off.
+ #commonconf2="${commonconf2} _-without-isqlxx"
+ [ "${sd}" == "${SB_QT}" ] && commonconf2="${commonconf2} --with-qtsqlxx"
+ export LIBS
+ # using without-qt breaks the build
+ #--without-qt \
+ econf \
+ ${commonconf} \
+ ${commonconf2} \
+ || die "econf failed"
+ done
+}
+
+src_compile() {
+ local buildlist failures
+ buildlist="${SB} ${SB_MT}"
+ #use qt3 && buildlist="${buildlist} $SB_QT $SB_QT_MT"
+ for sd in ${buildlist}; do
+ einfo "Doing compile pass for $sd"
+ cd "${sd}"
+ emake LIBS='' || failures="${failures} ${sd//${S}-}"
+ done
+ [ -n "${failures}" ] && die "Failures: ${failures}"
+}
+
+src_install () {
+ dodoc AUTHORS BUGS ChangeLog NEWS README THANKS TODO
+
+ buildlist="${SB} ${SB_MT}"
+ #use qt3 && buildlist="${buildlist} $SB_QT $SB_QT_MT"
+ for sd in ${buildlist}; do
+ einfo "Doing install pass for $sd"
+ cd ${sd}
+ emake DESTDIR="${D}" install || die "make install failed"
+ done
+ if [[ "${P}" != "${PF}" ]]; then
+ mv "${D}"/usr/share/doc/${P}/* "${D}"/usr/share/doc/${PF}/
+ rmdir "${D}"/usr/share/doc/${P}
+ fi
+}
diff --git a/dev-db/libodbc++/libodbc++-0.2.5.ebuild b/dev-db/libodbc++/libodbc++-0.2.5.ebuild
index 1256aa8baf15..3a0b53ca3458 100644
--- a/dev-db/libodbc++/libodbc++-0.2.5.ebuild
+++ b/dev-db/libodbc++/libodbc++-0.2.5.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/libodbc++/libodbc++-0.2.5.ebuild,v 1.1 2010/02/19 21:41:22 robbat2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-db/libodbc++/libodbc++-0.2.5.ebuild,v 1.2 2010/02/19 21:55:11 robbat2 Exp $
EAPI=2
inherit eutils flag-o-matic
@@ -15,6 +15,7 @@ SLOT=0
IUSE="qt3"
DEPEND="dev-db/unixODBC
+ qt3? ( dev-db/unixODBC[qt3] )
sys-libs/ncurses"
RDEPEND="${DEPEND}"
@@ -24,9 +25,7 @@ SB_MT="${S}-build-mt"
#SB_QT="${S}-build_qt"
SB_QT_MT="${S}-build_qt-mt"
-src_unpack() {
- unpack ${A}
- cd "${S}"
+src_prepare() {
#epatch "${FILESDIR}"/${PN}-0.2.3-std-streamsize.patch
epatch "${FILESDIR}"/${PN}-0.2.3-doxygen.patch
epatch "${FILESDIR}"/${PN}-0.2.3-gcc41.patch
@@ -89,7 +88,6 @@ src_compile() {
}
src_install () {
- cd "${S}"
dodoc AUTHORS BUGS ChangeLog NEWS README THANKS TODO
buildlist="${SB} ${SB_MT}"
@@ -99,4 +97,8 @@ src_install () {
cd ${sd}
emake DESTDIR="${D}" install || die "make install failed"
done
+ if [[ "${P}" != "${PF}" ]]; then
+ mv "${D}"/usr/share/doc/${P}/* "${D}"/usr/share/doc/${PF}/
+ rmdir "${D}"/usr/share/doc/${P}
+ fi
}