LICENSE="GPL-2+"
SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="executable"
+KEYWORDS="~amd64"
+IUSE="+executable"
DEPEND="executable? ( >=dev-libs/igraph-0.6 )"
RDEPEND="${DEPEND}"
+DOCDIR="/usr/share/doc/${PF}"
+
src_configure(){
- econf $(use_enable executable)
+ econf $(use_enable executable) \
+ --docdir="${EPREFIX}${DOCDIR}"
+}
+
+src_install(){
+ # The examples graphs are meant to be fed uncompressed into the 'rw'
+ # program. The rest of the docs are small so just leave everything
+ # uncompressed.
+ docompress -x "${DOCDIR}"
+ default
}