summaryrefslogtreecommitdiff
blob: 0e09f339f85dbb3bc6af51522e030c49fe6580fe (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
42
43
44
45
46
47
48
49
50
51
52
53
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=3

inherit distutils eutils multilib

DESCRIPTION="Medical software application"
HOMEPAGE="http://www.gnumed.org/"
SRC_URI="http://download.savannah.gnu.org/releases/${PN}/GNUmed-client.${PV}.tgz"

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

DEPEND=""

RDEPEND="dev-lang/python
	dev-python/egenix-mx-base
	dev-python/pypgsql
	dev-python/wxpython"

S="${WORKDIR}/GNUmed-${PV}"

PYTHON_MODNAME="Gnumed"

src_prepare() {
	epatch "${FILESDIR}/gnumed-0.1-gnumed.patch"
}

src_compile() {
	distutils_python_version
	sed -i -e "s@usr/lib/python@usr/$(get_libdir)/python${PYVER}@g" client/usr/bin/gnumed || die
}

src_install() {
	distutils_python_version
	dobin client/usr/bin/gnumed || die
	insinto /usr/share
	doins -r client/usr/share/gnumed || die
	insinto /usr/$(get_libdir)/python${PYVER}
	doins -r client/usr/lib/python/site-packages || die

	insinto /etc/gnumed
	doins client/etc/gnumed/*.conf || die

	dohtml client/usr/share/doc/gnumed/client/user-manual/*.html || die
	dohtml client/usr/share/doc/gnumed/medical_knowledge/de/STIKO/STI_NEU.htm || die
	docinto examples
	dodoc client/etc/gnumed/*.conf || die
}