/[gentoo-x86]/dev-db/libiodbc/libiodbc-3.52.7-r1.ebuild
Gentoo

Contents of /dev-db/libiodbc/libiodbc-3.52.7-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Wed Jul 11 23:02:36 2012 UTC (21 months, 1 week ago) by blueness
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +2 -2 lines
Keyword ~mips

(Portage version: 2.1.10.65/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-db/libiodbc/libiodbc-3.52.7-r1.ebuild,v 1.4 2012/05/09 16:29:20 aballier Exp $
4
5 EAPI=4
6
7 inherit eutils
8
9 DESCRIPTION="ODBC Interface for Linux."
10 HOMEPAGE="http://www.iodbc.org/"
11 SRC_URI="http://www.iodbc.org/downloads/iODBC/${P}.tar.gz"
12
13 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos"
14 LICENSE="|| ( LGPL-2 BSD )"
15 SLOT="0"
16 IUSE="gtk static-libs"
17
18 DEPEND=">=sys-libs/readline-4.1
19 >=sys-libs/ncurses-5.2
20 gtk? ( x11-libs/gtk+:2 )"
21 RDEPEND="${DEPEND}"
22
23 DOCS="AUTHORS ChangeLog NEWS README"
24
25 MAKEOPTS="${MAKEOPTS} -j1"
26
27 src_prepare() {
28 sed -i.orig \
29 -e '/^cd "$PREFIX"/,/^esac/d' \
30 iodbc/install_libodbc.sh || die "sed failed"
31 epatch \
32 "${FILESDIR}"/libiodbc-3.52.7-debian_bug501100.patch \
33 "${FILESDIR}"/libiodbc-3.52.7-debian_bug508480.patch \
34 "${FILESDIR}"/libiodbc-3.52.7-gtk.patch \
35 "${FILESDIR}"/libiodbc-3.52.7-multilib.patch \
36 "${FILESDIR}"/libiodbc-3.52.7-unicode_includes.patch
37 chmod -x include/*.h
38 }
39
40 src_configure() {
41 econf \
42 --with-layout=gentoo \
43 --with-iodbc-inidir=yes \
44 $(use_enable gtk gui) \
45 $(use_enable static-libs static)
46 }
47
48 src_install() {
49 default
50 use static-libs || find "${ED}" -name '*.la' -exec rm -f {} +
51 }

  ViewVC Help
Powered by ViewVC 1.1.20