# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="2" WX_GTK_VER="2.8" inherit subversion wxwidgets ESVN_REPO_URI="https://wxhexeditor.svn.sourceforge.net/svnroot/wxhexeditor/trunk" DESCRIPTION="wxGTK hexadecimal editor" HOMEPAGE="http://wxhexeditor.sourceforge.net" LICENSE="GPL-2" SLOT="0" KEYWORDS="" DEPEND="sys-apps/sed x11-libs/wxGTK:2.8[X]" RDEPEND="x11-libs/wxGTK:2.8[X]" #the 'DESTDIR' variable needs to be set to our temp install directory #also it seems there's a typo in the 'BINDI' instead of 'BINDIR' variable src_prepare() { einfo 'Patching stuff!' sed -i -e 's|DESTDIR\s*=.*$|DESTDIR=\$\{D\}|' -e 's|^.*\$(PREFIX)\/bin$|BINDIR=\$(PREFIX)\/bin|' makefile || die 'Patching makefile failed!' } src_compile() { einfo 'Compiling!' emake || die 'Compiling failed!' } src_install() { einfo 'Installing files!' emake install || die 'Installation failed!' }