blob: de91bb57bc777846450d6588027536f28492d043 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/dev-db/xmysqladmin/xmysqladmin-1.0.ebuild,v 1.6 2002/09/13 05:34:10 rphillips Exp $
S=${WORKDIR}/${P}
DESCRIPTION="xforms based front end to mysql"
SRC_URI="ftp://ftp.mysql.com/Contrib/${P}.tar.gz"
HOMEPAGE="http://www.mysql.org"
SLOT="0"
LICENSE="as-is"
KEYWORDS="x86"
DEPEND="virtual/x11 x11-libs/xforms"
src_unpack() {
unpack ${A}
cd ${S}
sed -e 's:^INSTALLPATH.*:INSTALLPATH = /usr/bin:g' -e \
's:^PIXMAPPATH.*:PIXMAPPATH = /usr/share/pixmaps:g' -e \
's:-I/usr/X11R6/include:-I/usr/X11R6/include/X11:g' -e \
's:^MYSQLINC.*:MYSQLINC = -I/usr/include/mysql:g' -e \
's:^MYSQLDBDIR.*:MYSQLDBDIR = -DMYSQLDBDIR=\\\"/var/mysql\\\":g' -e \
's:^MYSQLLOAD.*:MYSQLLOAD = \-Wl\,\-R/usr/lib/mysql \-L/usr/lib/mysql \-lmysqlclient:g' -e \
's:\./$(PROGRAM)::g' Makefile > Makefile.gentoo
}
src_compile() {
make -f Makefile.gentoo || die
}
src_install () {
dodir /usr/bin
dodir /usr/share/pixmaps
make \
INSTALLPATH=${D}/usr/bin \
PIXMAPPATH=${D}/usr/share/pixmaps \
install || die
dodoc README INSTALL CHANGES ANNOUNCE TODO
}
|