app-cdr/dumpet: respect CC/CFLAGS, require valgrind for tests
authorBen Kohler <bkohler@gentoo.org>
Wed, 26 Jun 2019 12:29:48 +0000 (07:29 -0500)
committerBen Kohler <bkohler@gentoo.org>
Wed, 26 Jun 2019 12:39:11 +0000 (07:39 -0500)
Closes: https://bugs.gentoo.org/688694
Package-Manager: Portage-2.3.67, Repoman-2.3.16
Signed-off-by: Ben Kohler <bkohler@gentoo.org>
app-cdr/dumpet/dumpet-2.1_p20140601.ebuild

index 96ef9972e7ad502c109263774f3bf0ba67cc70f4..27a98a38ba76d2b92252d774b0ed505c6b2a8dc0 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Authors
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -14,16 +14,19 @@ SRC_URI="https://github.com/rhboot/dumpet/archive/${COMMIT}.tar.gz -> ${P}.tar.g
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
-IUSE=""
+IUSE="test"
 
 RDEPEND="dev-libs/libxml2
        dev-libs/popt"
 DEPEND="${RDEPEND}
-       virtual/pkgconfig"
+       virtual/pkgconfig
+       test? ( dev-util/valgrind )"
 
 src_prepare() {
        sed -i Makefile \
                -e "s/^install : all$/install :/" \
+               -e "s/^CFLAGS:=/CFLAGS?=/" \
+               -e "s/^CC:=/CC?=/" \
                || die
        default
 }