From b3f80e0306587663a493502e4fcfa1c17c5836fd Mon Sep 17 00:00:00 2001 From: Ctibor Date: Tue, 23 Oct 2012 22:23:48 +0200 Subject: Initial import of the local overlay. --- eclass/fatrat-plugin.eclass | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100755 eclass/fatrat-plugin.eclass (limited to 'eclass/fatrat-plugin.eclass') diff --git a/eclass/fatrat-plugin.eclass b/eclass/fatrat-plugin.eclass new file mode 100755 index 0000000..951785c --- /dev/null +++ b/eclass/fatrat-plugin.eclass @@ -0,0 +1,41 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +# +# Original Author: David Watzke +# Purpose: simplify creating ebuilds for FatRat's plugins +# + +EAPI="1" + +if [[ "${PV}" == "9999" ]]; then + inherit git + EGIT_REPO_URI="git://git.dolezel.info/${PN}.git" + SRC_URI="" + DEPEND="|| ( ~net-misc/fatrat-9999 ~net-misc/fatrat-1.1.9999 )" +else + SRC_URI="http://www.dolezel.info/download/data/${PN}/${P}.tar.gz" + DEPEND="~net-misc/fatrat-${PV}" +fi + +HOMEPAGE="http://fatrat.dolezel.info/" + +LICENSE="GPL-2" +SLOT="0" +IUSE="-debug" +RESTRICT="mirror" + +RDEPEND="${DEPEND}" + +fatrat-plugin_src_compile() { + use debug && myconf="-DCMAKE_BUILD_TYPE=Debug" + cmake . -DCMAKE_INSTALL_PREFIX="/usr" ${myconf} || die "cmake failed" + emake || die "emake failed" +} + +fatrat-plugin_src_install() { + emake DESTDIR="${D}" install || die "emake install failed" +} + +EXPORT_FUNCTIONS src_compile src_install -- cgit v1.2.3