Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Sun, 03 Apr 2022 22:06:02
Message-Id: 1649023543.1e4c587c0a87eb4d3db42404c3dccd234b309415.soap@gentoo
1 commit: 1e4c587c0a87eb4d3db42404c3dccd234b309415
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Sun Apr 3 22:05:43 2022 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sun Apr 3 22:05:43 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1e4c587c
7
8 emboss-r2.eclass: remove last-rited eclass
9
10 Signed-off-by: David Seifert <soap <AT> gentoo.org>
11
12 eclass/emboss-r2.eclass | 161 ------------------------------------------------
13 1 file changed, 161 deletions(-)
14
15 diff --git a/eclass/emboss-r2.eclass b/eclass/emboss-r2.eclass
16 deleted file mode 100644
17 index 65e1c83f16d9..000000000000
18 --- a/eclass/emboss-r2.eclass
19 +++ /dev/null
20 @@ -1,161 +0,0 @@
21 -# Copyright 1999-2022 Gentoo Authors
22 -# Distributed under the terms of the GNU General Public License v2
23 -
24 -# @DEAD
25 -# Removal on 2022-03-15.
26 -
27 -# @ECLASS: emboss-r2.eclass
28 -# @MAINTAINER:
29 -# sci-biology@g.o
30 -# ted.tanberry@×××××.com
31 -# @AUTHOR:
32 -# Original author: Author Olivier Fisette <ofisette@×××××.com>
33 -# Next gen author: Justin Lecher <jlec@g.o>
34 -# Next gen author: Ted Tanberry <ted.tanberry@×××××.com>
35 -# @SUPPORTED_EAPIS: 7
36 -# @BLURB: Use this to easy install EMBOSS and EMBASSY programs (EMBOSS add-ons).
37 -# @DESCRIPTION:
38 -# The inheriting ebuild must provide EBO_DESCRIPTION before the inherit line.
39 -#
40 -# Example:
41 -#
42 -# EAPI=7
43 -#
44 -# EBO_DESCRIPTION="applications from the CBS group"
45 -#
46 -# inherit emboss-r2
47 -
48 -# @ECLASS_VARIABLE: EBO_DESCRIPTION
49 -# @PRE_INHERIT
50 -# @DEFAULT_UNSET
51 -# @DESCRIPTION:
52 -# Completes the generic description of the embassy module as follows:
53 -#
54 -# EMBOSS integrated version of ${EBO_DESCRIPTION}, e.g.
55 -#
56 -# "EMBOSS integrated version of applications from the CBS group"
57 -#
58 -# Defaults to the upstream name of the module.
59 -
60 -case ${EAPI:-0} in
61 - [0-6]) die "Unsupported EAPI=${EAPI:-0} (too old) for ${ECLASS}" ;;
62 - 7) ;;
63 - *) die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}" ;;
64 -esac
65 -
66 -if [[ ! ${_EMBOSS_R2_ECLASS} ]]; then
67 -_EMBOSS_R2_ECLASS=1
68 -
69 -inherit autotools flag-o-matic
70 -
71 -HOMEPAGE="http://emboss.sourceforge.net/"
72 -
73 -LICENSE="LGPL-2 GPL-2"
74 -SLOT="0"
75 -IUSE="mysql pdf png postgres X"
76 -
77 -RDEPEND="
78 - dev-libs/expat
79 - dev-libs/libpcre:3
80 - sci-libs/plplot:=
81 - sys-libs/zlib
82 - mysql? ( dev-db/mysql-connector-c:0= )
83 - pdf? ( media-libs/libharu:= )
84 - png? ( media-libs/gd:2=[png] )
85 - postgres? ( dev-db/postgresql:= )
86 - X? ( x11-libs/libXt )"
87 -
88 -if [[ ${PN} == embassy-* ]]; then
89 - EMBASSY_PACKAGE=yes
90 - # The EMBASSY package name, retrieved from the inheriting ebuild's name
91 - EN=${PN:8}
92 - # The full name and version of the EMBASSY package (excluding the Gentoo
93 - # revision number)
94 - EF="${EN^^}-${PV}"
95 -
96 - [[ ${EBO_DESCRIPTION} ]] || die "EBO_DESCRIPTION was not set before inheriting emboss-r2.eclass"
97 -
98 - DESCRIPTION="EMBOSS integrated version of ${EBO_DESCRIPTION}"
99 - SRC_URI="ftp://emboss.open-bio.org/pub/EMBOSS/${EF}.tar.gz -> embassy-${EN}-${PV}.tar.gz"
100 - RDEPEND+=" >=sci-biology/emboss-6.6.0-r1[mysql=,pdf=,png=,postgres=,X=]"
101 -
102 - S="${WORKDIR}/${EF}"
103 -fi
104 -
105 -DEPEND="${RDEPEND}"
106 -
107 -# @ECLASS_VARIABLE: EBO_EAUTORECONF
108 -# @DEFAULT_UNSET
109 -# @DESCRIPTION:
110 -# If set, run eautoreconf from autotools.eclass after applying patches
111 -# in emboss-r2_src_prepare.
112 -
113 -# @FUNCTION: emboss-r2_src_prepare
114 -# @DESCRIPTION:
115 -# Does the following things
116 -#
117 -# 1. Renames configure.in to configure.ac, if possible
118 -# 2. Calls default_src_prepare (i.e. applies Gentoo and user patches)
119 -# 3. If EBO_EAUTORECONF is set, run eautoreconf
120 -
121 -emboss-r2_src_prepare() {
122 - if [[ -e configure.in ]]; then
123 - mv configure.{in,ac} || die
124 - fi
125 -
126 - default
127 - [[ ${EBO_EAUTORECONF} ]] && eautoreconf
128 -}
129 -
130 -# @FUNCTION: emboss-r2_src_configure
131 -# @DESCRIPTION:
132 -# runs econf with following options.
133 -#
134 -# --enable-shared
135 -# --disable-static
136 -# $(use_with X x)
137 -# $(use_with png pngdriver)
138 -# $(use_with pdf hpdf)
139 -# $(use_with mysql mysql)
140 -# $(use_with postgres postgresql)
141 -# --enable-large
142 -# --without-java
143 -# --enable-systemlibs
144 -#
145 -# can be appended to like econf, e.g.
146 -# emboss-r2_src_configure --enable-foo
147 -
148 -emboss-r2_src_configure() {
149 - local myconf=(
150 - --enable-shared
151 - --disable-static
152 - $(use_with X x)
153 - $(use_with png pngdriver "${EPREFIX}"/usr)
154 - $(use_with pdf hpdf "${EPREFIX}"/usr)
155 - $(use_with mysql mysql "${EPREFIX}"/usr/bin/mysql_config)
156 - $(use_with postgres postgresql "${EPREFIX}"/usr/bin/pg_config)
157 - --enable-large
158 - --without-java
159 - --enable-systemlibs
160 - )
161 -
162 - [[ ${EMBASSY_PACKAGE} == yes ]] && \
163 - append-cppflags "-I${EPREFIX}/usr/include/emboss"
164 -
165 - econf "${myconf[@]}" "$@"
166 -}
167 -
168 -# @FUNCTION: emboss-r2_src_install
169 -# @DESCRIPTION:
170 -# Installs the package into the staging area and removes unnecessary .la files.
171 -
172 -emboss-r2_src_install() {
173 - default
174 -
175 - # delete .la files
176 - find "${ED}" -name '*.la' -delete || die
177 -}
178 -
179 -fi
180 -
181 -EXPORT_FUNCTIONS src_prepare src_configure src_install