diff options
Diffstat (limited to 'app-backup/backintime/backintime-0.9.26-r2.ebuild')
-rw-r--r-- | app-backup/backintime/backintime-0.9.26-r2.ebuild | 91 |
1 files changed, 91 insertions, 0 deletions
diff --git a/app-backup/backintime/backintime-0.9.26-r2.ebuild b/app-backup/backintime/backintime-0.9.26-r2.ebuild new file mode 100644 index 000000000000..299191f22691 --- /dev/null +++ b/app-backup/backintime/backintime-0.9.26-r2.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-backup/backintime/backintime-0.9.26-r2.ebuild,v 1.1 2010/02/07 20:37:41 bangert Exp $ + +EAPI="2" + +inherit eutils + +DESCRIPTION="A simple backup system inspired by TimeVault and FlyBack, with a GUI for GNOME and KDE4" +HOMEPAGE="http://backintime.le-web.org/" +SRC_URI="http://backintime.le-web.org/download/backintime/${P}_src.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="kde gnome" + +DEPEND="dev-lang/python + net-misc/rsync[xattr,acl] + kde? ( + >=kde-base/kdelibs-4 + kde-base/pykde4 + kde-base/kompare + kde-base/kdesu + ) + gnome? ( + gnome-base/libglade + gnome-base/gnome-session + dev-python/gnome-vfs-python + dev-python/gnome-python + ) + dev-python/notify-python + " + +RDEPEND="${DEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/backintime-0.9.26-information-disclosure.diff + epatch "${FILESDIR}"/backintime-0.9.26-dont-install-license.diff + #fix doc install location + sed -i "s:/doc/kde4/HTML/:/doc/HTML/:g" kde4/Makefile.template + sed -i "s:/doc/backintime:/doc/${P}:g" common/Makefile.template +} + +src_configure() { + cd "${S}"/common + econf + + if use kde ; then + cd "${S}"/kde4 + econf + fi + + if use gnome ; then + cd "${S}"/gnome + econf + fi +} + +src_compile() { + cd "${S}"/common + emake + + if use kde ; then + cd "${S}"/kde4 + emake + fi + + if use gnome ; then + cd "${S}"/gnome + emake + fi +} + +src_install() { + cd "${S}"/common + emake DESTDIR="${D}" install || die + + if use kde ; then + cd "${S}"/kde4 + emake DESTDIR="${D}" install || die + #use kdesu instead of kdesudo + sed -i 's/kdesudo/kdesu/' \ + "${D}"//usr/share/applications/kde4/backintime-kde4-root.desktop + fi + + if use gnome ; then + cd "${S}"/gnome + emake DESTDIR="${D}" install || die + fi +} |