# Stolen from gentoo portage inherit eutils multilib DESCRIPTION="EDB \"Evan's Debugger\" (OllyDbg workalike for Linux)" HOMEPAGE="http://www.codef00.com/projects#debugger" SRC_URI="http://www.codef00.com/projects/debugger-${PV}.tgz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="" RESTRICT="strip mirror" DEPEND=" >=x11-libs/qt-core-4.5.0 >=x11-libs/qt-gui-4.5.0 >=dev-libs/boost-1.35.0" RDEPEND="${DEPEND}" S="${WORKDIR}/debugger" src_compile() { qmake -makefile DEFAULT_PLUGIN_PATH="/usr/$(get_libdir)/edb/" || dir "qmake failed" emake || die "emake failed" } src_install() { make INSTALL_ROOT=${D}/usr/ install dodoc CHANGELOG README README.plugins doman edb.1 } pkg_postinst() { einfo "Note: EBD's plugins are installed by default into /usr/$(get_libdir)/edb." einfo "If you have previously used EDB and have it set to look in a" einfo "different directory, then you will need to adjust this. Also" einfo "EDB looks for plugins in the current working directory as well" einfo "as the directory specified in the options, so that unpriviledged" einfo "users can use plugins not installed system wide." }