# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ # This ebuild does not work correctly yet, and I'm giving up for the # moment, but perhaps this start will be useful to somebody. # # The problem at this point is that in order to resolve to the path # in which help files, etc., are located, the src/lib/zyzzyva/Auxil.cpp # appends various strings (e.g., "data/help") etc. to the return value # of Auxil::getRootDir(), and this method in turn searches for a directory # that is the working directory of the executable or a parent directory # that contains a zyzzyva.top file. In order for this to work with # Gentoo, in which the exe should be in /usr/bin and the help files should # be in /usr/share/data/zyzzyva-2.0.4/data/help, etc., some hacking of # the src would be required. Perhaps there's some way to pass additional # args to eqmake4 (and ultimately to qmake) in order to configure things # differently. Alternately, perhaps we should install everything in a # self-contained directory, which seems to be what the author intends, # under /opt. # # To be continued... inherit eutils qt4 DESCRIPTION="A word-study program useful for learning Scrabble words and building vocabulary." HOMEPAGE="http://www.zyzzyva.net/" SRC_URI="http://zyzzyva.net/packages/${P}.tar.gz" LICENSE="GPL" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="" DEPEND=">=x11-libs/qt-4.0" RDEPEND="" src_compile(){ eqmake4 ${PN}.pro PREFIX="${D}/usr" INSTALL_DIR="/usr/share/${P}" HELP_DIR="/usr/share/${P}/data/help" || die "eqmake4 failed" emake -j1 || die "emake failed" } src_install(){ mkdir -p ${D}usr/bin ${D}usr/lib ${D}usr/share/${P} cp ${S}/bin/lib* ${D}usr/lib cp ${S}/bin/${PN} ${D}usr/bin cp ${S}/${PN}.top ${D}usr/share/${P} cp -R ${S}/images ${S}/data ${D}usr/share/${P}/ }