summaryrefslogtreecommitdiff
blob: 53d6785b6e7e824e601c1d4cccf3b74cb2a9728c (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
45
46
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-db/xmysqladmin/xmysqladmin-1.0.ebuild,v 1.9 2003/02/13 10:06:13 vapier 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
	dev-db/mysql"

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
}