# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=5

inherit gnome2-utils cmake-utils

if [[ ${PV} == "9999" ]] ; then
	EGIT_REPO_URI=${EGIT_REPO_URI:-"git@git.backbone.ws:kolan/LAview.Core.git"}
	inherit git-r3
	KEYWORDS=""
else
	#SRC_URI="ftp://ftp.backbone.ws/projects/LAview.Core/${P}.tar.bz2"
	SRC_URI="https://git.backbone.ws/kolan/LAview.Core/archive/v${PVR}.tar.gz -> laview-core-${PVR}.tar.gz"
	KEYWORDS="-* ~x86 ~amd64"
fi

DESCRIPTION="LAview Core Libraries."

HOMEPAGE="https://git.backbone.ws/kolan/LAview.Core"

SLOT="0"

LICENSE="LGPL-3"

IUSE=""

DEPEND="app-office/laview-latex-struct
	dev-libs/gobject-plugin"

RDEPEND="${DEPEND}"

pkg_preinst() {
	gnome2_schemas_savelist
}

pkg_postinst() {
	gnome2_schemas_update
}

pkg_postrm() {
	gnome2_schemas_update
}