# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils MY_P="${P/ifm/IFM}" DESCRIPTION="Docking library for wxWidgets." HOMEPAGE="http://www.snakesoft.net/wxifm" SRC_URI="http://www.snakesoft.net/wxifm/${MY_P%.*}.zip http://www.snakesoft.net/wxifm/${MY_P}-patch.zip" LICENSE="wxWinLL-3" KEYWORDS="~x86" IUSE="debug" SLOT="0" DEPEND="app-arch/unzip >=sys-devel/autoconf-2.52 >=x11-libs/wxGTK-2.4" S="${WORKDIR}/wxIFM" src_unpack() { unpack ${A} cp -r include/ wxIFM/ cp -r src/ wxIFM/ cp changelog.txt wxIFM/ } src_compile() { if use debug; then emake -f Makefile.Debug.unix || die "emake failed" else emake -f Makefile.Release.unix || die "emake failed" fi } src_install() { if use debug; then dolib "${S}/lib/libwx_gtk2_ifm-2.5d.a" else dolib "${S}/lib/libwx_gtk2_ifm-2.5.a" fi insinto /usr/include/wx doins ${S}/include/wx/*.h dodoc changelog.txt GTK2Readme.txt readme.txt todo.txt }