| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/app-editors/editra/editra-0.7.01.ebuild,v 1.1 2012/04/26 04:02:47 dirtyepic Exp $
|
| 4 |
|
| 5 |
EAPI=2
|
| 6 |
SUPPORT_PYTHON_ABIS=1
|
| 7 |
PYTHON_DEPEND="2:2.5"
|
| 8 |
RESTRICT_PYTHON_ABIS="3.* *-jython 2.7-pypy-*"
|
| 9 |
|
| 10 |
inherit distutils eutils fdo-mime python
|
| 11 |
|
| 12 |
MY_PN=${PN/e/E}
|
| 13 |
|
| 14 |
DESCRIPTION="Multi-platform text editor supporting over 50 programming languages."
|
| 15 |
HOMEPAGE="http://editra.org http://pypi.python.org/pypi/Editra"
|
| 16 |
SRC_URI="http://editra.org/uploads/src/${MY_PN}-${PV}.tar.gz"
|
| 17 |
|
| 18 |
LICENSE="wxWinLL-3.1"
|
| 19 |
SLOT="0"
|
| 20 |
KEYWORDS="~amd64 ~x86"
|
| 21 |
IUSE="spell"
|
| 22 |
|
| 23 |
DEPEND=">=dev-python/wxpython-2.8.9.2:2.8
|
| 24 |
>=dev-python/setuptools-0.6"
|
| 25 |
# setuptools is RDEPEND because it's used by the runtime for installing plugins
|
| 26 |
RDEPEND="${DEPEND}
|
| 27 |
spell? ( dev-python/pyenchant )"
|
| 28 |
|
| 29 |
S="${WORKDIR}"/${MY_PN}-${PV}
|
| 30 |
|
| 31 |
src_compile() {
|
| 32 |
distutils_src_compile --no-clean # http://code.google.com/p/editra/issues/detail?id=481
|
| 33 |
}
|
| 34 |
|
| 35 |
src_install() {
|
| 36 |
distutils_src_install --no-clean
|
| 37 |
insinto /usr/share/pixmaps
|
| 38 |
doins "${S}"/pixmaps/editra.png
|
| 39 |
make_desktop_entry editra Editra editra "Development;TextEditor"
|
| 40 |
dodoc FAQ THANKS
|
| 41 |
}
|
| 42 |
|
| 43 |
pkg_postinst() {
|
| 44 |
distutils_pkg_postinst
|
| 45 |
fdo-mime_desktop_database_update
|
| 46 |
}
|
| 47 |
|
| 48 |
pkg_postrm() {
|
| 49 |
distutils_pkg_postrm
|
| 50 |
fdo-mime_desktop_database_update
|
| 51 |
}
|