x11-libs/agg: Fix static libs handling, only install needed .la files
authorPacho Ramos <pacho@gentoo.org>
Mon, 28 May 2018 17:54:28 +0000 (19:54 +0200)
committerPacho Ramos <pacho@gentoo.org>
Mon, 28 May 2018 17:55:26 +0000 (19:55 +0200)
(none are needed with -static-libs and *some* are needed with static)

Package-Manager: Portage-2.3.38, Repoman-2.3.9

x11-libs/agg/agg-2.5-r3.ebuild

index d9bf36876ffb7803b06f8ccc0be59f1cceb22f11..de2db3f9f25ae2c72a6282ace64b480a22ef557f 100644 (file)
@@ -2,8 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
-
-inherit autotools
+inherit autotools ltprune
 
 DESCRIPTION="High quality rendering engine library for C++"
 HOMEPAGE="http://antigrain.com/"
@@ -46,11 +45,16 @@ src_configure() {
        local myeconfargs=(
                --disable-ctrl
                --disable-examples
-               --disable-dependency-tracking
                $(use_enable gpc)
                $(use_enable sdl)
+               $(use_enable static-libs static)
                $(use_enable truetype freetype)
                $(use_with X x)
        )
        econf ${myeconfargs[@]}
 }
+
+src_install() {
+       default
+       prune_libtool_files
+}