# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="Medical software application" HOMEPAGE="http://www.gnumed.org/" SRC_URI="http://download.savannah.gnu.org/releases/gnumed/${PN}-client.${PV}.tgz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" DEPEND="dev-python/wxpython dev-db/pygresql dev-python/pypgsql" inherit python inherit eutils python_version src_unpack () { unpack ${A} cd ${S} epatch ${FILESDIR}/GNUmed-0.1.patch sed -e "s:usr/lib/python:usr/lib/python${PYVER}:g" client/usr/bin/gnumed > gnumed.new cp gnumed.new client/usr/bin/gnumed rm gnumed.new } src_install () { cd client dodir /usr/share cp -R usr/share/gnumed ${D}usr/share dodir /usr/lib/python${PYVER}/site-packages cp -R usr/lib/python/site-packages/Gnumed ${D}usr/lib/python${PYVER}/site-packages/ cd usr/share/doc/gnumed dohtml client/user-manual/* dohtml medical_knowledge/de/STIKO/* cd ${S} dodoc GnuPublicLicense.txt dodoc check-prerequisites.py dodoc check-prerequisites.sh docinto examples dodoc client/etc/gnumed/*.conf insinto /etc/gnumed doins client/etc/gnumed/*.conf dodir /usr/share/ cp -R client/usr/share/locale ${D}usr/share/ dobin client/usr/bin/gnumed }