EAPI="5"

inherit eutils

DESCRIPTION="C++/C library to construct Excel .xls files in code"
HOMEPAGE="http://sourceforge.net/projects/xlslib/"
SRC_URI="mirror://sourceforge/xlslib/${PN}-package-${PV}.zip"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="static-libs"

DEPEND="app-arch/unzip"

S=${WORKDIR}/${PN}/xlslib

src_configure() {
	econf \
		$(use_enable static-libs static)
}

src_install() {
	default
	prune_libtool_files
	dodoc xlslibRefGuide.pdf
}