mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
sci-biology/elph: Modernise to EAPI 6
Package-Manager: Portage-2.3.4, Repoman-2.3.2
This commit is contained in:
31
sci-biology/elph/elph-1.0.1-r1.ebuild
Normal file
31
sci-biology/elph/elph-1.0.1-r1.ebuild
Normal file
@@ -0,0 +1,31 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="Estimated Locations of Pattern Hits - Motif finder program"
|
||||
LICENSE="Artistic"
|
||||
HOMEPAGE="http://cbcb.umd.edu/software/ELPH/"
|
||||
SRC_URI="ftp://ftp.cbcb.umd.edu/pub/software/elph/ELPH-${PV}.tar.gz"
|
||||
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
|
||||
|
||||
S=${WORKDIR}/${PN^^}/sources
|
||||
|
||||
PATCHES=( "${FILESDIR}/${PN}-1.0.1-fix-build-system.patch" )
|
||||
|
||||
src_configure() {
|
||||
tc-export CC CXX
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin elph
|
||||
|
||||
cd "${WORKDIR}"/ELPH || die
|
||||
dodoc VERSION
|
||||
newdoc Readme.ELPH README
|
||||
}
|
||||
55
sci-biology/elph/files/elph-1.0.1-fix-build-system.patch
Normal file
55
sci-biology/elph/files/elph-1.0.1-fix-build-system.patch
Normal file
@@ -0,0 +1,55 @@
|
||||
Make build system respect user variables
|
||||
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -1,42 +1,26 @@
|
||||
-CLASSDIR := .
|
||||
-
|
||||
-# Directories to search for header files
|
||||
-SEARCHDIRS := -I- -I${CLASSDIR}
|
||||
-
|
||||
-
|
||||
-SYSTYPE := $(shell uname)
|
||||
-
|
||||
-# C compiler
|
||||
-
|
||||
-CC := g++
|
||||
-CFLAGS = -Wall ${SEARCHDIRS} -fno-exceptions -fno-rtti -D_REENTRANT -g
|
||||
+my_CPPFLAGS = -D_REENTRANT -I.
|
||||
|
||||
%.o : %.c
|
||||
- ${CC} ${CFLAGS} -c $< -o $@
|
||||
+ $(CC) -Wall $(CFLAGS) $(my_CPPFLAGS) $(CPPFLAGS) -c $< -o $@
|
||||
|
||||
%.o : %.cc
|
||||
- ${CC} ${CFLAGS} -c $< -o $@
|
||||
+ $(CXX) -Wall $(CXXFLAGS) $(my_CPPFLAGS) $(CPPFLAGS) -c $< -o $@
|
||||
|
||||
%.o : %.C
|
||||
- ${CC} ${CFLAGS} -c $< -o $@
|
||||
+ $(CXX) -Wall $(CXXFLAGS) $(my_CPPFLAGS) $(CPPFLAGS) -c $< -o $@
|
||||
|
||||
%.o : %.cpp
|
||||
- ${CC} ${CFLAGS} -c $< -o $@
|
||||
+ $(CXX) -Wall $(CXXFLAGS) $(my_CPPFLAGS) $(CPPFLAGS) -c $< -o $@
|
||||
|
||||
%.o : %.cxx
|
||||
- ${CC} ${CFLAGS} -c $< -o $@
|
||||
+ $(CXX) -Wall $(CXXFLAGS) $(my_CPPFLAGS) $(CPPFLAGS) -c $< -o $@
|
||||
|
||||
# C/C++ linker
|
||||
-
|
||||
-LINKER := g++
|
||||
-LDFLAGS =
|
||||
-LOADLIBES :=
|
||||
-
|
||||
.PHONY : all
|
||||
all: elph
|
||||
|
||||
-elph: ./elph.o ${CLASSDIR}/motif.o ${CLASSDIR}/GBase.o ${CLASSDIR}/GString.o ${CLASSDIR}/GArgs.o
|
||||
- ${LINKER} ${LDFLAGS} -o $@ ${filter-out %.a %.so, $^} ${LOADLIBES}
|
||||
+elph: elph.o motif.o GBase.o GString.o GArgs.o
|
||||
+ $(CXX) $(LDFLAGS) $(CXXFLAGS) -o $@ $^
|
||||
|
||||
# target for removing all object files
|
||||
|
||||
Reference in New Issue
Block a user