# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/mail-client/sylpheed-claws/sylpheed-claws-0.9.12-r1.ebuild,v 1.1 2004/08/09 10:57:16 dragonheart Exp $ IUSE="nls gnome xface dillo crypt spell imlib ssl ldap ipv6 pda clamav pdflib" inherit eutils GS_PN=ghostscript-viewer GS_PV=0.6 MY_GS=${GS_PN}-${GS_PV} MY_P="sylpheed-${PV}claws" S2=${S}/src/plugins/${MY_GS} DESCRIPTION="Bleeding edge version of Sylpheed" HOMEPAGE="http://sylpheed-claws.sf.net" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2 pdflib? ( mirror://sourceforge/${PN}/${MY_GS}.tar.bz2 )" SLOT="0" LICENSE="GPL-2" KEYWORDS="~x86 ~ppc ~sparc ~alpha" COMMONDEPENDS="=x11-libs/gtk+-1.2* pda? ( >=app-pda/jpilot-0.99 ) ssl? ( >=dev-libs/openssl-0.9.6b ) ldap? ( >=net-nds/openldap-2.0.7 ) crypt? ( =app-crypt/gpgme-0.3.14-r1 ) dillo? ( net-www/dillo ) gnome? ( >=media-libs/gdk-pixbuf-0.16 ) imlib? ( >=media-libs/imlib-1.9.10 ) spell? ( virtual/aspell-dict ) xface? ( >=media-libs/compface-1.4 ) pdflib? ( virtual/ghostscript ) nls? ( >=sys-devel/gettext-0.12 )" DEPEND="${COMMONDEPENDS} >=sys-apps/sed-4" RDEPEND="${COMMONDEPENDS} app-misc/mime-types net-mail/metamail x11-misc/shared-mime-info" PROVIDE="virtual/sylpheed" src_unpack() { unpack ${A} mv ${WORKDIR}/${MY_GS} ${S}/src/plugins # use shared-mime-info cd ${S}/src epatch ${FILESDIR}/procmime.patch # procmime API was changed between 0.9.6 and 0.9.7, # default Makefile uses installed (=old) headers if use pdflib; then cd ${S2} epatch ${FILESDIR}/gv-procmime-Makefile.in.patch fi } src_compile() { local myconf myconf="${myconf} `use_enable gnome gdk-pixbuf`" myconf="${myconf} `use_enable imlib`" myconf="${myconf} `use_enable spell aspell`" myconf="${myconf} `use_enable ldap`" myconf="${myconf} `use_enable ssl openssl`" myconf="${myconf} `use_enable crypt gpgme`" myconf="${myconf} `use_enable ipv6`" myconf="${myconf} `use_enable pda jpilot`" myconf="${myconf} `use_enable nls`" myconf="${myconf} `use_enable dillo dillo-viewer-plugin`" myconf="${myconf} `use_enable clamav clamav-plugin`" myconf="${myconf} `use_enable xface compface`" echo config=${myconf} sed -i -e 's: