# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit multilib MY_PN="${PN#sylpheed-claws-}_plugin" MY_P="${MY_PN}-${PV}" SC_BASE="1.9.99" DESCRIPTION="Plugin for sylpheed-claws to use perl to write filtering rules" HOMEPAGE="http://claws.sylpheed.org" SRC_URI="mirror://sourceforge/sylpheed-claws/sylpheed-claws-external-plugins-${SC_BASE}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="" DEPEND=">=mail-client/sylpheed-claws-${SC_BASE} >=dev-lang/perl-5.8.0 >=x11-libs/gtk+-2.4" S="${WORKDIR}/${MY_P}" src_compile() { econf || die "Configuration failed" emake || die "Compilation failed" pod2man --section=1 --release=${PV} --name=sc_perl sc_perl.pod > sc_perl.1 } src_install() { make DESTDIR="${D}" install rm -f ${D}usr/lib*/sylpheed-claws/plugins/*.{a,la} dodoc AUTHORS ChangeLog NEWS README doman sc_perl.1 exeinto /usr/$(get_libdir)/sylpheed-claws/tools doexe tools/*.pl } pkg_postinst() { einfo "The documentation for this plugin is contained in a manpage." einfo "Use 'man sc_perl' to read it." }