From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- .../rnaview/files/rnaview-20040713-implicit.patch | 13 ++++ .../rnaview/files/rnaview-20040713-makefile.patch | 87 ++++++++++++++++++++++ 2 files changed, 100 insertions(+) create mode 100644 sci-biology/rnaview/files/rnaview-20040713-implicit.patch create mode 100644 sci-biology/rnaview/files/rnaview-20040713-makefile.patch (limited to 'sci-biology/rnaview/files') diff --git a/sci-biology/rnaview/files/rnaview-20040713-implicit.patch b/sci-biology/rnaview/files/rnaview-20040713-implicit.patch new file mode 100644 index 000000000000..90ea72ab6f8c --- /dev/null +++ b/sci-biology/rnaview/files/rnaview-20040713-implicit.patch @@ -0,0 +1,13 @@ +Fix implicit function declaration + +--- a/src/xml2ps.c ++++ b/src/xml2ps.c +@@ -36,7 +36,7 @@ + void read_sugar_syn(char *inpfile, long **sugar_syn); + void get_sugar_syn(FILE *inp, char *value_ch); + void get_chain_broken(long nres, double **a, double **b, long *chain_broken); +- ++extern void get_BDIR(char *BDIR, char *filename); + + + FILE *psfile; diff --git a/sci-biology/rnaview/files/rnaview-20040713-makefile.patch b/sci-biology/rnaview/files/rnaview-20040713-makefile.patch new file mode 100644 index 000000000000..1af72f581fbf --- /dev/null +++ b/sci-biology/rnaview/files/rnaview-20040713-makefile.patch @@ -0,0 +1,87 @@ + Makefile | 20 +++++++++++++++++--- + rnaml2ps/Makefile | 19 ++++++++++++------- + 2 files changed, 29 insertions(+), 10 deletions(-) + +diff --git a/Makefile b/Makefile +index 452e6c4..00d35f0 100644 +--- a/Makefile ++++ b/Makefile +@@ -1,4 +1,4 @@ +-CC = cc ++CC ?= cc + + + +@@ -56,12 +56,17 @@ OBJ_FILE = $(OBJ)/rnaview.o \ + $(OBJ)/multiple.o \ + $(OBJ)/statistics.o + ++.PHONY: clean all install ++ ++SUBDIRS = rnaml2ps ++ + all: $(RNAVIEW) ++ for dir in ${SUBDIRS} ; do ( cd $$dir ; ${MAKE} all ) ; done + +-CFLAGS = $(LINCLUDES) ++CFLAGS += $(LINCLUDES) + + $(RNAVIEW) : $(HFILES) $(OBJ_FILE) +- $(CC) $(CFLAGS) -o $@ $(OBJ_FILE) $(LDFLAGS) -lm $(MALLOCLIB) ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJ_FILE) -lm $(MALLOCLIB) + + + +@@ -111,6 +116,15 @@ $(OBJ)/statistics.o : $(SRC)/statistics.c + clean: + @rm -f $(OBJ)/*.o + @rm -f $(ALLTARGETS) ++ for dir in ${SUBDIRS} ; do ( cd $$dir ; ${MAKE} clean ) ; done ++ ++install: ++ install -D -m 0755 bin/rnaview $(DESTDIR)/usr/bin/rnaview ++ mkdir -p $(DESTDIR)/usr/share/rnaview/BASEPARS ++ install -m 0644 BASEPARS/* $(DESTDIR)/usr/share/rnaview/BASEPARS ++ mkdir -p $(DESTDIR)/usr/share/rnaview/test ++ install -m 0644 test/* $(DESTDIR)/usr/share/rnaview/test ++ for dir in ${SUBDIRS} ; do ( cd $$dir ; ${MAKE} install ) ; done + + export: + mkdir -p $(EXPORT_DIR) +diff --git a/rnaml2ps/Makefile b/rnaml2ps/Makefile +index d207655..2278ccc 100644 +--- a/rnaml2ps/Makefile ++++ b/rnaml2ps/Makefile +@@ -1,20 +1,25 @@ +-CFLAGS = -O +-CC = cc ++CFLAGS ?= -O ++CC ?= cc + + # ++++++++++++++++++++++++++++ Program RNADRAW + RNADRAW = rnaml2ps + OBJS_RNADRAW = rnaml2ps.o nrutil.o + ++all: $(RNADRAW) ++ + $(RNADRAW): $(OBJS_RNADRAW) +- $(CC) -o $(RNADRAW) $(OBJS_RNADRAW) -lm ++ $(CC) $(LDFLAGS) -o $(RNADRAW) $(OBJS_RNADRAW) -lm + + nrutil.o : nrutil.c +- cc -c nrutil.c ++ $(CC) $(CFLAGS) -c nrutil.c + + rnaml2ps.o : rnaml2ps.c +- cc -c rnaml2ps.c ++ $(CC) $(CFLAGS) -c rnaml2ps.c + + +-.PHONY : clean ++.PHONY : clean all install + clean: +- rm *.o ++ rm -f *.o ++ ++install: ++ install -D -m 0755 $(RNADRAW) $(DESTDIR)/usr/bin/$(RNADRAW) -- cgit v1.2.3