| 1 |
# Copyright 1999-2011 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/media-gfx/fr0st/fr0st-1.4.ebuild,v 1.1 2011/08/09 20:01:54 ssuominen Exp $
|
| 4 |
|
| 5 |
EAPI=3
|
| 6 |
|
| 7 |
WX_GTK_VER="2.8"
|
| 8 |
PYTHON_DEPEND="2:2.7"
|
| 9 |
|
| 10 |
inherit eutils multilib python wxwidgets
|
| 11 |
|
| 12 |
DESCRIPTION="A fractal flame editor"
|
| 13 |
HOMEPAGE="http://fr0st.wordpress.com/"
|
| 14 |
SRC_URI="http://launchpad.net/${PN}/trunk/${PV}.0/+download/${P}-src.tgz"
|
| 15 |
|
| 16 |
LICENSE="GPL-3"
|
| 17 |
SLOT="0"
|
| 18 |
KEYWORDS="~amd64 ~x86"
|
| 19 |
IUSE=""
|
| 20 |
|
| 21 |
RDEPEND="dev-python/wxpython:2.8
|
| 22 |
>=media-gfx/flam3-3.0.1"
|
| 23 |
DEPEND="${RDEPEND}"
|
| 24 |
|
| 25 |
S=${WORKDIR}/${P}-src
|
| 26 |
|
| 27 |
pkg_setup() {
|
| 28 |
fr0st_libdir="/usr/$(get_libdir)/fr0st"
|
| 29 |
fr0st_sharedir="/usr/share/fr0st"
|
| 30 |
|
| 31 |
python_set_active_version 2
|
| 32 |
python_pkg_setup
|
| 33 |
}
|
| 34 |
|
| 35 |
src_prepare() {
|
| 36 |
python_convert_shebangs 2 fr0st.py
|
| 37 |
}
|
| 38 |
|
| 39 |
src_install() {
|
| 40 |
insinto "${fr0st_sharedir}"
|
| 41 |
doins -r icons samples || die
|
| 42 |
|
| 43 |
insinto "${fr0st_libdir}"
|
| 44 |
doins -r fr0stlib || die
|
| 45 |
|
| 46 |
exeinto "${fr0st_libdir}"
|
| 47 |
doexe fr0st.py || die
|
| 48 |
|
| 49 |
dosym "${fr0st_libdir}"/fr0st.py /usr/bin/fr0st || die
|
| 50 |
dosym "${fr0st_sharedir}"/icons/fr0st.png /usr/share/pixmaps/fr0st.png || die
|
| 51 |
|
| 52 |
make_desktop_entry fr0st fr0st
|
| 53 |
|
| 54 |
dodoc changelog.txt
|
| 55 |
}
|
| 56 |
|
| 57 |
pkg_postinst() {
|
| 58 |
python_mod_optimize "${fr0st_libdir}"
|
| 59 |
}
|
| 60 |
|
| 61 |
pkg_postrm() {
|
| 62 |
python_mod_cleanup "${fr0st_libdir}"
|
| 63 |
}
|