blob: e2a9783b1aa45625ddd7e66c96de471c1259c6dc (
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
|
# Copyright 1999-2001 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.2 2002/07/11 06:30:19 drobbins 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"
DEPEND="virtual/x11
>=x11-libs/xforms-089"
#RDEPEND=""
src_unpack() {
unpack ${A}
cd ${S}
sed -e 's:^INSTALLPATH.*:INSTALLPATH = /usr/bin:g' -e \
's:^PIXMAPPATH.*:PIXMAPPATH = /usr/share/pixmaps: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
try make INSTALLPATH=${D}/usr/bin PIXMAPPATH=${D}/usr/share/pixmaps install
dodoc README INSTALL CHANGES ANNOUNCE TODO
}
|