# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="2" DESCRIPTION="An open source Eye-Fi Server written in Python." HOMEPAGE="http://returnbooleantrue.blogspot.com/" SRC_URI="https://github.com/nirgal/EyeFiServer/archive/${PVR}.tar.gz" LICENSE="GPL-3" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="doc" DEPEND="dev-lang/python doc? ( app-text/txt2man )" src_unpack() { unpack ${A} } src_prepare() { cd "${WORKDIR}/EyeFiServer-${PVR}" if use doc ; then txt2man -t eyefiserver -r eyefiserver -s 1 -v "Executable programs or shell commands" -I file doc/eyefiserver.txt > doc/eyefiserver.1 txt2man -t eyefiserver.conf -r eyefiserver -s 5 -v "File formats and conventions" doc/eyefiserver.conf.txt > doc/eyefiserver.conf.5 fi } src_install() { cd "${WORKDIR}/EyeFiServer-${PVR}" insinto /etc doins etc/eyefiserver.conf || die doinitd etc/init.d/eyefiserver || die exeinto /usr/bin doexe src/eyefiserver || die if use doc ; then doman doc/eyefiserver.1 || die doman doc/eyefiserver.conf.5 || die fi } pkg_postinst() { elog "You will need to set up your /etc/eyefiserver.conf file before" elog "running EyeFi Server for the first time." }