summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkos Chandras <hwoarang@gentoo.org>2009-08-05 16:57:37 +0300
committerMarkos Chandras <hwoarang@gentoo.org>2009-08-05 16:57:37 +0300
commitda08d994cba622d480b5dfcad9ff813d6ba0ab2c (patch)
tree11b03da68442433cfd83750eca155a7ea647d91c /x11-misc
parentInitial commit of shutter package. Bug 249058 (diff)
downloadhwoarang-da08d994cba622d480b5dfcad9ff813d6ba0ab2c.tar.gz
hwoarang-da08d994cba622d480b5dfcad9ff813d6ba0ab2c.tar.bz2
hwoarang-da08d994cba622d480b5dfcad9ff813d6ba0ab2c.zip
Shutter moved to x11-misc
Diffstat (limited to 'x11-misc')
-rw-r--r--x11-misc/shutter/Manifest5
-rw-r--r--x11-misc/shutter/files/disable_goocanvas.patch18
-rw-r--r--x11-misc/shutter/files/disable_webphoto.patch17
-rw-r--r--x11-misc/shutter/metadata.xml16
-rw-r--r--x11-misc/shutter/shutter-0.80.ebuild58
5 files changed, 114 insertions, 0 deletions
diff --git a/x11-misc/shutter/Manifest b/x11-misc/shutter/Manifest
new file mode 100644
index 0000000..9891a35
--- /dev/null
+++ b/x11-misc/shutter/Manifest
@@ -0,0 +1,5 @@
+AUX disable_goocanvas.patch 420 RMD160 907d215bbbed08607068d1aebeb95bd8f567120d SHA1 05c31697fdcffc82cdc932d97a4cf3e4bc1b7295 SHA256 273cf19362843e512ded4e654b82c0587bd8b2f00aad8963e5a5b333e1ee6f49
+AUX disable_webphoto.patch 505 RMD160 6dc5ae131e99d07f80c88eeb8410216aa177ac40 SHA1 bae60d84f3d45429c54374f5efed691fcaf3d927 SHA256 f4146a852d1b6508eeb88368ce13275d1d5a168f1587a260848e90900d874fb7
+DIST shutter-0.80.tar.gz 1089351 RMD160 113876bc7b313d2c2e410d72bcba55ea3ee3da94 SHA1 087580a77fc0d4ebc460af147b1321903e6c405e SHA256 911d0c0f648a83edd3b7660e670fd092f2ae45c0a40f6f5189d49c19945b0223
+EBUILD shutter-0.80.ebuild 1620 RMD160 07c2dc5f99516819a9210825fcf663432248ea84 SHA1 21b1ff7fdc74e411ebcc41badaededadaa8ec5f4 SHA256 49123c7107deb8c49152365eafe955506956479bf06127cb57b57898b903ece2
+MISC metadata.xml 425 RMD160 c1adebdaded3f7258c266b8175c8b7c4b54f06da SHA1 7042350e8d4f930a10d8f2944f781e13771dd3f0 SHA256 731c700f782bc244fa366f95b38011977ee075dc53540d47c655c65730ce8716
diff --git a/x11-misc/shutter/files/disable_goocanvas.patch b/x11-misc/shutter/files/disable_goocanvas.patch
new file mode 100644
index 0000000..092ec8b
--- /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 0000000..d09f303
--- /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 0000000..0cde073
--- /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.ebuild b/x11-misc/shutter/shutter-0.80.ebuild
new file mode 100644
index 0000000..b905efe
--- /dev/null
+++ b/x11-misc/shutter/shutter-0.80.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+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/app-install/desktop/${PN}.desktop
+ doins -r share/app-install/icons || die "doins failed"
+ doman share/man/man1/${PN}.1.gz || die "doman failed"
+ doicon share/pixmaps/${PN}.svg
+ doins -r share/locale || die "doins failed"
+ find /usr/share/shutter/resources/system/plugins/ -type f ! -name '*.*' \
+ -exec fperms 755 {} \; || die "failed to make plugins executables"
+}