commit:     96eec4c27726146b626acad6b91b395ba7135293
Author:     Dale Lukas Peterson <hazelnusse <AT> gmail <DOT> com>
AuthorDate: Fri Sep 12 00:08:53 2014 +0000
Commit:     Jauhien Piatlicki <jauhien <AT> gentoo <DOT> org>
CommitDate: Fri Sep 12 00:14:03 2014 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=96eec4c2

Add src_unpack to ensure mercurial_src_unpack is called

The inheritance mechanism of ebuilds is such that functions not
overridden are taken from the last package inherited. In this case,
that is vcs-snapshot, which provides a src_unpack that does not clone
the mercurial repository. By explicitly providing src_unpack, we
guarantee that mercurial_src_unpack is called prior to
vcs-snapshot_src_unpack.

---
 dev-cpp/eigen/eigen-9999.ebuild | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/dev-cpp/eigen/eigen-9999.ebuild b/dev-cpp/eigen/eigen-9999.ebuild
index 5d4d7e1..fa3eb94 100644
--- a/dev-cpp/eigen/eigen-9999.ebuild
+++ b/dev-cpp/eigen/eigen-9999.ebuild
@@ -50,6 +50,11 @@ RDEPEND="
        !dev-cpp/eigen:0
        ${CDEPEND}"
 
+src_unpack() {
+       mercurial_src_unpack
+       vcs-snapshot_src_unpack
+}
+
 src_prepare() {
        sed -i \
                -e "s:/usr:${EPREFIX}/usr:g" \

Reply via email to