You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/media-gfx/pinta/pinta-9999.ebuild

59 lines
1.2 KiB

# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit autotools fdo-mime gnome2-utils git-2 mono
DESCRIPTION="Simple Painting for Gtk"
HOMEPAGE="http://pinta-project.com"
EGIT_REPO_URI="git://github.com/PintaProject/Pinta.git"
LICENSE="MIT CC-BY-3.0"
SLOT="0"
KEYWORDS=""
COMMON_DEPEND="dev-dotnet/atk-sharp:2
dev-dotnet/gdk-sharp:2
dev-dotnet/glib-sharp:2
dev-dotnet/gtk-sharp:2
dev-dotnet/mono-addins[gtk]
dev-dotnet/pango-sharp:2
dev-lang/mono"
RDEPEND="${COMMON_DEPEND}
x11-libs/cairo[X]
x11-libs/gdk-pixbuf[X,jpeg,tiff]
x11-themes/gnome-icon-theme"
DEPEND="${COMMON_DEPEND}
dev-util/intltool
virtual/pkgconfig"
src_prepare() {
local i
if [[ -n "${LINGUAS+x}" ]] ; then
for i in $(cd "${S}"/po ; echo *.po) ; do
if ! has ${i%.po} ${LINGUAS} ; then
sed -i -e "/po\/${i%.po}.po/{N;N;d;}" Pinta.Install.proj || die
fi
done
fi
eautoreconf
}
pkg_preinst() {
gnome2_icon_savelist
}
pkg_postinst() {
fdo-mime_desktop_database_update
fdo-mime_mime_database_update
gnome2_icon_cache_update
}
pkg_postrm() {
fdo-mime_desktop_database_update
fdo-mime_mime_database_update
gnome2_icon_cache_update
}