# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # $Header: /home/cvsroot/gentoo-x86/media-gfx/gphoto2/gphoto2-2.0-r1.ebuild,v 1.5 2002/07/23 05:18:06 seemant Exp $ inherit libtool S=${WORKDIR}/${P}dev6 DESCRIPTION="free, redistributable digital camera software application" SRC_URI="http://n-dimensional.de/projects/digicam/software/snapshots/${P}dev6.tar.bz2" HOMEPAGE="http://www.gphoto.org/" SLOT="0" LICENSE="GPL-2" KEYWORDS="x86" DEPEND=">=dev-libs/libusb-0.1.6 =dev-libs/glib-1.2* >=sys-libs/zlib-1.1.4 =media-libs/libgphoto2-2.1.1" src_compile() { elibtoolize aclocal # -pipe does no work env CFLAGS="${CFLAGS/-pipe/}" ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --with-exif \ || die cp libgphoto2/Makefile libgphoto2/Makefile.orig sed -e 's:$(prefix)/doc/gphoto2:/usr/share/doc/${PF}:' \ libgphoto2/Makefile.orig >libgphoto2/Makefile make || die } src_install() { make prefix=${D}/usr \ sysconfdir=${D}/etc \ gphotodocdir=${D}/usr/share/doc/${PF} \ HTML_DIR=${D}/usr/share/doc/${PF}/sgml \ install || die dodoc ChangeLog NEWS* README rm -rf ${D}/usr/share/doc/${PF}/sgml/gphoto2 }