# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=2 WX_GTK_VER=2.8 inherit wxwidgets PV=0.10 MY_PN="wxHexEditor" DESCRIPTION="A cross-platform hex editor designed specially for large files." HOMEPAGE="http://wxhexeditor.sourceforge.net/" SRC_URI="mirror://sourceforge/${PN}/${MY_PN}-v${PV}-src.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" RDEPEND="x11-libs/wxGTK:2.8[X]" DEPEND="sys-apps/sed ${RDEPEND}" S="${WORKDIR}/${MY_PN}" src_prepare() { #adding user CXXFLAGS and LDFLAGS to makefile sed -i -e "s|CXXFLAGS *=\(.*\)$|CXXFLAGS=\1 ${CXXFLAGS}|" \ -e "s|LDFLAGS *=\(.*\)$|LDFLAGS=\1 ${LDFLAGS}|" makefile || die } src_install() { emake DESTDIR="${D}" install || die }