mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
sci-biology/piler: Modernise to EAPI 6
Package-Manager: Portage-2.3.4, Repoman-2.3.2 Closes: https://github.com/gentoo/gentoo/pull/4165
This commit is contained in:
34
sci-biology/piler/files/piler-1.0-fix-build-system.patch
Normal file
34
sci-biology/piler/files/piler-1.0-fix-build-system.patch
Normal file
@@ -0,0 +1,34 @@
|
||||
Make build system honour user variables
|
||||
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -1,6 +1,4 @@
|
||||
-CFLAGS = -O3 -march=pentiumpro -mcpu=pentiumpro -funroll-loops -Winline -DNDEBUG=1
|
||||
-LDLIBS = -lm -static
|
||||
-# LDLIBS = -lm
|
||||
+LDLIBS = -lm
|
||||
|
||||
OBJ = .o
|
||||
EXE =
|
||||
@@ -8,18 +6,13 @@
|
||||
RM = rm -f
|
||||
CP = cp
|
||||
|
||||
-GPP = g++
|
||||
-LD = $(GPP) $(CFLAGS)
|
||||
-CPP = $(GPP) -c $(CFLAGS)
|
||||
-CC = gcc -c $(CFLAGS)
|
||||
-
|
||||
all: piler
|
||||
|
||||
CPPSRC = $(sort $(wildcard *.cpp))
|
||||
CPPOBJ = $(subst .cpp,.o,$(CPPSRC))
|
||||
|
||||
-$(CPPOBJ): %.o: %.cpp
|
||||
- $(CPP) $< -o $@
|
||||
+%.o: %.cpp
|
||||
+ $(CXX) $(CXXFLAGS) -DNDEBUG $(CPPFLAGS) -c $< -o $@
|
||||
|
||||
piler: $(CPPOBJ)
|
||||
- $(LD) -o piler $(CPPOBJ) $(LDLIBS)
|
||||
+ $(CXX) $(LDFLAGS) $(CXXFLAGS) -o piler $(CPPOBJ) $(LDLIBS)
|
||||
38
sci-biology/piler/piler-1.0-r1.ebuild
Normal file
38
sci-biology/piler/piler-1.0-r1.ebuild
Normal file
@@ -0,0 +1,38 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="Analysis of repetitive DNA found in genome sequences"
|
||||
HOMEPAGE="http://www.drive5.com/piler/"
|
||||
SRC_URI="http://www.drive5.com/piler/piler_source.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="public-domain"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="
|
||||
|| (
|
||||
sci-biology/muscle
|
||||
sci-libs/libmuscle
|
||||
)
|
||||
sci-biology/pals"
|
||||
|
||||
S=${WORKDIR}
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-1.0-fix-build-system.patch
|
||||
"${FILESDIR}"/${PN}-1.0-glibc-2.10.patch
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
tc-export CXX
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin piler
|
||||
}
|
||||
@@ -1,35 +0,0 @@
|
||||
# Copyright 1999-2009 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="2"
|
||||
|
||||
inherit eutils toolchain-funcs
|
||||
|
||||
DESCRIPTION="Analysis of repetitive DNA found in genome sequences"
|
||||
HOMEPAGE="http://www.drive5.com/piler/"
|
||||
#SRC_URI="http://www.drive5.com/piler/piler_source.tar.gz"
|
||||
SRC_URI="mirror://gentoo/${P}.tar.gz"
|
||||
|
||||
LICENSE="public-domain"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="|| ( sci-biology/muscle
|
||||
sci-libs/libmuscle )
|
||||
sci-biology/pals"
|
||||
|
||||
S=${WORKDIR}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${P}-glibc-2.10.patch
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake GPP="$(tc-getCXX)" CFLAGS="${CXXFLAGS}" || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin piler
|
||||
}
|
||||
Reference in New Issue
Block a user