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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Thu Jul 2 00:58:49 2015 UTC (5 years, 1 month ago) by mrueg
Branch: MAIN
CVS Tags: HEAD
Version bump. Remove old.

(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key )

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-5.0.2.ebuild,v 1.1 2015/04/22 23:49:07 mrueg Exp $
4
5 EAPI=5
6
7 PYTHON_COMPAT=( python3_{3,4} )
8
9 PLOCALES="ca cs cy da de es et eu fr hu it ja pl pt pt_BR ru sk sr sr@latin uk vi 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/pygments[${PYTHON_USEDEP}]
37 dev-python/PyQt5[gui,network,printsupport,webkit,widgets,${PYTHON_USEDEP}]
38 spell? ( dev-python/pyenchant[${PYTHON_USEDEP}] )
39 "
40
41 S="${WORKDIR}"/${MY_P}
42
43 remove_locale() {
44 find "${ED}" -name "retext_${1}.qm" -delete || die "Failed to remove locale ${1}."
45 }
46
47 python_test() {
48 esetup.py test
49 }
50
51 python_install_all() {
52 distutils-r1_python_install_all
53
54 newicon {icons/,}${PN}.png
55 newicon {icons/,}${PN}.svg
56
57 l10n_for_each_disabled_locale_do remove_locale
58
59 make_desktop_entry ${PN} "${MY_PN} Editor" ${PN} "Development;Utility;TextEditor"
60 }

  ViewVC Help
Powered by ViewVC 1.1.20