# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-gfx/comical/comical-0.8-r2.ebuild,v 1.3 2010/10/12 09:03:24 phajdan.jr Exp $ EAPI=2 inherit eutils wxwidgets DESCRIPTION="Comical is a sequential image display program, to deal with .cbr and .cbz files" HOMEPAGE="http://comical.sourceforge.net/" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" LICENSE="GPL-2 unRAR" SLOT="0" KEYWORDS="amd64 x86 ~x86-fbsd" DEPEND="x11-libs/wxGTK:2.8" RDEPEND="${DEPEND}" IUSE="" src_prepare() { export WX_GTK_VER="2.8" need-wxwidgets unicode epatch "${FILESDIR}"/${P}-wxGTK-2.8.patch # Fix Makefiles # replace wx-config for wx-config-2.8 sed -i -e "s:wx-config:${WX_CONFIG}:" Makefile src/Makefile # CFLAGS sed -i -e "s:CFLAGS = -O2 -Wall -pipe:CFLAGS = ${CFLAGS}:" src/Makefile sed -i -e "s:CXXFLAGS=-O2 -fPIC:CXXFLAGS = ${CXXFLAGS} -fPIC:" unrar/makefile.linux sed -i -e "s:CFLAGS=-Os:CFLAGS = ${CFLAGS}:" unzip/Makefile } src_compile() { # Parallel build doesn't work. emake -j1 || die "emake failed" } src_install() { dobin comical || die dodoc AUTHORS ChangeLog README TODO insinto /usr/share/pixmaps doins "${S}/Comical Icons/${PN}.xpm" || die insinto /usr/share/applications doins "${FILESDIR}/${PN}.desktop" || die }