SRC_URI="http://www-ra.informatik.uni-tuebingen.de/downloads/SNNS/SNNSv${PV}.tar.gz" HOMEPAGE="http://www-ra.informatik.uni-tuebingen.de/SNNS/" DESCRIPTION="Stuttgart Neural Network Simulator" LICENSE="SNNS-4.2" KEYWORDS="x86" SLOT="4.2" S="${WORKDIR}/SNNSv4.2" IUSE="X" DEPEND="X? (>= x11-base/xfree) virtual/glibc" src_unpack() { unpack ${A} cd ${S} patch -p0 < ${FILESDIR}/${P}-gentoo.patch } src_compile () { local myconf use X || myconf="--without-x" ./configure $myconf --enable-global --prefix=/usr --host=${CHOST} || die emake || die } src_install () { for file in $(find tools -type f -perm +100); do dobin $file done if [ -x xgui/sources/xgui ]; then newbin xgui/sources/xgui snns fi dodir /etc/env.d echo XGUILOADPATH=/usr/doc/${P}/ > ${D}/etc/env.d/99snns insinto /usr/share/doc/${P}/ doins default.cfg help.hdoc insinto /usr/share/doc/${P}/examples doins examples/* doman man/man*/* }