forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
app-misc/fdupes: Drop obsolete patch; add live version
Package-Manager: portage-2.2.20 Signed-off-by: Justin Lecher <[email protected]>
- Loading branch information
Showing
4 changed files
with
63 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Copyright 1999-2015 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | ||
# $Id$ | ||
|
||
EAPI=5 | ||
|
||
inherit eutils flag-o-matic git-r3 toolchain-funcs | ||
|
||
MY_P="${PN}-${PV/_pre/-PR}" | ||
|
||
DESCRIPTION="Identify/delete duplicate files residing within specified directories" | ||
HOMEPAGE="https://github.com/adrianlopezroche/fdupes https://code.google.com/p/fdupes/" | ||
SRC_URI="" | ||
EGIT_REPO_URI="https://github.com/adrianlopezroche/fdupes.git" | ||
|
||
LICENSE="MIT" | ||
SLOT="0" | ||
KEYWORDS="" | ||
IUSE="" | ||
|
||
S="${WORKDIR}/${MY_P}" | ||
|
||
src_prepare() { | ||
epatch \ | ||
"${FILESDIR}"/${P}-makefile.patch | ||
|
||
append-lfs-flags | ||
tc-export CC | ||
} | ||
|
||
src_install() { | ||
dobin fdupes | ||
doman fdupes.1 | ||
dodoc CHANGES CONTRIBUTORS README TODO | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
Makefile | 6 +++--- | ||
1 file changed, 3 insertions(+), 3 deletions(-) | ||
|
||
diff --git a/Makefile b/Makefile | ||
index 921d910..67576f9 100644 | ||
--- a/Makefile | ||
+++ b/Makefile | ||
@@ -78,9 +78,9 @@ MKDIR = mkdir -p | ||
# Make Configuration | ||
# | ||
CC ?= gcc | ||
-COMPILER_OPTIONS = -Wall -O -g | ||
+CFLAGS ?= -Wall -O -g | ||
|
||
-CFLAGS= $(COMPILER_OPTIONS) -I. -DVERSION=\"$(VERSION)\" $(EXTERNAL_MD5) $(OMIT_GETOPT_LONG) $(FILEOFFSET_64BIT) | ||
+CFLAGS += -I. -DVERSION=\"$(VERSION)\" $(EXTERNAL_MD5) $(OMIT_GETOPT_LONG) $(FILEOFFSET_64BIT) | ||
|
||
INSTALL_PROGRAM = $(INSTALL) -c -m 0755 | ||
INSTALL_DATA = $(INSTALL) -c -m 0644 | ||
@@ -100,7 +100,7 @@ OBJECT_FILES = fdupes.o md5/md5.o $(ADDITIONAL_OBJECTS) | ||
all: fdupes | ||
|
||
fdupes: $(OBJECT_FILES) | ||
- $(CC) $(CFLAGS) -o fdupes $(OBJECT_FILES) | ||
+ $(CC) $(CFLAGS) $(LDFLAGS) -o fdupes $(OBJECT_FILES) | ||
|
||
installdirs: | ||
test -d $(DESTDIR)$(BIN_DIR) || $(MKDIR) $(DESTDIR)$(BIN_DIR) |