summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Jaroszyński <peper@gentoo.org>2006-11-05 20:46:30 +0000
committerPiotr Jaroszyński <peper@gentoo.org>2006-11-05 20:46:30 +0000
commit7ea236ce11613bcf18767714d5c31bd15891044f (patch)
tree52e144ce85a7074b9fdcb5f5400780abffc64247 /dev-db/odbtp
parentGcc 4 compile fix (diff)
downloadgentoo-2-7ea236ce11613bcf18767714d5c31bd15891044f.tar.gz
gentoo-2-7ea236ce11613bcf18767714d5c31bd15891044f.tar.bz2
gentoo-2-7ea236ce11613bcf18767714d5c31bd15891044f.zip
Add fix for 64bit OS. Add ~amd64 wrt bug #146426.
(Portage version: 2.1.2_rc1-r3)
Diffstat (limited to 'dev-db/odbtp')
-rw-r--r--dev-db/odbtp/ChangeLog6
-rw-r--r--dev-db/odbtp/files/odbtp-1.1.4-amd64.patch11
-rw-r--r--dev-db/odbtp/odbtp-1.1.4.ebuild15
3 files changed, 29 insertions, 3 deletions
diff --git a/dev-db/odbtp/ChangeLog b/dev-db/odbtp/ChangeLog
index d873f51ff2b5..0f912371d1ec 100644
--- a/dev-db/odbtp/ChangeLog
+++ b/dev-db/odbtp/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-db/odbtp
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/odbtp/ChangeLog,v 1.1 2006/07/23 19:49:53 chtekk Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-db/odbtp/ChangeLog,v 1.2 2006/11/05 20:46:30 peper Exp $
+
+ 05 Nov 2006; Piotr Jaroszyński <peper@gentoo.org>
+ +files/odbtp-1.1.4-amd64.patch, odbtp-1.1.4.ebuild:
+ Add fix for 64bit OS. Add ~amd64 wrt bug #146426.
*odbtp-1.1.4 (23 Jul 2006)
diff --git a/dev-db/odbtp/files/odbtp-1.1.4-amd64.patch b/dev-db/odbtp/files/odbtp-1.1.4-amd64.patch
new file mode 100644
index 000000000000..1ba2cb3b71e5
--- /dev/null
+++ b/dev-db/odbtp/files/odbtp-1.1.4-amd64.patch
@@ -0,0 +1,11 @@
+--- odbtp-1.1.4/odbtp.h.old 2006-11-05 21:29:33.000000000 +0100
++++ odbtp-1.1.4/odbtp.h 2006-11-05 21:29:44.000000000 +0100
+@@ -22,7 +22,7 @@
+ #define _ODBTP_H_
+
+ /* The below line must be uncommented for 64-bit systems, such as Tru64. */
+-/* #define _C_LONG_64_ 1 */
++#define _C_LONG_64_ 1
+
+ #define ODBTP_LIB_VERSION "1.1.4"
+
diff --git a/dev-db/odbtp/odbtp-1.1.4.ebuild b/dev-db/odbtp/odbtp-1.1.4.ebuild
index 6efd3c7b78e2..4bd0b9b8b63a 100644
--- a/dev-db/odbtp/odbtp-1.1.4.ebuild
+++ b/dev-db/odbtp/odbtp-1.1.4.ebuild
@@ -1,15 +1,26 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/odbtp/odbtp-1.1.4.ebuild,v 1.1 2006/07/23 19:49:53 chtekk Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-db/odbtp/odbtp-1.1.4.ebuild,v 1.2 2006/11/05 20:46:30 peper Exp $
+
+inherit eutils
-KEYWORDS="~x86"
DESCRIPTION="ODBTP is a fast, efficient TCP/IP protocol for connecting to Win32-based databases from any platform."
HOMEPAGE="http://odbtp.sourceforge.net/"
SRC_URI="mirror://sourceforge/odbtp/${P}.tar.gz"
+
LICENSE="GPL-2 LGPL-2"
SLOT="0"
+KEYWORDS="~amd64 ~x86"
IUSE="doc"
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ # Patch according to the README.64bitOS
+ use amd64 && epatch "${FILESDIR}/${P}-amd64.patch"
+}
+
src_compile() {
econf || die "econf failed"
emake -j1 || die "emake failed"