# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

DESCRIPTION="Solipsis is a pure peer-to-peer system for a massively shared virtual world. There is no server at all: it only relies on end-users' machines. Built on twisted. "
HOMEPAGE="http://solipsis.netofpeers.net/"
SRC_URI="http://download.berlios.de/solipsis/${P}-src.tar.gz"

LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~ppc ~x86"
IUSE="doc"

DEPEND=">=x11-libs/wxGTK-2.6.0 \
>=dev-python/wxpython-2.6.0 \
>=dev-python/twisted-2.0.0 \
>=dev-python/elementtree-1.2 \
>=dev-python/twisted-web-0.5.0 \
>=dev-python/imaging-1.1.5"

src_install() {
        dodir /opt/${P}

#	mv /var/tmp/portage/solipsis-0.9/work/solipsis-0.9-source ${S}

        cp -dpR ${S}/{state,solipsis,resources,po,log,img,conf,avatars} ${D}/opt/${P}
        cp -dp ${S}/* ${D}/opt/${P}
	chmod 0755 ${D}/opt/${P} -R

	if use doc; then
		dodir /usr/share/doc/${P}
		cp -r ${S}/docs ${D}/usr/share/doc/${P}/
	fi
}