# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="SIFT algorithm for automatic panorama creation" HOMEPAGE="http://user.cs.tu-berlin.de/~nowozin/autopano-sift/" SRC_URI="http://user.cs.tu-berlin.de/~nowozin/autopano-sift/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" inherit mono eutils DEPEND=">=dev-dotnet/mono-1.0 >=dev-dotnet/glade-sharp-1.0.4 >=dev-dotnet/gtk-sharp-1.0.4-r1 >=dev-dotnet/libgdiplus-1.0.4-r1" src_compile() { cd ${S}/src sed -i 's%^AUTOPANO_PATH=.*%AUTOPANO_PATH=/usr/lib/autopano-sift%' \ bin/autopano-complete.sh make || die "compiling failed" } src_install() { insinto /usr/lib/$PN doins src/util/*.exe src/util/autopanog/*.exe src/libsift.dll exeinto /usr/bin cat >${T}/autopano <<-\EOF #!/bin/sh exec mono "/usr/lib/autopano-sift/${0##*/}.exe" ${1+"$@"} EOF doexe ${T}/autopano for file in autopanog generatekeys; do dosym autopano /usr/bin/"$file" done doexe src/bin/autopano-complete.sh dodoc README CHANGES LICENSE cd ${S}/doc dodoc *.pdf *.txt doman *.1 *.7 }