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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (hide annotations) (download)
Sun Mar 15 13:28:46 2015 UTC (5 years, 6 months ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +6 -5 lines
Version Bump, #530262

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!)

1 jlec 1.6 # Copyright 1999-2015 Gentoo Foundation
2 tomwij 1.1 # Distributed under the terms of the GNU General Public License v2
3 jlec 1.6 # $Header: /var/cvsroot/gentoo-x86/app-editors/retext/retext-9999.ebuild,v 1.5 2014/11/14 07:35:41 jlec Exp $
4 tomwij 1.1
5 jlec 1.5 EAPI=5
6    
7     PYTHON_COMPAT=( python3_{3,4} )
8 tomwij 1.1
9 jlec 1.6 PLOCALES="ca cs cy da de es et eu fr it ja pl pt pt_BR ru sk uk vi zh_CN zh_TW"
10 tomwij 1.1
11 tomwij 1.2 inherit distutils-r1 l10n
12 tomwij 1.1
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 jlec 1.6 RDEPEND="
33 tomwij 1.2 dev-python/docutils[${PYTHON_USEDEP}]
34     dev-python/markdown[${PYTHON_USEDEP}]
35     dev-python/markups[${PYTHON_USEDEP}]
36 jlec 1.6 dev-python/pygments[${PYTHON_USEDEP}]
37     dev-python/PyQt5[gui,network,printsupport,webkit,widgets,${PYTHON_USEDEP}]
38 tomwij 1.2 spell? ( dev-python/pyenchant[${PYTHON_USEDEP}] )
39 tomwij 1.1 "
40    
41     S="${WORKDIR}"/${MY_P}
42    
43 jlec 1.5 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 tomwij 1.1
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