diff options
author | Markos Chandras <hwoarang@gentoo.org> | 2009-08-12 09:24:29 +0000 |
---|---|---|
committer | Markos Chandras <hwoarang@gentoo.org> | 2009-08-12 09:24:29 +0000 |
commit | 0113876440679c98f015329543c058783dfd1770 (patch) | |
tree | 3dcf6a4a26543dac7ecc969a420c7e3aca15419c /x11-misc | |
parent | Added patch for removing items from QGraphicsLinearLayout. Fixes bug 280634 (diff) | |
download | gentoo-2-0113876440679c98f015329543c058783dfd1770.tar.gz gentoo-2-0113876440679c98f015329543c058783dfd1770.tar.bz2 gentoo-2-0113876440679c98f015329543c058783dfd1770.zip |
Initial commit of shutter screen capture program. Fixes bug 249058
(Portage version: 2.2_rc38/cvs/Linux x86_64)
Diffstat (limited to 'x11-misc')
-rw-r--r-- | x11-misc/shutter/ChangeLog | 11 | ||||
-rw-r--r-- | x11-misc/shutter/files/disable_goocanvas.patch | 18 | ||||
-rw-r--r-- | x11-misc/shutter/files/disable_webphoto.patch | 17 | ||||
-rw-r--r-- | x11-misc/shutter/metadata.xml | 16 | ||||
-rw-r--r-- | x11-misc/shutter/shutter-0.80.1.ebuild | 57 |
5 files changed, 119 insertions, 0 deletions
diff --git a/x11-misc/shutter/ChangeLog b/x11-misc/shutter/ChangeLog new file mode 100644 index 000000000000..797149ae2af4 --- /dev/null +++ b/x11-misc/shutter/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for x11-misc/shutter +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/x11-misc/shutter/ChangeLog,v 1.1 2009/08/12 09:24:29 hwoarang Exp $ + +*shutter-0.80.1 (12 Aug 2009) + + 12 Aug 2009; Markos Chandras <hwoarang@gentoo.org> +shutter-0.80.1.ebuild, + +files/disable_goocanvas.patch, +files/disable_webphoto.patch, + +metadata.xml: + Initial commit of shutter screen capture program. Fixes bug 249058 + diff --git a/x11-misc/shutter/files/disable_goocanvas.patch b/x11-misc/shutter/files/disable_goocanvas.patch new file mode 100644 index 000000000000..092ec8b9655d --- /dev/null +++ b/x11-misc/shutter/files/disable_goocanvas.patch @@ -0,0 +1,18 @@ +Index: bin/shutter +=================================================================== +--- bin/shutter ++++ bin/shutter +@@ -6040,12 +6040,7 @@ sub fct_init_depend { + $gnome_web_photo = FALSE; + } + +- #goocanvas +- eval { require Goo::Canvas }; +- if ($@) { +- warn "WARNING: Goo::Canvas/libgoocanvas is missing --> drawing tool will be disabled!\n\n"; +- $goocanvas = FALSE; +- } ++ $goocanvas = FALSE; + + return TRUE; + } diff --git a/x11-misc/shutter/files/disable_webphoto.patch b/x11-misc/shutter/files/disable_webphoto.patch new file mode 100644 index 000000000000..d09f30395737 --- /dev/null +++ b/x11-misc/shutter/files/disable_webphoto.patch @@ -0,0 +1,17 @@ +Index: bin/shutter +=================================================================== +--- bin/shutter ++++ bin/shutter +@@ -6034,11 +6034,7 @@ sub fct_init_depend { + die "ERROR: imagemagick is missing --> aborting!\n\n"; + } + +- #gnome-web-photo +- unless ( File::Which::which('gnome-web-photo') ) { +- warn "WARNING: gnome-web-photo is missing --> screenshots of websites will be disabled!\n\n"; +- $gnome_web_photo = FALSE; +- } ++ $gnome_web_photo = FALSE; + + #goocanvas + eval { require Goo::Canvas }; diff --git a/x11-misc/shutter/metadata.xml b/x11-misc/shutter/metadata.xml new file mode 100644 index 000000000000..0cde073c8f9e --- /dev/null +++ b/x11-misc/shutter/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>graphics</herd> +<maintainer> +<email>hwoarang@gentoo.org</email> +<name>Markos Chandras</name> +</maintainer> +<use> + <flag name="webphoto">Enables screenshots of websites</flag> + <flag name="drawing">Enables drawing tool</flag> +</use> +<longdescription lang="en"> +</longdescription> +</pkgmetadata> + diff --git a/x11-misc/shutter/shutter-0.80.1.ebuild b/x11-misc/shutter/shutter-0.80.1.ebuild new file mode 100644 index 000000000000..6ec8d066f10d --- /dev/null +++ b/x11-misc/shutter/shutter-0.80.1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/x11-misc/shutter/shutter-0.80.1.ebuild,v 1.1 2009/08/12 09:24:29 hwoarang Exp $ + +EAPI="2" + +inherit eutils + +DESCRIPTION="Feature-rich screenshot program" +HOMEPAGE="http://shutter-project.org/" +SRC_URI="http://shutter-project.org/wp-content/uploads/releases/tars/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" +IUSE="drawing webphoto" + +RDEPEND="dev-lang/perl + dev-perl/gnome2-gconf + drawing? ( dev-perl/Goo-Canvas ) + webphoto? ( gnome-extra/gnome-web-photo ) + media-gfx/imagemagick + dev-perl/libxml-perl + dev-perl/gnome2-wnck + dev-perl/gnome2-canvas + dev-perl/gnome2-perl + dev-perl/Gtk2-ImageView + dev-perl/File-DesktopEntry + dev-perl/File-HomeDir + dev-perl/File-Which + dev-perl/File-Copy-Recursive + dev-perl/File-MimeInfo + dev-perl/Locale-gettext + dev-perl/Proc-Simple + dev-perl/Sort-Naturally + dev-perl/WWW-Mechanize + dev-perl/X11-Protocol + dev-perl/XML-Simple + dev-perl/libwww-perl" + +src_prepare() { + use webphoto || epatch "${FILESDIR}"/disable_webphoto.patch + use drawing || epatch "${FILESDIR}"/disable_goocanvas.patch +} + +src_install() { + dobin bin/${PN} || die "dobin failed" + insinto /usr/share/${PN} + doins -r share/${PN}/* || die "doins failed" + dodoc README || die "dodoc failed" + domenu share/applications/${PN}.desktop + doman share/man/man1/${PN}.1.gz || die "doman failed" + doicon share/pixmaps/${PN}.svg + doins -r share/locale || die "doins failed" + find "${D}"/usr/share/shutter/resources/system/plugins/ -type f ! -name '*.*' -exec chmod 755 {} \; \ + || die "failed to make plugins executables" +} |