changeset 446:ed034f9928b8

add ebuild for zim
author Dirk Olmes <dirk@xanthippe.ping.de>
date Wed, 26 Jul 2017 13:39:44 +0200
parents 7e560a7c788b
children 876c977b5b58
files x11-misc/zim/Manifest x11-misc/zim/files/zim-0.60-remove-ubuntu-theme.patch x11-misc/zim/zim-0.67.ebuild
diffstat 3 files changed, 104 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/x11-misc/zim/Manifest	Wed Jul 26 13:39:44 2017 +0200
@@ -0,0 +1,3 @@
+AUX zim-0.60-remove-ubuntu-theme.patch 669 SHA256 dde1ba982a802bc124d82af92c5475cf7259e504599c1ccf302895ba03117b87 SHA512 a2e202986c77490898c15f6c4e647667fd6662422e8bbd638624a52a33989cd4259f95b37f488ff4a947f04354704ee9df7b9d60aae2fcc928f1f3186955ea1a WHIRLPOOL 115d3468af4eaeab1fbf1be997e6fdcd7390a77e75372616676df787b768c9f66e4969fbaafccac01edb75d9889b8ff34bd0b83b8d5802c459d01c07602b6a2d
+DIST zim-0.67.tar.gz 2034747 SHA256 b37cef3d4906aa263abccb1493929a7ea6b9e8d11a50ed92cd437e8f93ffabbd SHA512 0f3387a74a9d6a1e972b4ad411230b9318c58432bd853ef6d45cd535dcdef901369a70dd619b842f1e6564a4b583075865d30acb75cc7649facf5acfe43d8b94 WHIRLPOOL de74a1a0aee364007d76c2fe60cb9cee4d76fa60cb8388d3b8078144dd0ceb9a28c9a860e3125017d27e9895a2eb933913573eae38a5c560e0bb7db816455241
+EBUILD zim-0.67.ebuild 1824 SHA256 4d523e23f118d5a996ef17d63bdbff6836f41233a372bbf78b3e3ad08fe72924 SHA512 23cf416615bcc2cf4719474fb8a79b196916b3fd6fc2a3eaa018e3e00cf8a37a56d7446ad21adb866e727d942300443cec51eda4beaf2830bd7b1d4ec28b9677 WHIRLPOOL 8ac5d15f1b7385182deed9c4bac3333099ea0d61dfedcbc86a2c44de81a47ca59dfd111bab9addb93a64811f499254938107dd17d83475aba084fa9a3c3ee43f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/x11-misc/zim/files/zim-0.60-remove-ubuntu-theme.patch	Wed Jul 26 13:39:44 2017 +0200
@@ -0,0 +1,18 @@
+# don't install /usr/share/icons/ubuntu-mono-{dark,light}
+# it's only used in conjunction with appindicator
+# and clutters the icon-themes menu in gnome
+--- a/setup.py
++++ b/setup.py
+@@ -94,12 +94,6 @@
+ 			files = [os.path.join(dir, f) for f in files]
+ 			data_files.append((target, files))
+ 
+-	# mono icons -> PREFIX/share/icons/ubuntu-mono-light | -dark
+-	for theme in ('ubuntu-mono-light', 'ubuntu-mono-dark'):
+-		file = os.path.join('icons', theme, 'zim-panel.svg')
+-		target = os.path.join('share', 'icons', theme, 'apps', '22')
+-		data_files.append((target, [file]))
+-
+ 	# data -> PREFIX/share/zim
+ 	for dir, dirs, files in os.walk('data'):
+ 		if '.zim' in dirs:
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/x11-misc/zim/zim-0.67.ebuild	Wed Jul 26 13:39:44 2017 +0200
@@ -0,0 +1,83 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="sqlite"
+DISTUTILS_SINGLE_IMPL=1
+
+inherit distutils-r1 gnome2-utils fdo-mime virtualx
+
+DESCRIPTION="A desktop wiki"
+HOMEPAGE="http://zim-wiki.org/"
+SRC_URI="http://zim-wiki.org/downloads/${P}.tar.gz"
+
+LICENSE="BSD GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+RDEPEND="dev-python/pygtk[${PYTHON_USEDEP}]
+	dev-python/pygobject:2[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+	x11-misc/xdg-utils
+	test? (
+		dev-vcs/bzr
+		dev-vcs/git
+		dev-vcs/mercurial )"
+
+PATCHES=(
+	"${FILESDIR}"/${PN}-0.60-remove-ubuntu-theme.patch
+)
+
+python_prepare() {
+	sed -i -e "s/'USER'/'LOGNAME'/g" zim/__init__.py zim/fs.py || die
+
+	if [[ ${LINGUAS} ]]; then
+		local lingua
+		for lingua in translations/*.po; do
+			lingua=${lingua/.po}
+			lingua=${lingua/translations\/}
+			has ${lingua} ${LINGUAS} || \
+				{ rm translations/${lingua}.po || die; }
+		done
+	fi
+
+	distutils-r1_python_prepare
+}
+
+python_test() {
+	VIRTUALX_COMMAND="${PYTHON}" virtualmake test.py
+}
+
+python_install() {
+	distutils-r1_python_install --skip-xdg-cmd
+}
+
+pkg_preinst() {
+	gnome2_icon_savelist
+}
+
+pkg_postinst() {
+	fdo-mime_desktop_database_update
+	gnome2_icon_cache_update
+	if ! has_version ${CATEGORY}/${PN}; then
+		einfo "Please emerge these packages for additional functionality"
+		einfo "    dev-lang/R"
+		einfo "    dev-python/gtkspell-python"
+		einfo "    dev-vcs/bzr"
+		einfo "    gnome-extra/zeitgeist"
+		einfo "    media-gfx/graphviz"
+		einfo "    media-gfx/imagemagick"
+		einfo "    media-gfx/scrot"
+		einfo "    media-sound/lilypond"
+		einfo "    sci-visualization/gnuplot"
+		einfo "    virtual/latex-base app-text/dvipng"
+	fi
+}
+
+pkg_postrm() {
+	fdo-mime_desktop_database_update
+	gnome2_icon_cache_update
+}