# 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="" RDEPEND="x11-libs/wxGTK:2.8[X]" DEPEND="sys-apps/sed ${RDEPEND}" #it seems there's a typo in the 'BINDI' instead of 'BINDIR' variable src_prepare() { einfo 'Patching typo!' sed -i '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 DESTDIR="${D}" install || die 'Installation failed!' }