diff options
author | hasufell <julian.ospald@googlemail.com> | 2012-03-28 23:59:31 +0000 |
---|---|---|
committer | hasufell <julian.ospald@googlemail.com> | 2012-03-28 23:59:31 +0000 |
commit | 523302269cd9ce8a78513105f827b201dbf9a75f (patch) | |
tree | 746d1a58bfff3ae39f1d0a3dc11792247bd150d4 /app-office | |
parent | www-client/torbrowser: Update RDEPEND and DEPEND to better match that from ww... (diff) | |
download | sunrise-523302269cd9ce8a78513105f827b201dbf9a75f.tar.gz sunrise-523302269cd9ce8a78513105f827b201dbf9a75f.tar.bz2 sunrise-523302269cd9ce8a78513105f827b201dbf9a75f.zip |
app-office/pyroom: New Ebuild for bug 410079
svn path=/sunrise/; revision=12852
Diffstat (limited to 'app-office')
-rw-r--r-- | app-office/pyroom/ChangeLog | 10 | ||||
-rw-r--r-- | app-office/pyroom/Manifest | 4 | ||||
-rw-r--r-- | app-office/pyroom/metadata.xml | 7 | ||||
-rw-r--r-- | app-office/pyroom/pyroom-0.4.1.ebuild | 78 |
4 files changed, 99 insertions, 0 deletions
diff --git a/app-office/pyroom/ChangeLog b/app-office/pyroom/ChangeLog new file mode 100644 index 000000000..4ed182f7a --- /dev/null +++ b/app-office/pyroom/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for app-office/pyroom +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + +*pyroom-0.4.1 (28 Mar 2012) + + 28 Mar 2012; hasufell <julian.ospald@googlemail.com> +pyroom-0.4.1.ebuild, + +metadata.xml: + New Ebuild for bug 410079 + diff --git a/app-office/pyroom/Manifest b/app-office/pyroom/Manifest new file mode 100644 index 000000000..43299318a --- /dev/null +++ b/app-office/pyroom/Manifest @@ -0,0 +1,4 @@ +DIST pyroom-0.4.1.tar.gz 85918 RMD160 8e0d60eef3b0d34750320f5da2ccfeb3d8f65296 SHA1 b138eaaeaf82d2fd99cd1f5b754a0901a5d8c4ca SHA256 5a885010a7d207c90384c48869cc2be863df5b1bca561750ffd483a8969c9bf3 +EBUILD pyroom-0.4.1.ebuild 1734 RMD160 cd4cf1ea3916772787a8ffb5ed8cd21697a498ee SHA1 8b020723445ce468f1ce744de28e9f0a4eb871ad SHA256 f14d27ebbc6bcc5801c15e330887c5950fd47cbc882f3d4a0e6b0540873cab2b +MISC ChangeLog 270 RMD160 6fe82d2f94c76ab769c0dda4e036d1e7e29a1b43 SHA1 4e7338ef986344a0a2048be3f9420239013ba95c SHA256 a3aa977e727cc102af2702f028fd39ce6c33503f7b92f5821e208948c964acca +MISC metadata.xml 214 RMD160 efd8175069efb91061298ff4584218b633e44678 SHA1 d372fdbfcb7fd07a4082961d3f3527be4fca1d60 SHA256 c1f09dc7d5313cd2da7b82259c7846ed23144d62b15e59680ada90e2b6b4d154 diff --git a/app-office/pyroom/metadata.xml b/app-office/pyroom/metadata.xml new file mode 100644 index 000000000..cc3fe2494 --- /dev/null +++ b/app-office/pyroom/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>maintainer-wanted@gentoo.org</email> + </maintainer> +</pkgmetadata> diff --git a/app-office/pyroom/pyroom-0.4.1.ebuild b/app-office/pyroom/pyroom-0.4.1.ebuild new file mode 100644 index 000000000..66b9e5a38 --- /dev/null +++ b/app-office/pyroom/pyroom-0.4.1.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=4 +# written for 2.6, works on 2.7 as well +PYTHON_DEPEND="2:2.6" +SUPPORT_PYTHON_ABIS="1" +RESTRICT_PYTHON_ABIS="2.5 3.*" +PYTHON_MODNAME="PyRoom" + +inherit distutils versionator + +MY_PV=$(get_version_component_range 1-2) + +DESCRIPTION="A minimal word processor that lets you focus on writing" +HOMEPAGE="http://www.pyroom.org/" +SRC_URI="http://launchpad.net/${PN}/${MY_PV}/${PV}/+download/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="gnome" + +RDEPEND="dev-python/pygobject:2 + dev-python/pygtk:2 + dev-python/pyxdg + gnome? ( dev-python/gconf-python:2 )" +DEPEND="sys-devel/gettext" + +DOCS="AUTHORS CHANGELOG" + +LANGS="ar bg br ca cy da de el en_GB eo es eu fi fr ga gu hr hu id it +ja ku lt lv mk nb nl nn pl pt pt_BR ro ru sco sk sl sr sv tr zh_CN" +for l in ${LANGS}; do + IUSE="$IUSE linguas_${l}" +done +unset l + +src_prepare() { + distutils_src_prepare + + # build system does not filter translations + local l + for l in ${LANGS} ; do + if ! use linguas_${l} ; then + rm locales/${PN}-${l}.po || die + fi + done + + # fix icon-destination + sed -i -e \ + "/${PN}.png/s:/usr/share/${PN}:/usr/share/pixmaps/:" \ + setup.py || die + + # fix .desktop file + sed -i -e \ + "/Icon/s:/usr/share/${PN}:/usr/share/pixmaps:" \ + ${PN}.desktop || die +} + +src_install() { + distutils_src_install + doman ${PN}.1 +} + +pkg_postinst() { + distutils_pkg_postinst + + elog "If you get an Error like" + elog "\"AttributeError: 'list' object has no attribute 'encode'\"" + elog "you need to create a startup-script like the following:" + elog "" + elog "#!/bin/sh" + elog "#Script for starting PyRoom" + elog "unset LANGUAGE" + elog "${PN}" +} |