app-editors/nano: switch USE=magic to the new configure flag
authorMike Frysinger <vapier@gentoo.org>
Thu, 24 Sep 2015 21:40:47 +0000 (17:40 -0400)
committerMike Frysinger <vapier@gentoo.org>
Thu, 24 Sep 2015 21:41:10 +0000 (17:41 -0400)
No need to hack autoconf cache vars anymore.

app-editors/nano/nano-2.4.2.ebuild

index 8548decc2d0ec1bd2a98920101af036be6f88316..f324c2e1ac7f765a27d6571fa554c6cc4f81e10b 100644 (file)
@@ -41,7 +41,6 @@ src_prepare() {
 
 src_configure() {
        use static && append-ldflags -static
-       eval export ac_cv_{header_magic_h,lib_magic_magic_open}=$(usex magic)
        local myconf=()
        case ${CHOST} in
        *-gnu*|*-uclibc*) myconf+=( "--with-wordbounds" ) ;; #467848
@@ -53,6 +52,7 @@ src_configure() {
                $(use_enable !minimal multibuffer) \
                $(use_enable !minimal nanorc) \
                --disable-wrapping-as-root \
+               $(use_enable magic libmagic) \
                $(use_enable spell speller) \
                $(use_enable justify) \
                $(use_enable debug) \