# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ # # Authors: # Rene Wagner # # based on gnome2.eclass and gpe.bbclass (the latter from OpenEmbedded) inherit libtool debug # GPE ECLASS GPECONF="" # extra configure opts passed to econf ELTCONF="" # extra options passed to elibtoolize [ -z "${GPE_MIRROR}" ] && export GPE_MIRROR="http://ftp.handhelds.org/pub/projects/gpe/source" [ -z "${GPE_TARBALL_SUFFIX}" ] && export GPE_TARBALL_SUFFIX="gz" [ -z "${DOCS}" ] && export DOCS="" SRC_URI="${GPE_MIRROR}/${PN}-${PV}.tar.${GPE_TARBALL_SUFFIX}" HOMEPAGE="http://gpe.handhelds.org/" IUSE="${IUSE} debug" use debug && GPECONF="${GPECONF} --enable-debug=yes" DEPEND=">=dev-util/intltool-0.29 >=dev-util/pkgconfig-0.12.0 >=sys-apps/sed-4" gpe_src_configure() { if [ -f configure ]; then # [ -n "${ELTCONF}" ] && elibtoolize ${ELTCONF} elibtoolize ${ELTCONF} econf "$@" ${GPECONF} || die "./configure failure" fi } gpe_src_compile() { gpe_src_configure "$@" emake PREFIX=/usr || die "compile failure" } gpe_src_install() { if [ -f configure ]; then einstall "$@" else make DESTDIR=${D} PREFIX=/usr "$@" install fi # manual document installation [ -n "${DOCS}" ] && dodoc ${DOCS} } EXPORT_FUNCTIONS src_compile src_install