summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrice Clement <monsieurp@gentoo.org>2020-06-21 09:24:37 +0200
committerPatrice Clement <monsieurp@gentoo.org>2020-06-21 09:24:47 +0200
commit789193af5fdab1cb39ed3fdc06efe7db3e3d33b2 (patch)
tree3311a731a67ed02dee9445d47198e03b90a8d4bc /app-misc/fdupes
parentxfce-extra/xfce4-eyes-plugin: Bump to 4.5.1 (diff)
downloadgentoo-789193af5fdab1cb39ed3fdc06efe7db3e3d33b2.tar.gz
gentoo-789193af5fdab1cb39ed3fdc06efe7db3e3d33b2.tar.bz2
gentoo-789193af5fdab1cb39ed3fdc06efe7db3e3d33b2.zip
app-misc/fdupes: honour CFLAGS.
Closes: https://bugs.gentoo.org/726632 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
Diffstat (limited to 'app-misc/fdupes')
-rw-r--r--app-misc/fdupes/fdupes-1.6.1-r1.ebuild5
1 files changed, 4 insertions, 1 deletions
diff --git a/app-misc/fdupes/fdupes-1.6.1-r1.ebuild b/app-misc/fdupes/fdupes-1.6.1-r1.ebuild
index b127dfcbd858..b016e9037387 100644
--- a/app-misc/fdupes/fdupes-1.6.1-r1.ebuild
+++ b/app-misc/fdupes/fdupes-1.6.1-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
@@ -16,10 +16,13 @@ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~
src_prepare() {
default
append-lfs-flags
+ sed -e "s#^CFLAGS= \(.*\)#CFLAGS= \1 ${CFLAGS}#g;" \
+ -i "Makefile" || die "can't patch Makefile"
}
src_compile() {
emake CC=$(tc-getCC)
+ #emake CC=$(tc-getCC) CFLAGS="${CFLAGS} -DVERSION=\"1.6.1\" -D_FILE_OFFSET_BITS=64 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
}
src_install() {