summaryrefslogtreecommitdiff
path: root/x11-misc
diff options
context:
space:
mode:
Diffstat (limited to 'x11-misc')
-rw-r--r--x11-misc/zim/Manifest3
-rw-r--r--x11-misc/zim/files/zim-0.25-disable-update-databases.patch35
-rw-r--r--x11-misc/zim/zim-0.25.ebuild72
3 files changed, 110 insertions, 0 deletions
diff --git a/x11-misc/zim/Manifest b/x11-misc/zim/Manifest
new file mode 100644
index 0000000..6a5d9a6
--- /dev/null
+++ b/x11-misc/zim/Manifest
@@ -0,0 +1,3 @@
+AUX zim-0.25-disable-update-databases.patch 1176 RMD160 f84b1628e7f330634a08ea3f7c29b2fd734431f0 SHA1 4c78e4f44756f84489ce015740151988756fc92f SHA256 6d7008ab7f1d99cea871281d5946a96222cdf23ca5b846613b12d62e62ef3f37
+DIST Zim-0.25.tar.gz 693885 RMD160 d043ab386bc7300c87c785fcdcffd45797597505 SHA1 6af56fefdb7583c375e0e761d503c9a7100a76e5 SHA256 18c3913d5abfb21662137dfdf89e3739d7239332dd3fd9b2b646bb9f315a5d7c
+EBUILD zim-0.25.ebuild 1840 RMD160 8c7864953f338ec0fcacdb637dd83d9817c636c5 SHA1 9aac583aef2eca41bb0645c221e6c921af002be4 SHA256 dc403ec4f760b0d8b35c1626d1e7cb8735ab93b91a6965ec9c0c5a646469643d
diff --git a/x11-misc/zim/files/zim-0.25-disable-update-databases.patch b/x11-misc/zim/files/zim-0.25-disable-update-databases.patch
new file mode 100644
index 0000000..7866ab3
--- /dev/null
+++ b/x11-misc/zim/files/zim-0.25-disable-update-databases.patch
@@ -0,0 +1,35 @@
+--- Build.PL.old 2008-06-12 22:52:35.319329618 +0200
++++ Build.PL 2008-06-12 22:53:40.595080260 +0200
+@@ -187,19 +187,19 @@
+ sub ACTION_postinstall {
+ my $self = shift;
+ my $sharedir = $self->install_destination('share');
+- my $mimedir = File::Spec->catdir($sharedir, 'mime');
+- my $icon = File::Spec->catfile($sharedir, 'pixmaps', 'zim.png');
+- for (
+- ['update-desktop-database'],
+- ['update-mime-database', $mimedir],
+- # [qw{xdg-icon-resource install --context apps --size 64},
+- # $icon],
+- [qw{xdg-icon-resource install --context mimetypes --size 64},
+- $icon, q{text-x-zim-notebook}],
+- ) {
+- print "Trying: @$_\n";
+- print system(@$_) == 0 ? "Ok\n\n" : "Failed\n\n" ;
+- }
++# my $mimedir = File::Spec->catdir($sharedir, 'mime');
++# my $icon = File::Spec->catfile($sharedir, 'pixmaps', 'zim.png');
++# for (
++# ['update-desktop-database'],
++# ['update-mime-database', $mimedir],
++# # [qw{xdg-icon-resource install --context apps --size 64},
++# # $icon],
++# [qw{xdg-icon-resource install --context mimetypes --size 64},
++# $icon, q{text-x-zim-notebook}],
++# ) {
++# print "Trying: @$_\n";
++# print system(@$_) == 0 ? "Ok\n\n" : "Failed\n\n" ;
++# }
+
+ }
+
diff --git a/x11-misc/zim/zim-0.25.ebuild b/x11-misc/zim/zim-0.25.ebuild
new file mode 100644
index 0000000..5187e2e
--- /dev/null
+++ b/x11-misc/zim/zim-0.25.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/x11-misc/zim/zim-0.23.ebuild,v 1.1 2008/05/11 14:24:35 drac Exp $
+
+EAPI=1
+
+inherit fdo-mime perl-module
+
+MY_P=${P/z/Z}
+
+DESCRIPTION="A desktop wiki"
+HOMEPAGE="http://www.zim-wiki.org"
+SRC_URI="http://www.zim-wiki.org/downloads/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="latex screenshot spell"
+
+DEPEND=">=dev-lang/perl-5.8
+ >=x11-libs/gtk+-2.10
+ virtual/perl-Storable
+ virtual/perl-File-Spec
+ >=dev-perl/File-BaseDir-0.03
+ >=dev-perl/File-MimeInfo-0.12
+ >=dev-perl/File-DesktopEntry-0.03
+ >=dev-perl/gtk2-perl-1.040
+ x11-misc/xdg-utils"
+
+RDEPEND="${DEPEND}
+ latex? ( virtual/latex-base app-text/dvipng )
+ screenshot? ( media-gfx/scrot )
+ spell? ( dev-perl/gtk2-spell )"
+
+S=${WORKDIR}/${MY_P}
+
+PATCHES=( "${FILESDIR}/${PN}-0.25-disable-update-databases.patch" )
+
+add_plugin() {
+ name=$1
+
+ sed -i -e "s/\(plugins=.*\)\$/\1,$name/" ${S}/share/zim/default.conf
+}
+
+src_compile() {
+ add_plugin TrayIcon
+ use latex && add_plugin EquationEditor
+ use screenshot && add_plugin InsertScreenshot
+ use spell && add_plugin Spell
+
+ perl-module_src_compile
+}
+
+pkg_postinst() {
+ perl-module_pkg_postinst
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+ einfo "Adding icon resource ..."
+ xdg-icon-resource install --context mimetypes --size 64 ${ROOT}usr/share/pixmaps/zim.png text-x-zim-notebook
+}
+
+pkg_postrm() {
+ perl-module_pkg_postrm
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+
+ # XXX: for up-/downgrades postinst is run first
+ # thus we are then reverting the "xdg-icon-resource install" call and
+ # nothing gets installed =/
+ einfo "Removing icon resource ..."
+ xdg-icon-resource uninstall --context mimetypes --size 64 text-x-zim-notebook
+}