commit:     903a8796ef233ffc7ad3c272b6306de47899349e
Author:     David Mudrak <gentoo <AT> mudrd8mz <DOT> net>
AuthorDate: Wed Jan 13 10:30:42 2021 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Mon Jan 18 14:30:37 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=903a8796

dev-lang/sassc: Fix missing sassc version number display

When running `sassc --version` the sassc version was displayed as 'na'.
Following the upstream recommendation at
https://github.com/sass/sassc/blob/master/docs/building/unix-instructions.md#manually-building-from-tar-sources-via-github
do the same thing as dev-libs/libsass has been also doing and inject
the version file before building the package.

Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: David Mudrak <gentoo <AT> mudrd8mz.net>
Closes: https://github.com/gentoo/gentoo/pull/19049
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 dev-lang/sassc/sassc-3.6.1.ebuild | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dev-lang/sassc/sassc-3.6.1.ebuild 
b/dev-lang/sassc/sassc-3.6.1.ebuild
index 309816f17dd..82d1a97e118 100644
--- a/dev-lang/sassc/sassc-3.6.1.ebuild
+++ b/dev-lang/sassc/sassc-3.6.1.ebuild
@@ -21,5 +21,6 @@ DOCS=( Readme.md )
 
 src_prepare() {
        default
+       [[ -f VERSION ]] || echo "${PV}" > VERSION
        eautoreconf
 }

Reply via email to