diff options
author | David Seifert <soap@gentoo.org> | 2017-02-25 23:37:57 +0100 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2017-02-25 23:40:00 +0100 |
commit | ccf76cecc1842711fbbd1632aae79d5fd70f8045 (patch) | |
tree | b4e0a57640012a585359f69812a1a3d2a1109034 /sci-biology/prodigal/files | |
parent | dev-python/pychroot: remove old (diff) | |
download | gentoo-ccf76cecc1842711fbbd1632aae79d5fd70f8045.tar.gz gentoo-ccf76cecc1842711fbbd1632aae79d5fd70f8045.tar.bz2 gentoo-ccf76cecc1842711fbbd1632aae79d5fd70f8045.zip |
sci-biology/prodigal: Version bump to 2.6.3
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'sci-biology/prodigal/files')
-rw-r--r-- | sci-biology/prodigal/files/prodigal-2.6.3-fix-build-system.patch | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/sci-biology/prodigal/files/prodigal-2.6.3-fix-build-system.patch b/sci-biology/prodigal/files/prodigal-2.6.3-fix-build-system.patch new file mode 100644 index 000000000000..b6d92392d179 --- /dev/null +++ b/sci-biology/prodigal/files/prodigal-2.6.3-fix-build-system.patch @@ -0,0 +1,45 @@ +Fix build system to honour user variables. + +--- a/Makefile ++++ b/Makefile +@@ -19,32 +19,31 @@ + ############################################################################## + + SHELL = /bin/sh +-CC = gcc ++CC ?= gcc + +-CFLAGS += -pedantic -Wall -O3 +-LFLAGS = -lm $(LDFLAGS) ++LIBS = -lm + + TARGET = prodigal + SOURCES = $(shell echo *.c) + HEADERS = $(shell echo *.h) + OBJECTS = $(SOURCES:.c=.o) + +-INSTALLDIR = /usr/local/bin ++BINDIR = $(EPREFIX)/usr/bin + + all: $(TARGET) + + $(TARGET): $(OBJECTS) +- $(CC) $(CFLAGS) -o $@ $^ $(LFLAGS) ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) + + %.o: %.c $(HEADERS) +- $(CC) $(CFLAGS) -c -o $@ $< ++ $(CC) -Wall -pedantic $(CFLAGS) $(CPPFLAGS) -c -o $@ $< + + install: $(TARGET) +- install -d -m 0755 $(INSTALLDIR) +- install -m 0755 $(TARGET) $(INSTALLDIR) ++ install -d -m 0755 $(DESTDIR)$(BINDIR) ++ install -m 0755 $(TARGET) $(DESTDIR)$(BINDIR) + + uninstall: +- -rm $(INSTALLDIR)/$(TARGET) ++ -rm $(DESTDIR)$(BINDIR)/$(TARGET) + + clean: + -rm -f $(OBJECTS) |