diff --git a/app-text/retext/Manifest b/app-text/retext/Manifest new file mode 100644 index 0000000..fafc773 --- /dev/null +++ b/app-text/retext/Manifest @@ -0,0 +1,3 @@ +DIST ReTextIcons_r3.tar.gz 21946 RMD160 8bfcf03bafd2a25ef5792aff70489a65655064e5 SHA1 c51d4a687c21b7de3fd24a14a7ae16e9b0869e31 SHA256 13d61b338296c299f40ecb3a81271f67e61b3b9769ab8c381fafa5b2e48950d7 +DIST ReText_3.0.2.tar.gz 92937 RMD160 25ef517683324d61405871ec66924171a96aeeb4 SHA1 23f11ca7697131e22c20703271a518a37e278b96 SHA256 62661b18dc4827d87ee7fd82b00f4d39bad4f0c157cdd18f3e46160c8214950a +EBUILD retext-3.0.2.ebuild 1049 RMD160 da4d8252473f0f023ac377b2f1b967547bfb2a0e SHA1 0022f05ab74bc71116c0681ce742933ff714a4ec SHA256 bceebfb79156fc4dafae2868288e9cfb5fbd7d6854873c4023a48443948f4247 diff --git a/app-text/retext/retext-3.0.2.ebuild b/app-text/retext/retext-3.0.2.ebuild new file mode 100644 index 0000000..74f3fa2 --- /dev/null +++ b/app-text/retext/retext-3.0.2.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=4 + +inherit python + +DESCRIPTION="ReText is a simple editor that reads your text with MarkDown or \ +HTML markup and saves it as plain text, HTML or PDF." +HOMEPAGE="http://sourceforge.net/projects/retext" +SRC_URI="mirror://sourceforge/retext/ReText_${PV}.tar.gz + mirror://sourceforge/retext/Icons/ReTextIcons_r3.tar.gz" + +LICENSE="GPLv3" +SLOT="0" +KEYWORDS="~amd64" +IUSE="gdocs spell" + +DEPEND="dev-python/PyQt4 + dev-python/markdown + dev-python/docutils + spell? ( dev-python/pyenchant ) + gdocs? ( dev-python/gdata ) +" +RDEPEND="${DEPEND}" + +src_unpack() { + mkdir -p ${P}/icons + tar xzf ${DISTDIR}/ReText_${PV}.tar.gz -C ${P}/ + tar xzf ${DISTDIR}/ReTextIcons_r3.tar.gz -C ${P}/icons/ +} + +src_prepare() { + sed -i -e "s:^\(icon_path = \).*:\1\"/usr/share/${PN}/icons\":" \ + -e "s:\(wpgen/wpgen.py\):/usr/share/${PN}\1:" \ + retext.py +} + +src_install() { + dobin retext.py + + insinto /usr/share/${PN} + doins -r icons locale wpgen +}