diff options
Diffstat (limited to 'app-backup/backintime/backintime-1.0.2.ebuild')
-rw-r--r-- | app-backup/backintime/backintime-1.0.2.ebuild | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/app-backup/backintime/backintime-1.0.2.ebuild b/app-backup/backintime/backintime-1.0.2.ebuild new file mode 100644 index 0000000..3a68168 --- /dev/null +++ b/app-backup/backintime/backintime-1.0.2.ebuild @@ -0,0 +1,88 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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() { + #fix doc install location + sed -i "s:/doc/kde4/HTML/:/doc/HTML/:g" kde4/Makefile.template + sed -i "s:/doc/backintime:/doc/${PF}: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 +} |