# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="2" inherit eutils LANGUAGES="linguas_en linguas_ca linguas_cs linguas_de linguas_es linguas_gl linguas_ru linguas_sk" DESCRIPTION="Cycle is a calendar program for women" HOMEPAGE="http://cycle.sourceforge.net/" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="${LANGUAGES}" RDEPEND="dev-lang/python dev-python/wxpython" src_prepare() { epatch "${FILESDIR}/cycle-0.3.1-syntax.patch" epatch "${FILESDIR}/cycle-0.3.1-locales.patch" } src_install() { insinto /usr/share/cycle doins cal_year.py cycle.py dialogs.py p_rotor.py save_load.py set_dir.py for DIR in bitmaps icons icons/large icons/mini; do insinto /usr/share/cycle/${DIR} find ${DIR} -maxdepth 1 -type f -exec doins '{}' \; done for LANG in ${LINGUAS}; do [ "x${LANG}" == "xen" ] && continue mv msg/${LANG}/LC_MESSAGES/cycle.mo msg/${LANG}.mo domo msg/${LANG}.mo done dodoc BUGS CHANGELOG COPYRIGHT INSTALL README THANKS dohtml README.html README_ru.html README_de.html echo "#!/bin/sh" > cycle echo "cd /usr/share/cycle && python cycle.py" >> cycle dobin cycle }