# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ MY_P="${P/co/Co}" DESCRIPTION="Cornice is a cross-platform image viewer written in Python" HOMEPAGE="http://wxglade.sourceforge.net/extra/cornice.html" SRC_URI="http://wxglade.sourceforge.net/extra/${MY_P}.tgz" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86" IUSE="" DEPEND="${RDEPEND} >=sys-apps/sed-4" RDEPEND=">=dev-lang/python-2.2.1 >=dev-python/wxpython-2.4 >=dev-python/imaging-1.1.2" S="${WORKDIR}/${MY_P}" DEST_DIR="/usr/share/${PN}" src_unpack() { unpack ${A} cd ${S} # Remove unneeded pixmaps rm -R icons/win # Modify paths to resources sed -i \ -e "s:toolbars\.xrc:${DEST_DIR}/toolbars.xrc:" \ *.py || die "sed *.py failed" sed -i \ -e "s:resources\.xrc:${DEST_DIR}/resources.xrc:" \ main.py || die "sed main.py failed" } src_install() { dodoc README.txt mkdir -p "${D}${DEST_DIR}" cp -R *.py *.xrc icons "${D}${DEST_DIR}" exeinto "${DEST_DIR}" doexe cornice.py dodir /usr/bin dosym ${DEST_DIR}/cornice.py /usr/bin/cornice insinto /usr/share/locale/it/LC_MESSAGES doins i18n/it/LC_MESSAGES/cornice.mo }