]> gitweb.michael.orlitzky.com - mjo-overlay.git/commitdiff
Finish (?) sci-mathematics/rw ebuild.
authorMichael Orlitzky <michael@orlitzky.com>
Thu, 18 Jun 2015 02:03:07 +0000 (22:03 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Thu, 18 Jun 2015 02:03:07 +0000 (22:03 -0400)
sci-mathematics/rw/Manifest [new file with mode: 0644]
sci-mathematics/rw/rw-0.7.ebuild

diff --git a/sci-mathematics/rw/Manifest b/sci-mathematics/rw/Manifest
new file mode 100644 (file)
index 0000000..bf2d4e1
--- /dev/null
@@ -0,0 +1,3 @@
+DIST rw-0.7.tar.gz 322255 SHA256 e049966e5c4f446b639d4b0c40d3ceddd57a79a8890c10dce90614d105d962e7 SHA512 2bccbaf1a7432b845e9bf14d79e350275d1ca417cb368e870b6cb1a310a92cce67c9e4ce3c550da2900a8e08c3771cc534d593f67267eee17d25c756d8c36e3b WHIRLPOOL 27d274a528a7f074b8ca1b38872220fe4e49488199fa496fab5330fd1866b504851250cfba2539a86c63104bbdee7be29a677aa6a21a7bf899cb546204e9138c
+EBUILD rw-0.7.ebuild 1027 SHA256 5b3e2d037a4d1d292f0b94e7b0a2f2fd3fa5cc1f8bcbbe7f84e39c3fb9ace5c4 SHA512 b8ade1972d5ca416a274a3b3c8b7a83217d098ddad7a876b0b18384815267db4e73eb8993485be7829da4b004e92ec16445b5d2b2a409938f6eed1fdaae24520 WHIRLPOOL d4bde3ab6bb02669f58eaac135f94a3730ebc08490250a06b05caf1e15c3e8fd845859d262dcf1f9576d6149fe7f387fb713d03f6d4ccadef7b4ecbfcf629ce5
+MISC metadata.xml 333 SHA256 965ad34067794f49c44d0c479e2f40e163fa18e471233308a7139a2a02423743 SHA512 c25b577595b2cc15e4b5f451d6a93c6f75405268a59651e7166999d67864c849994feea388539876ee505267a4bc2dcc494392b1035ad03db47bb8343bb67a2c WHIRLPOOL fb8e246ee16e318ca43b0ceb88dd9cb67ef226d9dac52a2026c55021b7ec05ae8d203ad318dd0ead85dee8b5c57e534e509215fbb49f4f1022a3e0a800ec047c
index 91d52f474f3d7e43bb3fd35e9683ed4e07922cc9..0e4a4480c92465e5f38f26dce0c0586225b0a136 100644 (file)
@@ -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
 }