1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 # written for 2.6, works on 2.7 as well
8 SUPPORT_PYTHON_ABIS="1"
9 RESTRICT_PYTHON_ABIS="2.5 3.*"
10 PYTHON_MODNAME="PyRoom"
12 inherit distutils versionator
14 MY_PV=$(get_version_component_range 1-2)
16 DESCRIPTION="A minimal word processor that lets you focus on writing"
17 HOMEPAGE="http://www.pyroom.org/"
18 SRC_URI="http://launchpad.net/${PN}/${MY_PV}/${PV}/+download/${P}.tar.gz"
22 KEYWORDS="~amd64 ~x86"
25 RDEPEND="dev-python/pygobject:2
28 gnome? ( dev-python/gconf-python:2 )"
29 DEPEND="sys-devel/gettext"
31 DOCS="AUTHORS CHANGELOG"
33 LANGS="ar bg br ca cy da de el en_GB eo es eu fi fr ga gu hr hu id it
34 ja ku lt lv mk nb nl nn pl pt pt_BR ro ru sco sk sl sr sv tr zh_CN"
36 IUSE="$IUSE linguas_${l}"
43 # build system does not filter translations
45 for l in ${LANGS} ; do
46 if ! use linguas_${l} ; then
47 rm locales/${PN}-${l}.po || die
51 # fix icon-destination
53 "/${PN}.png/s:/usr/share/${PN}:/usr/share/pixmaps/:" \
58 "/Icon/s:/usr/share/${PN}:/usr/share/pixmaps:" \
68 distutils_pkg_postinst
70 elog "If you get an Error like"
71 elog "\"AttributeError: 'list' object has no attribute 'encode'\""
72 elog "you need to create a startup-script like the following:"
75 elog "#Script for starting PyRoom"