/[gentoo-x86]/app-office/mdbtools/mdbtools-0.4.ebuild
Gentoo

Contents of /app-office/mdbtools/mdbtools-0.4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Wed Nov 20 21:43:26 2002 UTC (17 years, 11 months ago) by woodchip
Branch: MAIN
Changes since 1.1: +2 -2 lines
repoman

1 woodchip 1.1 # Copyright 1999-2002 Gentoo Technologies, Inc.
2     # Distributed under the terms of the GNU General Public License v2
3 woodchip 1.2 # $Header: /home/cvsroot/gentoo-x86/app-office/mdbtools/mdbtools-0.4.ebuild,v 1.1 2002/11/20 18:53:36 woodchip Exp $
4 woodchip 1.1
5     DESCRIPTION="A set of libraries and utilities for reading Microsoft Access database (MDB) files"
6     HOMEPAGE="http://sourceforge.net/projects/mdbtools/"
7    
8     S="${WORKDIR}/${P}"
9     SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
10    
11     LICENSE="GPL LGPL"
12     SLOT="0"
13     KEYWORDS="~x86"
14     IUSE=""
15    
16     DEPEND=">=x11-libs/gtk+-1.2.0
17     >=sys-libs/libtermcap-compat-1.2.3
18     >=sys-devel/flex-2.5.0
19     >=sys-devel/bison-1.35
20 woodchip 1.2 odbc? ( >=dev-db/unixODBC-2.0 )"
21 woodchip 1.1
22     src_unpack() {
23     unpack ${A} || die
24     cd ${S} || die
25     patch -p1 <${FILESDIR}/mdbtools-0.4-termcap.diff || die
26     }
27    
28     src_compile() {
29     local myconf
30     use odbc && myconf="${myconf} --with-unixodbc=/usr"
31    
32     ./configure \
33     --enable-sql \
34     --prefix=/usr \
35     --mandir=/usr/share/man \
36     --infodir=/usr/share/info \
37     --host=${CHOST} ${myconf} || die "./configure failed"
38    
39     emake || die
40     }
41    
42     src_install() {
43     make DESTDIR=${D} install || die
44    
45     # The install process installs pixmaps include the /usr/include
46     # directory. There are also some .h files that aren't included
47     # in any of the RPM files on the sourceforge site, so I'm
48     # thinking they are put here by mistake, like the pixmaps.
49     rm ${D}/usr/include/*.xpm ${D}/usr/include/gmdb.h \
50     ${D}/usr/include/gtkhlist.h ${D}/usr/include/connectparams.h
51    
52     dodoc COPYING* NEWS README* TODO AUTHORS HACKING ChangeLog
53     }

  ViewVC Help
Powered by ViewVC 1.1.20