summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Chren <dev.rindeal+github.com@gmail.com>2016-04-15 18:44:01 +0200
committerPatrice Clement <monsieurp@gentoo.org>2016-04-15 18:56:01 +0000
commit1561088e0875f702d5b569eed05a3bcbfdcb5934 (patch)
tree0d4a72856c6d77a9f465e3717abe366ec4ba10ae
parentnet-analyzer/ripe-atlas-tools: Version bump to 1.2.3 (diff)
downloadgentoo-1561088e0875f702d5b569eed05a3bcbfdcb5934.tar.gz
gentoo-1561088e0875f702d5b569eed05a3bcbfdcb5934.tar.bz2
gentoo-1561088e0875f702d5b569eed05a3bcbfdcb5934.zip
app-text/cherrytree: new package
Closes: https://github.com/gentoo/gentoo/pull/1266 Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
-rw-r--r--app-text/cherrytree/Manifest1
-rw-r--r--app-text/cherrytree/cherrytree-0.36.9.ebuild76
-rw-r--r--app-text/cherrytree/metadata.xml13
3 files changed, 90 insertions, 0 deletions
diff --git a/app-text/cherrytree/Manifest b/app-text/cherrytree/Manifest
new file mode 100644
index 000000000000..6b782004a4a2
--- /dev/null
+++ b/app-text/cherrytree/Manifest
@@ -0,0 +1 @@
+DIST cherrytree-0.36.9.tar.gz 8725402 SHA256 37314cd9ba3e9bb87fb8ef9384da95db583543f2421f5243f7470d9903b3d8bf SHA512 fca9679dc1508b5db1fea9b10f3434f24b4545a53c9a586f1b21298e134242705e4ecc050e0ebffc972caca63c5f2803245b1e65191eed19b82a9cbdec3a40aa WHIRLPOOL edec306131fc09bde6f470c7e8bb1f795d7e54e3d1d0093c421bf515724f8f7d48fc3d024569279ee6db2e46b270db68d41fa4a1f816dfb1f8c9df40380d350d
diff --git a/app-text/cherrytree/cherrytree-0.36.9.ebuild b/app-text/cherrytree/cherrytree-0.36.9.ebuild
new file mode 100644
index 000000000000..814789c4f000
--- /dev/null
+++ b/app-text/cherrytree/cherrytree-0.36.9.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit fdo-mime eutils python-single-r1
+
+DESCRIPTION='A hierarchical note taking application'
+HOMEPAGE='http://www.giuspen.com/cherrytree'
+LICENSE='GPL-3'
+
+SLOT='0'
+SRC_URI="https://github.com/giuspen/cherrytree/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+KEYWORDS='~amd64'
+IUSE='nls'
+
+RDEPEND="${PYTHON_DEPS}
+ x11-libs/libX11
+ dev-python/dbus-python[${PYTHON_USEDEP}]
+ dev-python/pyenchant[${PYTHON_USEDEP}]
+ >=dev-python/pygtk-2.16:2[${PYTHON_USEDEP}]
+ dev-python/pygtksourceview:2[${PYTHON_USEDEP}]
+"
+DEPEND="${RDEPEND}
+ nls? ( sys-devel/gettext )
+"
+
+PLOCALES='cs de es fr hy it ja lt nl pl pt_BR ru sl tr uk zh_CN'
+inherit l10n
+
+src_prepare() {
+ use nls && l10n_find_plocales_changes 'locale' '' '.po'
+
+ default
+}
+
+src_compile() {
+ local args=()
+ use nls || args+=( '--without-gettext' )
+
+ "${EPYTHON}" ./setup.py "${args[@]}" build
+}
+
+src_install() {
+ dobin "${PN}"
+
+ doicon -s scalable "glade/svg/${PN}.svg"
+ domenu "linux/${PN}.desktop"
+ doman "linux/${PN}.1"
+
+ insinto "/usr/share/${PN}"
+ doins -r 'glade/' 'modules/' 'language-specs/'
+
+ insinto '/usr/share/mime-info'
+ doins "linux/${PN}".{mime,keys}
+ insinto '/usr/share/mime/packages'
+ doins "linux/${PN}.xml"
+
+ if use nls ; then
+ ins_loc() {
+ # cannot use domo() as it installs files into a wrong dir
+ insinto "/usr/share/locale/${1}/LC_MESSAGES"
+ doins "build/mo/${1}/${PN}.mo"
+ }
+ l10n_for_each_locale_do ins_loc
+ fi
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+}
diff --git a/app-text/cherrytree/metadata.xml b/app-text/cherrytree/metadata.xml
new file mode 100644
index 000000000000..e9a8f5591524
--- /dev/null
+++ b/app-text/cherrytree/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+ <email>dev.rindeal+bugs.gentoo.org@gmail.com</email>
+ <name>Jan Chren (rindeal)</name>
+ <description>Proxied maintainer; set to assignee in all bugs</description>
+</maintainer>
+<maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+</maintainer>
+</pkgmetadata>