Документ взят из кэша поисковой машины. Адрес оригинального документа : http://mirror.msu.net/pub/gentoo-portage/net-misc/pedro/pedro-1.6.ebuild
Дата изменения: Sun Aug 9 03:38:18 2015
Дата индексирования: Sun Apr 10 18:28:04 2016
Кодировка:
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=2

inherit eutils

DESCRIPTION="Pedro is a subscription/notification communications system"
HOMEPAGE="http://www.itee.uq.edu.au/~pjr/HomePages/PedroHome.html"
SRC_URI="http://www.itee.uq.edu.au/~pjr/HomePages/PedroFiles/${P}.tgz
doc? ( mirror://gentoo/${PN}-manual-${PV}.tar.gz )"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc x86"
IUSE="doc examples"

RDEPEND="dev-libs/glib:2"
DEPEND="${RDEPEND}"

S="${WORKDIR}"/${P}

src_prepare() {
epatch "${FILESDIR}"/${P}-portage.patch
}

src_install() {
emake DESTDIR="${D}" install || die "emake install failed"

dodoc AUTHORS README || die

if use doc ; then
dodoc "${WORKDIR}"/${PN}.pdf || die
fi

if use examples ; then
insinto /usr/share/doc/${PF}/examples
doins src/examples/*.{c,tcl} || die
insinto /usr/share/doc/${PF}/examples/java_api
doins src/java_api/*.java || die
insinto /usr/share/doc/${PF}/examples/python_api
doins src/python_api/*.py || die
fi
}