#Here's the ebuild I made for fox. #You may want to double check what I did, the doc/Makefile seemed hell bent on #putting the html documentation in $(prefix)/html (or /usr/fox/html) regardless #of configure options. I stuck all the html user docs in #/usr/share/doc/fox-${VER}/html. #The ebuild: #----cut here---- # Copyright 1999-2000 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Author Brian Olsen # /space/gentoo/cvsroot/gentoo-x86/x11-libs/fltk/fltk-1.0.11-r2.ebuild,v 1.2 2002/04/27 23:34:20 bangert Exp S=${WORKDIR}/${P} DESCRIPTION="C++ based Toolkit for developing Graphical User Interfaces easily and effectively" SRC_URI="http://www.fox-toolkit.org/ftp/${P}.tar.gz" HOMEPAGE="http://www.fox-toolkit.org" DEPEND="virtual/glibc virtual/x11 opengl? ( virtual/opengl )" src_compile() { local myconf use opengl || myconf="$myconf --with-opengl=no" #default enabled use cups && myconf="$myconf --enable-cups" #default disabled #Learned '${prefix}' trick from studying python ebuild #There are no info files ./configure \ --prefix=/usr \ --mandir='${prefix}'/share/man \ --host=${CHOST} \ ${myconf} || die "Configuration Failed" emake || die "Parallel Make Failed" } src_install () { make prefix=${D}/usr/ \ install || die "Installation Failed" dodoc README INSTALL LICENSE ADDITIONS AUTHORS TRACING dodir /usr/share/doc/${PF}/html mv ${D}/usr/fox/html/* ${D}/usr/share/doc/${PF}/html/ rmdir ${D}/usr/fox/html rmdir ${D}/usr/fox }