/[gentoo-x86]/app-editors/retext/retext-4.1.3.ebuild
Gentoo

Contents of /app-editors/retext/retext-4.1.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sun Apr 19 06:56:33 2015 UTC (5 years, 3 months ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +2 -2 lines
x86 stable wrt bug #530262

(Portage version: 2.2.18/cvs/Linux x86_64, RepoMan options: --include-arches="x86", signed Manifest commit with key A188FBD4)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-editors/retext/retext-4.1.3.ebuild,v 1.3 2015/01/31 13:16:48 ago Exp $
4
5 EAPI=5
6
7 PYTHON_COMPAT=( python3_{3,4} )
8
9 PLOCALES="ca cs cy da de es et eu fr it ja pl pt pt_BR ru sk uk zh_CN zh_TW"
10
11 inherit distutils-r1 l10n
12
13 MY_PN="ReText"
14 MY_P="${MY_PN}-${PV/_/~}"
15
16 if [[ ${PV} == *9999* ]] ; then
17 inherit git-2
18 EGIT_REPO_URI="git://git.code.sf.net/p/retext/git"
19 KEYWORDS=""
20 else
21 SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
22 KEYWORDS="amd64 x86"
23 fi
24
25 DESCRIPTION="A Qt-based text editor for Markdown and reStructuredText"
26 HOMEPAGE="http://sourceforge.net/p/retext/home/ReText/"
27
28 LICENSE="GPL-2"
29 SLOT="0"
30 IUSE="+spell"
31
32 RDEPEND+="
33 dev-python/docutils[${PYTHON_USEDEP}]
34 dev-python/markdown[${PYTHON_USEDEP}]
35 dev-python/markups[${PYTHON_USEDEP}]
36 dev-python/PyQt4[webkit,${PYTHON_USEDEP}]
37 spell? ( dev-python/pyenchant[${PYTHON_USEDEP}] )
38 "
39
40 S="${WORKDIR}"/${MY_P}
41
42 remove_locale() {
43 find "${ED}" -name "retext_${1}.qm" -delete || die "Failed to remove locale ${1}."
44 }
45
46 python_install_all() {
47 distutils-r1_python_install_all
48
49 newicon {icons/,}${PN}.png
50 newicon {icons/,}${PN}.svg
51
52 l10n_for_each_disabled_locale_do remove_locale
53
54 make_desktop_entry ${PN} "${MY_PN} Editor" ${PN} "Development;Utility;TextEditor"
55 }

  ViewVC Help
Powered by ViewVC 1.1.20