mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-09 06:37:10 -08:00
sci-biology/phred: treeclean
Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>
This commit is contained in:
@@ -709,7 +709,6 @@ app-eselect/eselect-sh
|
||||
# last release 8 years ago. Removal on 2023-01-25.
|
||||
sci-biology/consed
|
||||
sci-biology/phrap
|
||||
sci-biology/phred
|
||||
|
||||
# Ionen Wolkens <ionen@gentoo.org> (2022-12-24)
|
||||
# Upstream dropped wxGTK support in >=games-emulation/pcsx2-1.7.3773,
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
DIST phred-dist-071220.b-acd.tar.gz 357767 BLAKE2B ae1180f54eaa3631a4e32c2ffe388b35745302e3d014c8fa893119e7e488d4bb4316f7ee0588cd12db5cbbc23033f689f4a0a487cdc7fe42e8c7a67ceb3c43ae SHA512 0a6b0a733e6dcc0495eaab720b75f8e5815df494d0a773b8b8336d5208321c2ba475921084835a769367ec51aed156585ab97346a510100d4337e3215ec75276
|
||||
@@ -1,82 +0,0 @@
|
||||
* Fix build system to honour CC, CFLAGS, CPPFLAGS and LDFLAGS
|
||||
* Specify a default target, in order to keep the ebuild slim
|
||||
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -12,9 +12,9 @@
|
||||
|
||||
# UNIX specific definitions (default)
|
||||
#
|
||||
-CC= cc
|
||||
-CFLAGS= -O -DANSI_C $(LXFLAGS)
|
||||
-CLIB= -lm
|
||||
+CC ?= cc
|
||||
+CPPFLAGS += -DANSI_C $(LXFLAGS)
|
||||
+LIBS += -lm
|
||||
|
||||
# Windows 'nmake' specific definitions
|
||||
#
|
||||
@@ -133,9 +133,6 @@
|
||||
$(objdir)writeSDF.o \
|
||||
$(objdir)writeSeq.o
|
||||
|
||||
-SRCS = $(OBJS:.o=.c)
|
||||
-WOBJ = $(OBJS:.o=.obj)
|
||||
-
|
||||
INCS = \
|
||||
$(incdir)chromatData.h \
|
||||
$(incdir)freeChromatData.h \
|
||||
@@ -179,48 +176,18 @@
|
||||
# UNIX make specific phred target
|
||||
# note: a horizontal tab character must precede `$(CC)'
|
||||
#
|
||||
-phred: $(OBJS)
|
||||
- $(CC) $(CFLAGS) -o phred $(OBJS) $(CLIB)
|
||||
|
||||
|
||||
-# Windows nmake specific phred target
|
||||
-#
|
||||
-forwindows: $(WOBJ)
|
||||
- $(CC) $(CFLAGS) /Fephred $(WOBJ)
|
||||
-# $(CC) $(CFLAGS) /Fedaev daev.c
|
||||
+.PHONY: all
|
||||
+all: phred daev
|
||||
|
||||
|
||||
-# test CC: refuse to compile if
|
||||
-#
|
||||
-# o SunOS
|
||||
-#
|
||||
-# AND
|
||||
-#
|
||||
-# o using /usr/ucb/cc compiler
|
||||
-#
|
||||
-# NOTE: this compiler causes problems: see PHRED.DOC
|
||||
-#
|
||||
-test_cc:
|
||||
- @if [ `uname` = SunOS ] ; \
|
||||
- then \
|
||||
- if [ `which $(CC)` = "/usr/ucb/cc" ] ; \
|
||||
- then \
|
||||
- echo ""; \
|
||||
- echo "============================================================"; \
|
||||
- echo "| |"; \
|
||||
- echo "| This SUN C compiler produces a bad phred executable. |"; \
|
||||
- echo "| |"; \
|
||||
- echo "| Please see the PHRED.DOC file for more information. |"; \
|
||||
- echo "| |"; \
|
||||
- echo "============================================================"; \
|
||||
- echo ""; \
|
||||
- exit 1; \
|
||||
- fi \
|
||||
- fi
|
||||
+phred: $(OBJS)
|
||||
+ $(CC) $(LDFLAGS) $(CFLAGS) -o phred $^ $(LIBS)
|
||||
|
||||
|
||||
daev: daev.o
|
||||
- $(CC) $(CFLAGS) -o daev daev.o -lm
|
||||
+ $(CC) $(LDFLAGS) $(CFLAGS) -o daev $^ $(LIBS)
|
||||
|
||||
|
||||
clean:
|
||||
@@ -1,36 +0,0 @@
|
||||
Fix implicit declarations:
|
||||
* daev.c: In function ‘processParameters’:
|
||||
* daev.c:849:14: warning: implicit declaration of function ‘isdigit’ [-Wimplicit-function-declaration]
|
||||
* if( !isdigit( argv[iarg][0] ) )
|
||||
|
||||
--- a/autoPhred.c
|
||||
+++ b/autoPhred.c
|
||||
@@ -57,6 +57,7 @@
|
||||
static int xstrcmp();
|
||||
#endif
|
||||
|
||||
+int freeMBRData( MBRData *mbrData );
|
||||
#ifdef ANSI_C
|
||||
int autoPhred( Option *option )
|
||||
#else
|
||||
--- a/daev.c
|
||||
+++ b/daev.c
|
||||
@@ -58,6 +58,7 @@
|
||||
#include <sys/stat.h>
|
||||
#include <time.h>
|
||||
#include <math.h>
|
||||
+#include <ctype.h>
|
||||
|
||||
#ifndef _WIN32
|
||||
#include <dirent.h>
|
||||
--- a/mergedBaseRead.c
|
||||
+++ b/mergedBaseRead.c
|
||||
@@ -63,7 +63,7 @@
|
||||
Peak *peak;
|
||||
Observed_peak *obs_peak;
|
||||
|
||||
- static initFlag = 0;
|
||||
+ static int initFlag = 0;
|
||||
static char mchar[256][256];
|
||||
|
||||
if( initFlag == 0 )
|
||||
@@ -1,8 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>sci-biology@gentoo.org</email>
|
||||
<name>Gentoo Biology Project</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
@@ -1,46 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="A base caller for Sanger DNA sequencing"
|
||||
HOMEPAGE="http://phrap.org/phredphrapconsed.html"
|
||||
SRC_URI="${PN}-dist-${PV}.b-acd.tar.gz"
|
||||
S="${WORKDIR}"
|
||||
|
||||
LICENSE="phrap"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
RESTRICT="fetch"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-071220-fix-build-system.patch
|
||||
"${FILESDIR}"/${PN}-071220-fix-qa.patch
|
||||
)
|
||||
|
||||
pkg_nofetch() {
|
||||
einfo "Please visit ${HOMEPAGE} and obtain the file"
|
||||
einfo "${SRC_URI}, then place it into your DISTDIR directory."
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake CC="$(tc-getCC)" \
|
||||
CFLAGS="${CFLAGS}" \
|
||||
LDFLAGS="${LDFLAGS}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin phred daev
|
||||
|
||||
insinto /usr/share/phred
|
||||
doins phredpar.dat
|
||||
|
||||
newenvd - 99phred <<- EOF
|
||||
PHRED_PARAMETER_FILE="${EPREFIX}/usr/share/phred/phredpar.dat"
|
||||
EOF
|
||||
|
||||
newdoc DAEV.DOC DAEV.DOC.txt
|
||||
newdoc PHRED.DOC PHRED.DOC.txt
|
||||
}
|
||||
Reference in New Issue
Block a user