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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Sun Mar 27 12:26:23 2011 UTC (3 years, 6 months ago) by nirbheek
Branch: MAIN
Changes since 1.10: +5 -3 lines
Fix slot-dep on gtk+

(Portage version: 2.1.9.44/cvs/Linux x86_64)

1 # Copyright 1999-2011 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.ebuild,v 1.10 2010/07/10 12:00:36 grobian Exp $
4
5 EAPI="1"
6
7 KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos"
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 LICENSE="|| ( LGPL-2 BSD )"
13 SLOT="0"
14 IUSE="gtk"
15
16 DEPEND=">=sys-libs/readline-4.1
17 >=sys-libs/ncurses-5.2
18 gtk? ( x11-libs/gtk+:2 )"
19 RDEPEND="${DEPEND}"
20
21 src_unpack() {
22 unpack ${A}
23 cd "${S}"
24 sed -i.orig \
25 -e '/^cd "$PREFIX"/,/^esac/d' \
26 iodbc/install_libodbc.sh || die "sed failed"
27 }
28
29 src_compile() {
30 econf \
31 --with-layout=gentoo \
32 --with-iodbc-inidir=yes \
33 $(use_enable gtk gui) \
34 || die "econf failed"
35
36 emake -j1 || die "emake failed"
37 }
38
39 src_install() {
40 emake -j1 DESTDIR="${D}" install || die "emake install failed"
41 dodoc AUTHORS ChangeLog NEWS README
42 }

  ViewVC Help
Powered by ViewVC 1.1.20