retext-3.0.2.ebuild added

This commit is contained in:
Micha Glave 2012-04-23 11:35:31 +02:00
parent 8c6291bdcb
commit 988d9a58fa
2 changed files with 48 additions and 0 deletions

3
app-text/retext/Manifest Normal file
View File

@ -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

View File

@ -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
}