# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ EAPI="4" inherit eutils toolchain-funcs DESCRIPTION="A collection of several tools related to OpenPGP" HOMEPAGE="http://pgp-tools.alioth.debian.org/" SRC_URI="mirror://debian/pool/main/s/signing-party/${PN}_${PV}.orig.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="amd64 ppc x86 ~ppc-macos" IUSE="" DEPEND="" RDEPEND=">=app-crypt/gnupg-1.3.92 dev-perl/GnuPG-Interface dev-perl/text-template dev-perl/MIME-tools net-mail/qprint >=dev-perl/MailTools-1.62 virtual/mailx virtual/mta dev-lang/perl || ( dev-perl/libintl-perl dev-perl/Text-Iconv app-text/recode )" src_prepare() { # app-crypt/keylookup rm -fr keylookup # media-gfx/springgraph rm -fr springgraph epatch "${FILESDIR}"/${PN}-makefile.diff sed -i -e \ "s:/usr/share/doc/signing-party/caff/caffrc.sample:${EPREFIX}/usr/share/doc/${P}/caff/caffrc.sample.gz:g" \ caff/caff || die "Sed failed" sed -i -e "s/make pgpring/\$(MAKE) pgpring/" keyanalyze/Makefile \ || die "Sed failed" sed -i -e \ "s|:/usr/share/signing-party|:${EPREFIX}/usr/share/signing-party|" \ gpgsigs/gpgsigs || die "Sed failed" } src_compile() { emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" } src_install() { # Check Makefile when a new tool is introduced to this package. # caff dobin caff/caff caff/pgp-clean caff/pgp-fixkey docinto caff dodoc caff/{README*,THANKS,TODO,caffrc.sample} # gpgdir dobin gpgdir/gpgdir docinto gpgdir dodoc gpgdir/{VERSION,LICENSE,README,INSTALL,CREDITS,ChangeLog*} # gpg-key2ps dobin gpg-key2ps/gpg-key2ps docinto gpg-key2ps dodoc gpg-key2ps/README # gpglist dobin gpglist/gpglist # gpg-mailkeys dobin gpg-mailkeys/gpg-mailkeys docinto gpg-mailkeys dodoc gpg-mailkeys/{example.gpg-mailkeysrc,README} # gpgparticipants dobin gpgparticipants/gpgparticipants # gpgwrap dobin gpgwrap/bin/gpgwrap docinto gpgwrap dodoc gpgwrap/{LICENSE,NEWS,README} doman gpgwrap/doc/gpgwrap.1 # gpgsigs dobin gpgsigs/gpgsigs insinto /usr/share/signing-party doins gpgsigs/gpgsigs-eps-helper # keyanalyze # TODO: some of the scripts are intended for webpages, and not really # packaging, so they are NOT installed yet. newbin keyanalyze/pgpring/pgpring pgpring-keyanalyze dobin keyanalyze/{keyanalyze,process_keys} docinto keyanalyze dodoc keyanalyze/{README,Changelog} # See app-crypt/keylookup instead #dobin keylookup/keylookup #docinto keylookup #dodoc keylookup/NEWS # sig2dot dobin sig2dot/sig2dot dodoc sig2dot/README.sig2dot # See media-gfx/springgraph instead #dobin springgraph/springgraph #dodoc springgraph/README.springgraph # all other manpages, and the root doc doman */*.1 dodoc README }