Gentoo Archives: gentoo-commits

From: "Manuel Rüger" <mrueg@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-biology/emboss/
Date: Wed, 26 Aug 2015 17:22:12
Message-Id: 1440609710.0db67f06dd6358a4c5294cc79450616900e9160a.mrueg@gentoo
1 commit: 0db67f06dd6358a4c5294cc79450616900e9160a
2 Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 26 17:21:50 2015 +0000
4 Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 26 17:21:50 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0db67f06
7
8 sci-biology/emboss: Restore old version.
9
10 This commit reverts 0d040c84fbb38ead35451769d2b65a33af2fbf2a.
11
12 Package-Manager: portage-2.2.20.1
13 RepoMan-Options: --force
14
15 sci-biology/emboss/Manifest | 1 +
16 sci-biology/emboss/emboss-6.0.1.ebuild | 112 +++++++++++++++++++++++++++++++++
17 2 files changed, 113 insertions(+)
18
19 diff --git a/sci-biology/emboss/Manifest b/sci-biology/emboss/Manifest
20 index 6eae2dd..c364f2c 100644
21 --- a/sci-biology/emboss/Manifest
22 +++ b/sci-biology/emboss/Manifest
23 @@ -1,3 +1,4 @@
24 +DIST EMBOSS-6.0.1.tar.gz 20204153 SHA256 3e352902aa9dab88bf486457ff23794f19398dfc6b550c4bf175dfcad34c233d
25 DIST EMBOSS-6.3.1.tar.gz 23572243 SHA256 4f3290600a970c2a23a7e47f884d1fc8156ec40538f7191a6e83e23680d27a8d
26 DIST EMBOSS-6.6.0.tar.gz 117962028 SHA256 7184a763d39ad96bb598bfd531628a34aa53e474db9e7cac4416c2a40ab10c6e SHA512 2d28a03381f7dc98d205aa50202fbbac02ad218fc775d86579d310296be124403623484b1907154d915f15cd32a9f8cf16ecfaa6c4a28b362e24dc8e6380b75a WHIRLPOOL 25241e865b1ad4e5459f84a2b0def7cd00a6e2904db714838dfe0533e01f8373cfdd4c78df225f9d2a77ead4cb9998791bd19f46b32e220810ad950fa288b9fe
27 DIST emboss-6.3.1_p4.patch.gz 4070 SHA256 61d1b62e3148541d496103711db6526ba76488a0899af2c98264b03bf8d6e24c
28
29 diff --git a/sci-biology/emboss/emboss-6.0.1.ebuild b/sci-biology/emboss/emboss-6.0.1.ebuild
30 new file mode 100644
31 index 0000000..0edfd7a
32 --- /dev/null
33 +++ b/sci-biology/emboss/emboss-6.0.1.ebuild
34 @@ -0,0 +1,112 @@
35 +# Copyright 1999-2014 Gentoo Foundation
36 +# Distributed under the terms of the GNU General Public License v2
37 +# $Id$
38 +
39 +EAPI=1
40 +
41 +inherit eutils
42 +
43 +DESCRIPTION="The European Molecular Biology Open Software Suite - A sequence analysis package"
44 +HOMEPAGE="http://emboss.sourceforge.net/"
45 +SRC_URI="ftp://${PN}.open-bio.org/pub/EMBOSS/old/${PV}/EMBOSS-${PV}.tar.gz"
46 +LICENSE="GPL-2 LGPL-2"
47 +
48 +SLOT="0"
49 +KEYWORDS="amd64 ppc x86"
50 +IUSE="X png minimal"
51 +
52 +DEPEND="
53 + X? ( x11-libs/libXt )
54 + png? (
55 + sys-libs/zlib
56 + media-libs/libpng
57 + media-libs/gd
58 + )
59 + !minimal? (
60 + sci-biology/primer3
61 + sci-biology/clustalw
62 + )"
63 +
64 +RDEPEND="${DEPEND}
65 + !sys-devel/cons"
66 +
67 +PDEPEND="
68 + !minimal? (
69 + sci-biology/aaindex
70 + sci-biology/cutg
71 + sci-biology/prints
72 + sci-biology/prosite
73 + sci-biology/rebase
74 + sci-biology/transfac
75 + )"
76 +
77 +S="${WORKDIR}/EMBOSS-${PV}"
78 +
79 +src_unpack() {
80 + unpack ${A}
81 + cd "${S}"
82 + epatch "${FILESDIR}"/${PN}-5.0.0-as-needed.patch
83 +
84 + local link_string="$(pkg-config --libs x11)"
85 + if use png; then
86 + link_string="${link_string} -lgd $(pkg-config --libs libpng)"
87 + fi
88 + sed -e "s:PATCH_PLPLOT:${link_string}:" -i plplot/Makefile.in \
89 + || die "Failed to patch ajax Makefile"
90 +}
91 +
92 +src_compile() {
93 + local myconf
94 + myconf="--includedir=${D}/usr/include/emboss"
95 + use X || myconf="${EXTRA_CONF} --without-x"
96 + use png || myconf="${EXTRA_CONF} --without-pngdriver"
97 +
98 + econf ${myconf}
99 + # Do not install the JEMBOSS component (the --without-java configure option
100 + # does not work). JEMBOSS will eventually be available as a separate package.
101 + sed -i -e "s/SUBDIRS = plplot ajax nucleus emboss test doc jemboss/SUBDIRS = plplot ajax nucleus emboss test doc/" \
102 + Makefile || die
103 + emake || die
104 +}
105 +
106 +src_install() {
107 + einstall || die "Failed to install program files."
108 +
109 + dodoc AUTHORS ChangeLog FAQ NEWS README THANKS \
110 + || die "Failed to install documentation."
111 + newdoc "${FILESDIR}"/${PN}-README.Gentoo-1 README.Gentoo \
112 + || die "Failed to install Gentoo readme file."
113 +
114 + # Install env file for setting libplplot and acd files path.
115 + cat <<- EOF > 22emboss
116 + # plplot libs dir
117 + PLPLOT_LIB="/usr/share/EMBOSS/"
118 + # ACD files location
119 + EMBOSS_ACDROOT="/usr/share/EMBOSS/acd"
120 + EOF
121 + doenvd 22emboss || die "Failed to install environment file."
122 +
123 + # Symlink preinstalled docs to "/usr/share/doc".
124 + dosym /usr/share/EMBOSS/doc/manuals /usr/share/doc/${PF}/manuals || die
125 + dosym /usr/share/EMBOSS/doc/programs /usr/share/doc/${PF}/programs || die
126 + dosym /usr/share/EMBOSS/doc/tutorials /usr/share/doc/${PF}/tutorials || die
127 + dosym /usr/share/EMBOSS/doc/html /usr/share/doc/${PF}/html || die
128 +
129 + # Clashes #330507
130 + mv "${D}"/usr/bin/{digest,pepdigest} || die
131 +
132 + # Remove useless dummy files from the image.
133 + find emboss/data -name dummyfile -delete || die "Failed to remove dummy files."
134 +
135 + # Move the provided codon files to a different directory. This will avoid
136 + # user confusion and file collisions on case-insensitive file systems (see
137 + # bug #115446). This change is documented in "README.Gentoo".
138 + mv "${D}"/usr/share/EMBOSS/data/CODONS{,.orig} || \
139 + die "Failed to move CODON directory."
140 +
141 + # Move the provided restriction enzyme prototypes file to a different name.
142 + # This avoids file collisions with versions of rebase that install their
143 + # own enzyme prototypes file (see bug #118832).
144 + mv "${D}"/usr/share/EMBOSS/data/embossre.equ{,.orig} || \
145 + die "Failed to move enzyme equivalence file."
146 +}