# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

DESCRIPTION="An ELisp library abstracting mime and mail cross-platform -- FLIM"

# Identify; erupt
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~x86 ~alpha ~sparc ~ppc ~macos"

# Locate the package for leech and looking
HOMEPAGE="http://cvs.m17n.org/lemi/"
SRC_URI="ftp://ftp.m17n.org/pub/mule/flim/flim-1.14/${P}.tar.gz"

# Declare external dependencies
DEPEND=">=app-xemacs/apel-1.25"

# Declare exposed USE flags
IUSE=""

# Sandbox our work to this safehouse
PACKAGEDIR=${D}/usr/lib/xemacs/mule-packages/

src_compile() {
	# Compile as an XEmacs package
	make package PACKAGEDIR=${PACKAGEDIR} ||
	 die "[flim] untimely death: cannot make package"
}

src_install() {
	# Install as an XEmacs package; we're no mere set of files
	make install-package PACKAGEDIR=${PACKAGEDIR} ||
	 die "[flim] untimely death: cannot make install-package"

	# Install documentation
	dodoc FLIM-API.en NEWS VERSION README* Changelog
}