summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Wijsman <tomwij@gentoo.org>2013-06-29 13:02:38 +0000
committerTom Wijsman <tomwij@gentoo.org>2013-06-29 13:02:38 +0000
commit27333afbc42e3577a056f829323906ce19b9ce9e (patch)
tree2da938cf4d256937dfa7113527f42ad635f4eabf /app-editors
parentNew ebuild for app-editors/retext, a Qt-based text editor for Markdown and re... (diff)
downloadgentoo-2-27333afbc42e3577a056f829323906ce19b9ce9e.tar.gz
gentoo-2-27333afbc42e3577a056f829323906ce19b9ce9e.tar.bz2
gentoo-2-27333afbc42e3577a056f829323906ce19b9ce9e.zip
Revision bump. Made symlink from /usr/bin/retext to /usr/bin/retext.py. Made sure locales are respected by removing disabled locales. Removed unnecessary inherit. Added live 9999 ebuild for testing purposes.
(Portage version: 2.1.12.10/cvs/Linux x86_64, signed Manifest commit with key 6D34E57D)
Diffstat (limited to 'app-editors')
-rw-r--r--app-editors/retext/ChangeLog11
-rw-r--r--app-editors/retext/retext-4.0.1-r1.ebuild57
-rw-r--r--app-editors/retext/retext-9999.ebuild57
3 files changed, 124 insertions, 1 deletions
diff --git a/app-editors/retext/ChangeLog b/app-editors/retext/ChangeLog
index 13376d093bdf..59ef03c75738 100644
--- a/app-editors/retext/ChangeLog
+++ b/app-editors/retext/ChangeLog
@@ -1,6 +1,15 @@
# ChangeLog for app-editors/retext
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-editors/retext/ChangeLog,v 1.1 2013/06/29 12:33:55 tomwij Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-editors/retext/ChangeLog,v 1.2 2013/06/29 13:02:38 tomwij Exp $
+
+*retext-9999 (29 Jun 2013)
+*retext-4.0.1-r1 (29 Jun 2013)
+
+ 29 Jun 2013; Tom Wijsman <TomWij@gentoo.org> +retext-4.0.1-r1.ebuild,
+ +retext-9999.ebuild:
+ Revision bump. Made symlink from /usr/bin/retext to /usr/bin/retext.py. Made
+ sure locales are respected by removing disabled locales. Removed unnecessary
+ inherit. Added live 9999 ebuild for testing purposes.
*retext-4.0.1 (29 Jun 2013)
diff --git a/app-editors/retext/retext-4.0.1-r1.ebuild b/app-editors/retext/retext-4.0.1-r1.ebuild
new file mode 100644
index 000000000000..1c0c503120a5
--- /dev/null
+++ b/app-editors/retext/retext-4.0.1-r1.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-editors/retext/retext-4.0.1-r1.ebuild,v 1.1 2013/06/29 13:02:38 tomwij Exp $
+
+EAPI="5"
+
+PYTHON_COMPAT=( python2_7 python3_2 )
+PLOCALES="ca cs cy da de es et eu fr it ja pl pt pt_BR ru sk uk zh_CN zh_TW"
+
+inherit distutils-r1 l10n
+
+MY_PN="ReText"
+MY_P="${MY_PN}-${PV/_/~}"
+
+if [[ ${PV} == *9999* ]] ; then
+ inherit git-2
+ EGIT_REPO_URI="git://git.code.sf.net/p/retext/git"
+ KEYWORDS=""
+else
+ SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+DESCRIPTION="A Qt-based text editor for Markdown and reStructuredText"
+HOMEPAGE="http://sourceforge.net/p/retext/home/ReText/"
+
+LICENSE="GPL-2"
+SLOT="0"
+
+IUSE="+spell"
+
+RDEPEND="
+ dev-python/docutils
+ dev-python/markdown
+ dev-python/markups
+ dev-python/PyQt4[webkit]
+ spell? ( dev-python/pyenchant )
+"
+
+S="${WORKDIR}"/${MY_P}
+
+src_install() {
+ distutils-r1_src_install
+
+ newicon {icons/,}${PN}.png
+ newicon {icons/,}${PN}.svg
+
+ l10n_for_each_disabled_locale_do remove_locale
+
+ make_desktop_entry ${PN} "${MY_PN} Editor" ${PN} "Development;Utility;TextEditor"
+
+ dosym /usr/bin/${PN}{.py,}
+}
+
+remove_locale() {
+ find "${D}" -name "retext_${1}.qm" -delete || die "Failed to remove locale ${1}."
+}
diff --git a/app-editors/retext/retext-9999.ebuild b/app-editors/retext/retext-9999.ebuild
new file mode 100644
index 000000000000..bdd8f88391ff
--- /dev/null
+++ b/app-editors/retext/retext-9999.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-editors/retext/retext-9999.ebuild,v 1.1 2013/06/29 13:02:38 tomwij Exp $
+
+EAPI="5"
+
+PYTHON_COMPAT=( python2_7 python3_2 )
+PLOCALES="ca cs cy da de es et eu fr it ja pl pt pt_BR ru sk uk zh_CN zh_TW"
+
+inherit eutils distutils-r1 l10n
+
+MY_PN="ReText"
+MY_P="${MY_PN}-${PV/_/~}"
+
+if [[ ${PV} == *9999* ]] ; then
+ inherit git-2
+ EGIT_REPO_URI="git://git.code.sf.net/p/retext/git"
+ KEYWORDS=""
+else
+ SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+DESCRIPTION="A Qt-based text editor for Markdown and reStructuredText"
+HOMEPAGE="http://sourceforge.net/p/retext/home/ReText/"
+
+LICENSE="GPL-2"
+SLOT="0"
+
+IUSE="+spell"
+
+RDEPEND="
+ dev-python/docutils
+ dev-python/markdown
+ dev-python/markups
+ dev-python/PyQt4[webkit]
+ spell? ( dev-python/pyenchant )
+"
+
+S="${WORKDIR}"/${MY_P}
+
+src_install() {
+ distutils-r1_src_install
+
+ newicon {icons/,}${PN}.png
+ newicon {icons/,}${PN}.svg
+
+ l10n_for_each_disabled_locale_do remove_locale
+
+ make_desktop_entry ${PN} "${MY_PN} Editor" ${PN} "Development;Utility;TextEditor"
+
+ dosym /usr/bin/${PN}{.py,}
+}
+
+remove_locale() {
+ find "${D}" -name "retext_${1}.qm" -delete || die "Failed to remove locale ${1}."
+}