sci-mathematics/rw: new revision to fix the build.
authorMichael Orlitzky <mjo@gentoo.org>
Tue, 8 Oct 2019 22:04:47 +0000 (18:04 -0400)
committerMichael Orlitzky <mjo@gentoo.org>
Tue, 8 Oct 2019 22:07:10 +0000 (18:07 -0400)
No good deed goes unpunished! The recent version bump that contained
only "minor build system and documentation fixes" broke the build. The
upstream v0.8 tarball contains symlinks to various important files
instead of the files themselves, and that doesn't always work. Instead,
we now run eautoreconf in src_prepare() to (re)generate those files.

Closes: https://bugs.gentoo.org/696986
Package-Manager: Portage-2.3.76, Repoman-2.3.16
Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
sci-mathematics/rw/rw-0.8-r1.ebuild [moved from sci-mathematics/rw/rw-0.8.ebuild with 74% similarity]

similarity index 74%
rename from sci-mathematics/rw/rw-0.8.ebuild
rename to sci-mathematics/rw/rw-0.8-r1.ebuild
index 97ddc55d7a6782bf5367cfb2a608a6a93c3d2ef1..9a87318939824e05a9bb12e35d7a34c8c640a2b0 100644 (file)
@@ -3,6 +3,8 @@
 
 EAPI=7
 
+inherit autotools
+
 DESCRIPTION="Compute rank-width decompositions of graphs"
 HOMEPAGE="https://sourceforge.net/projects/rankwidth/"
 SRC_URI="https://downloads.sourceforge.net/project/rankwidth/${P}.tar.gz"
@@ -20,6 +22,15 @@ RDEPEND="${DEPEND}
 
 DOCDIR="/usr/share/doc/${PF}"
 
+src_prepare() {
+       # The upstream tarball for v0.8 contains SYMLINKS to ar-lib,
+       # compile, install-sh, ltmain.sh, etc. And those symlinks don't
+       # always point to a working location for us, so we have to
+       # (re)generate actual files for that stuff. Bug 696986.
+       eautoreconf
+       default
+}
+
 src_configure(){
        econf $(use_enable executable) --docdir="${EPREFIX}${DOCDIR}"
 }