You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
1.6 KiB
65 lines
1.6 KiB
7 years ago
|
# Copyright 1999-2017 Gentoo Foundation
|
||
9 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
7 years ago
|
EAPI=6
|
||
9 years ago
|
|
||
7 years ago
|
EBO_EAUTORECONF=1
|
||
8 years ago
|
|
||
7 years ago
|
inherit emboss-r2 readme.gentoo-r1
|
||
9 years ago
|
|
||
|
DESCRIPTION="The European Molecular Biology Open Software Suite - A sequence analysis package"
|
||
7 years ago
|
SRC_URI="ftp://emboss.open-bio.org/pub/${PN^^}/${P^^}.tar.gz"
|
||
9 years ago
|
|
||
7 years ago
|
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||
|
IUSE="minimal"
|
||
9 years ago
|
LICENSE+=" Apache-2.0 GPL-3+ CC-BY-3.0"
|
||
9 years ago
|
|
||
7 years ago
|
RDEPEND="
|
||
|
!games-action/xbomber
|
||
|
!sys-devel/cons"
|
||
|
PDEPEND="
|
||
9 years ago
|
!minimal? (
|
||
|
sci-biology/aaindex
|
||
|
sci-biology/cutg
|
||
9 years ago
|
sci-biology/primer3
|
||
9 years ago
|
sci-biology/prints
|
||
|
sci-biology/prosite
|
||
|
sci-biology/rebase
|
||
7 years ago
|
)"
|
||
9 years ago
|
|
||
7 years ago
|
S="${WORKDIR}/${P^^}"
|
||
9 years ago
|
|
||
|
PATCHES=(
|
||
|
"${FILESDIR}"/${P}_fix-build-system.patch
|
||
|
"${FILESDIR}"/${P}_FORTIFY_SOURCE-fix.patch
|
||
|
"${FILESDIR}"/${P}_plplot-declarations.patch
|
||
|
"${FILESDIR}"/${P}_qa-implicit-declarations.patch
|
||
|
)
|
||
|
|
||
|
src_install() {
|
||
7 years ago
|
emboss-r2_src_install
|
||
9 years ago
|
|
||
|
readme.gentoo_create_doc
|
||
|
|
||
|
# Install env file for setting libplplot and acd files path.
|
||
7 years ago
|
cat > 22emboss <<- EOF || die
|
||
9 years ago
|
# ACD files location
|
||
|
EMBOSS_ACDROOT="${EPREFIX}/usr/share/EMBOSS/acd"
|
||
|
EMBOSS_DATA="${EPREFIX}/usr/share/EMBOSS/data"
|
||
|
EOF
|
||
|
doenvd 22emboss
|
||
|
|
||
|
# Remove useless dummy files
|
||
7 years ago
|
find "${ED%/}"/usr/share/EMBOSS -name dummyfile -delete || die "Failed to remove dummy files"
|
||
9 years ago
|
|
||
|
# Move the provided codon files to a different directory. This will avoid
|
||
|
# user confusion and file collisions on case-insensitive file systems (see
|
||
|
# bug #115446). This change is documented in "README.gentoo".
|
||
7 years ago
|
mv "${ED%/}"/usr/share/EMBOSS/data/CODONS{,.orig} \
|
||
|
|| die "Failed to move CODON directory"
|
||
9 years ago
|
}
|
||
8 years ago
|
|
||
|
pkg_postinst() {
|
||
|
readme.gentoo_print_elog
|
||
|
}
|