eclass/ruby-fakegem.eclass: fix warning about compressed docs
authorHans de Graaff <graaff@gentoo.org>
Sun, 9 Dec 2018 07:07:50 +0000 (08:07 +0100)
committerHans de Graaff <graaff@gentoo.org>
Sun, 9 Dec 2018 07:38:32 +0000 (08:38 +0100)
Remove automatically generated compressed versions of the javascript
code to avoid warnings about colliding files by ecompress.

We can only do this for the "rdoc" recipe because that is the only
predictable generation method. The other recipes will need to handle
this in the ebuilds.

Signed-off-by: Hans de Graaff <graaff@gentoo.org>
eclass/ruby-fakegem.eclass

index ecbf6403e43d677a5af3880e2d3568903db57c6a..e2c333a5e7f40a0ce6f607598ad714f3ba825277 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 # @ECLASS: ruby-fakegem.eclass
@@ -380,6 +380,7 @@ all_fakegem_compile() {
                                ;;
                        rdoc)
                                rdoc ${RUBY_FAKEGEM_DOC_SOURCES} || die "failed to (re)build documentation"
+                               rm -f doc/js/*.gz || die "failed to remove duplicated compressed javascript files"
                                ;;
                        yard)
                                yard doc ${RUBY_FAKEGEM_DOC_SOURCES} || die "failed to (re)build documentation"