X-Git-Url: http://gitweb.michael.orlitzky.com/?p=mjo-overlay.git;a=blobdiff_plain;f=sci-mathematics%2Frw%2Frw-0.7.ebuild;h=0e4a4480c92465e5f38f26dce0c0586225b0a136;hp=91d52f474f3d7e43bb3fd35e9683ed4e07922cc9;hb=e79c6779c3b52eea6dd4f06b971f1e0b34a905b2;hpb=aa2c0fc62525a7b65288b6513f819b7998760ca9 diff --git a/sci-mathematics/rw/rw-0.7.ebuild b/sci-mathematics/rw/rw-0.7.ebuild index 91d52f4..0e4a448 100644 --- a/sci-mathematics/rw/rw-0.7.ebuild +++ b/sci-mathematics/rw/rw-0.7.ebuild @@ -11,12 +11,28 @@ SRC_URI="${AUTHORPAGE}/software/${P}.tar.gz" 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(){ + # This isn't strictly necessary, but it keeps the examples separated + # in a subdirectory. It also prevents the example graphs from being + # compressed, which is good, since they're supposed to be fed into + # the 'rw' program and it doesn't understand bzip2. + emake DESTDIR="${D}" install-exec + dodoc AUTHORS README NEWS + + insinto "${DOCDIR}" + docompress -x "${DOCDIR}/example_graphs" + doins -r example_graphs }