summaryrefslogtreecommitdiff
blob: 70170b7b1a5b9be21d214979c15d28e7169c1a38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/bkchem/bkchem-0.14.0_pre2-r1.ebuild,v 1.1 2015/02/20 10:28:32 jlec Exp $

EAPI=5

PYTHON_COMPAT=( python2_7 )

PYTHON_REQ_USE="tk"

inherit distutils-r1 eutils versionator

MY_P="${PN}-$(replace_version_separator 3 -)"

DESCRIPTION="Chemical drawing program"
HOMEPAGE="http://bkchem.zirael.org/"
SRC_URI="http://bkchem.zirael.org/download/${MY_P}.tar.gz"

SLOT="0"
KEYWORDS="~amd64 ~x86"
LICENSE="GPL-2"
IUSE="cairo"

DEPEND="cairo? ( dev-python/pycairo[svg,${PYTHON_USEDEP}] )"
RDEPEND="${DEPEND}"

S="${WORKDIR}"/${MY_P}

PATCHES=(
	"${FILESDIR}"/${P}-nolauncher.patch
)

python_install() {
	distutils-r1_python_install "--strip=${ED}/_${EPYTHON}"
}

python_install_all() {
	distutils-r1_python_install_all
	python_foreach_impl python_newscript ${PN}/${PN}.py ${PN}
	make_desktop_entry bkchem BKChem "${EPREFIX}"/usr/share/${PN}/images/${PN}.png Science
}