sys-fs/hfsutils: Export CC
authorJeroen Roovers <jer@gentoo.org>
Mon, 30 Dec 2019 08:08:19 +0000 (09:08 +0100)
committerJeroen Roovers <jer@gentoo.org>
Mon, 30 Dec 2019 08:08:45 +0000 (09:08 +0100)
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Closes: https://bugs.gentoo.org/704232
Signed-off-by: Jeroen Roovers <jer@gentoo.org>
sys-fs/hfsutils/files/hfsutils-3.2.6-errno.patch
sys-fs/hfsutils/files/hfsutils-3.2.6-fix-tcl-8.6.patch
sys-fs/hfsutils/files/largerthan2gb.patch
sys-fs/hfsutils/hfsutils-3.2.6-r6.ebuild [moved from sys-fs/hfsutils/hfsutils-3.2.6-r5.ebuild with 79% similarity]

index 6e25f794b22072776ed4385714b34a9cdb18c42c..f8ab6a0bf0a0e882d2e9e4b9ea226282ddd58d27 100644 (file)
@@ -1,6 +1,5 @@
-diff -ruN hfsutils.orig/tclhfs.c hfsutils-3.2.6/tclhfs.c
---- hfsutils.orig/tclhfs.c     2003-03-31 17:34:55.000000000 +0200
-+++ hfsutils-3.2.6/tclhfs.c    2003-03-31 17:39:51.000000000 +0200
+--- a/tclhfs.c
++++ b/tclhfs.c
 @@ -43,8 +43,7 @@
  # include "charset.h"
  # include "suid.h"
index 19f15424543c68dcfbc31c2af50a3cd16d70a52d..8faf06e0f77ac104cffc27c4a225dae4d6fb1df4 100644 (file)
@@ -1,5 +1,5 @@
---- hfsutils-3.2.6/config.h.in
-+++ hfsutils-3.2.6/config.h.in
+--- a/config.h.in
++++ b/config.h.in
 @@ -91,3 +91,5 @@
  # ifndef HAVE_STRTOL
  long strtol(const char *, char **, int);
index a688ff621a30b612d973c7510e6c139b57a625ee..fb9fb7787f9cb127b35f2cecdcbb1399ed36f78a 100644 (file)
@@ -1,5 +1,5 @@
---- libhfs/os/unix.c-orig      1998-11-02 23:09:13.000000000 +0100
-+++ libhfs/os/unix.c   2004-12-13 14:39:28.099124272 +0100
+--- a/libhfs/os/unix.c
++++ b/libhfs/os/unix.c
 @@ -19,6 +19,11 @@
   * $Id$
   */
similarity index 79%
rename from sys-fs/hfsutils/hfsutils-3.2.6-r5.ebuild
rename to sys-fs/hfsutils/hfsutils-3.2.6-r6.ebuild
index 1d19c5f6f8e0cd7e7e98ced0a2570bcf6bb15dea..23076395fd73357294a9ef2cabc0ac77c531f2d8 100644 (file)
@@ -1,9 +1,8 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
-
-inherit eutils toolchain-funcs
+EAPI=7
+inherit toolchain-funcs
 
 DESCRIPTION="HFS FS Access utils"
 HOMEPAGE="https://www.mars.org/home/rob/proj/hfs/"
@@ -21,15 +20,14 @@ RDEPEND="${DEPEND}"
 
 # use tk requires tcl - bug #150437
 REQUIRED_USE="tk? ( tcl )"
-
-src_prepare() {
-       epatch \
-               "${FILESDIR}"/${P}-errno.patch \
-               "${FILESDIR}"/largerthan2gb.patch \
-               "${FILESDIR}"/${P}-fix-tcl-8.6.patch
-}
+PATCHES=(
+       "${FILESDIR}"/${P}-errno.patch
+       "${FILESDIR}"/largerthan2gb.patch
+       "${FILESDIR}"/${P}-fix-tcl-8.6.patch
+)
 
 src_configure() {
+       tc-export CC
        econf $(use_with tcl) $(use_with tk)
 }