summaryrefslogtreecommitdiff
authorMichael Krelin <hacker@klever.net>2007-02-21 22:19:58 (UTC)
committer Michael Krelin <hacker@klever.net>2007-02-21 22:19:58 (UTC)
commit40092ef2fa69ab4c44b7c993913efc1ada4c070c (patch) (unidiff)
tree46890199cb55eeaaff770d668a091dbfbac0c40f
parent48d0235ef627e7bc0b51920e08111cdda210629d (diff)
downloadmisc-40092ef2fa69ab4c44b7c993913efc1ada4c070c.zip
misc-40092ef2fa69ab4c44b7c993913efc1ada4c070c.tar.gz
misc-40092ef2fa69ab4c44b7c993913efc1ada4c070c.tar.bz2
ibpp
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--dev-libs/ibpp/Manifest16
-rw-r--r--dev-libs/ibpp/files/digest-ibpp-2.3.5.03
-rw-r--r--dev-libs/ibpp/files/ibpp-2.3.5.0-CXXFLAGS.patch30
-rw-r--r--dev-libs/ibpp/files/ibpp-2.3.5.0-amd64.patch21
-rw-r--r--dev-libs/ibpp/ibpp-2.3.5.0.ebuild44
-rw-r--r--profiles/categories1
6 files changed, 115 insertions, 0 deletions
diff --git a/dev-libs/ibpp/Manifest b/dev-libs/ibpp/Manifest
new file mode 100644
index 0000000..6989f0b
--- a/dev/null
+++ b/dev-libs/ibpp/Manifest
@@ -0,0 +1,16 @@
1AUX ibpp-2.3.5.0-CXXFLAGS.patch 987 RMD160 edec8a31d2d1615d66773e2c7345b2a58e5cae06 SHA1 6e88ccbc5833abba35c7145e97868a44104e911f SHA256 972cfc6b2845b4b832ca854fe5e0a42e873eb784a2ca3ae52565e0e1e3c4c5d1
2MD5 ee92adba0600f1c0045776b937867213 files/ibpp-2.3.5.0-CXXFLAGS.patch 987
3RMD160 edec8a31d2d1615d66773e2c7345b2a58e5cae06 files/ibpp-2.3.5.0-CXXFLAGS.patch 987
4SHA256 972cfc6b2845b4b832ca854fe5e0a42e873eb784a2ca3ae52565e0e1e3c4c5d1 files/ibpp-2.3.5.0-CXXFLAGS.patch 987
5AUX ibpp-2.3.5.0-amd64.patch 785 RMD160 598f44878f21ba8dca3a09739026a7671d311d6f SHA1 fd10c3cf26b8eb4a1cf9f3526e3f7950ebb2f2d0 SHA256 bd4c86174f8ba0000cc5a1fc846afc10af7205d7a47361d1cd004f4d1124e42f
6MD5 14ae81cccb524af4434b4db4fdb8db7d files/ibpp-2.3.5.0-amd64.patch 785
7RMD160 598f44878f21ba8dca3a09739026a7671d311d6f files/ibpp-2.3.5.0-amd64.patch 785
8SHA256 bd4c86174f8ba0000cc5a1fc846afc10af7205d7a47361d1cd004f4d1124e42f files/ibpp-2.3.5.0-amd64.patch 785
9DIST ibpp-2-3-5-0-src.zip 126081 RMD160 02226aabc07177b4b24595667301b5d39cc483b2 SHA1 61b0c6f96b2c1f411f959632e0e800e6de116004 SHA256 422a72596f933ab81a9097dcf3d6ad275bf148ea260a15e68456fa1ad01e0eed
10EBUILD ibpp-2.3.5.0.ebuild 1003 RMD160 76f02d3ac1bb965da95b0b957d237a19a7c0178f SHA1 1e314805ddcfb99e60ff47ac7882ea6debd439ec SHA256 8906c50c9b798e6d5c866a5de85a1b3525e7273f26de9e0bf91b1401a1cc420d
11MD5 7b2beb4c3fb2faa49de70c24bdc908a2 ibpp-2.3.5.0.ebuild 1003
12RMD160 76f02d3ac1bb965da95b0b957d237a19a7c0178f ibpp-2.3.5.0.ebuild 1003
13SHA256 8906c50c9b798e6d5c866a5de85a1b3525e7273f26de9e0bf91b1401a1cc420d ibpp-2.3.5.0.ebuild 1003
14MD5 a9b9b947c101ec16af710ade4dd02ca8 files/digest-ibpp-2.3.5.0 241
15RMD160 20e5b70d71743fafe10df714ed06e1fc6ec88b62 files/digest-ibpp-2.3.5.0 241
16SHA256 8910fd8b2f00f1015212e003a888f5efaee124125629fe1b648a886f7b228319 files/digest-ibpp-2.3.5.0 241
diff --git a/dev-libs/ibpp/files/digest-ibpp-2.3.5.0 b/dev-libs/ibpp/files/digest-ibpp-2.3.5.0
new file mode 100644
index 0000000..62f93d1
--- a/dev/null
+++ b/dev-libs/ibpp/files/digest-ibpp-2.3.5.0
@@ -0,0 +1,3 @@
1MD5 f96991555dec3c98216e0d78f31b8586 ibpp-2-3-5-0-src.zip 126081
2RMD160 02226aabc07177b4b24595667301b5d39cc483b2 ibpp-2-3-5-0-src.zip 126081
3SHA256 422a72596f933ab81a9097dcf3d6ad275bf148ea260a15e68456fa1ad01e0eed ibpp-2-3-5-0-src.zip 126081
diff --git a/dev-libs/ibpp/files/ibpp-2.3.5.0-CXXFLAGS.patch b/dev-libs/ibpp/files/ibpp-2.3.5.0-CXXFLAGS.patch
new file mode 100644
index 0000000..6823ca6
--- a/dev/null
+++ b/dev-libs/ibpp/files/ibpp-2.3.5.0-CXXFLAGS.patch
@@ -0,0 +1,30 @@
1diff -Naur ibpp.orig/Makefile ibpp/Makefile
2 --- ibpp.orig/Makefile2004-09-27 14:08:44.000000000 -0400
3 +++ ibpp/Makefile2005-09-16 02:44:37.000000000 -0400
4@@ -164,20 +164,19 @@
5 # building on linux (any flavour, I suppose)
6 ifeq ($(PLATFORM),linux)
7 CXXOUTPUT =-o
8 -CXXFLAGS =-DIBPP_LINUX
9 -CXXFLAGS+=-DIBPP_GCC
10 -CXXFLAGS+=-I./ -I./fbheaders
11 #
12 # change -lfbclient by -lgds if building with Firebird 1.x or InterBase
13 # -lfbclient (or -lgds) is for Firebird 1.5 SS and higher
14 # -lfbembed is for Firebird 1.5 CS and higher
15 #
16 LIBS+=-lfbclient -lcrypt -lm -ldl -lpthread # dependancies for shared library
17 -ifeq ($(TARGETDIR),release)
18 - CXXFLAGS+= -O3
19 -else
20 - CXXFLAGS+= -g -DDEBUG -Wall
21 +ifeq ($(TARGETDIR),debug)
22 + CXXFLAGS=-g -DDEBUG -Wall
23 endif
24 +CXXFLAGS+=-fPIC
25 +CXXFLAGS+=-DIBPP_LINUX
26 +CXXFLAGS+=-DIBPP_GCC
27 +CXXFLAGS+=-I./ -I./fbheaders
28 #
29 TARGETS =$(TARGETDIR)/$(PLATFORM)/libibpp.a \
30 $(TARGETDIR)/$(PLATFORM)/libibpp.so \
diff --git a/dev-libs/ibpp/files/ibpp-2.3.5.0-amd64.patch b/dev-libs/ibpp/files/ibpp-2.3.5.0-amd64.patch
new file mode 100644
index 0000000..283a46b
--- a/dev/null
+++ b/dev-libs/ibpp/files/ibpp-2.3.5.0-amd64.patch
@@ -0,0 +1,21 @@
1diff -Naur ibpp.orig/array.cpp ibpp/array.cpp
2 --- ibpp.orig/array.cpp2004-09-23 17:34:08.000000000 +0200
3 +++ ibpp/array.cpp2004-10-25 22:51:01.000000000 +0200
4@@ -289,7 +289,7 @@
5 throw ExceptionImpl("Array::ReadTo", "Wrong count of array elements");
6
7 IBS status;
8 -long lenbuf = mBufferSize;
9 +ISC_LONG lenbuf = mBufferSize;
10 (*gds.Call()->m_array_get_slice)(status.Self(), mDatabase->GetHandlePtr(),
11 mTransaction->GetHandlePtr(), &mId, &mDesc, mBuffer, &lenbuf);
12 if (status.Errors())
13@@ -1088,7 +1088,7 @@
14 }
15
16 IBS status;
17 -long lenbuf = mBufferSize;
18 +ISC_LONG lenbuf = mBufferSize;
19 (*gds.Call()->m_array_put_slice)(status.Self(), mDatabase->GetHandlePtr(),
20 mTransaction->GetHandlePtr(), &mId, &mDesc, mBuffer, &lenbuf);
21 if (status.Errors())
diff --git a/dev-libs/ibpp/ibpp-2.3.5.0.ebuild b/dev-libs/ibpp/ibpp-2.3.5.0.ebuild
new file mode 100644
index 0000000..02ffb39
--- a/dev/null
+++ b/dev-libs/ibpp/ibpp-2.3.5.0.ebuild
@@ -0,0 +1,44 @@
1# Copyright 1999-2006 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/dev-libs/ibpp/ibpp-2.3.4.0.ebuild,v 1.2 2006/03/19 22:31:31 halcy0n Exp $
4
5inherit eutils
6
7MY_P=${P//./-}-src
8
9DESCRIPTION="IBPP, a C++ client API for firebird 1.0"
10HOMEPAGE="http://www.ibpp.org/"
11SRC_URI="mirror://sourceforge/ibpp/${MY_P}.zip"
12
13LICENSE="MPL-1.1"
14SLOT="0"
15KEYWORDS="~x86 ~amd64"
16IUSE="debug"
17
18RDEPEND=">=dev-db/firebird-1.5.1"
19DEPEND="${RDEPEND}
20 app-arch/unzip"
21
22src_unpack() {
23 mkdir ${P}
24 cd ${P}
25 unpack ${A}
26 cd ${S}
27
28 epatch ${FILESDIR}/${P}-CXXFLAGS.patch
29 use amd64 && epatch ${FILESDIR}/${P}-amd64.patch
30}
31
32src_compile() {
33 emake \
34 $(use debug && echo 'DEBUG=1') \
35 || die "emake failed"
36}
37
38src_install() {
39 insinto /usr/include
40 doins ibpp.h || die "doins failed"
41 cd $(if use debug ; then echo debug ; else echo release ; fi)/linux || die
42 dolib.so libibpp.so || die "dolib.so failed"
43 dolib.a libibpp.a || die "dolib.a failed"
44}
diff --git a/profiles/categories b/profiles/categories
index e9c4b4d..79ca428 100644
--- a/profiles/categories
+++ b/profiles/categories
@@ -2,2 +2,3 @@ app-text
2dev-db 2dev-db
3dev-libs
3dev-perl 4dev-perl