# Copyright 1999-2004 Gentoo Foundation # 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.14 2004/06/29 17:53:40 agriffis Exp $ 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 sparc" IUSE="" 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 }