1 |
commit: 4f3f4bc43e141b4afb302e101a5a3c675fd139d1 |
2 |
Author: Justin Lecher <jlec <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Mar 28 18:27:55 2015 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Mar 28 18:27:55 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=4f3f4bc4 |
7 |
|
8 |
Moved to tree |
9 |
|
10 |
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org> |
11 |
|
12 |
eclass/emboss-r1.eclass | 133 ------------------------------------------------ |
13 |
1 file changed, 133 deletions(-) |
14 |
|
15 |
diff --git a/eclass/emboss-r1.eclass b/eclass/emboss-r1.eclass |
16 |
deleted file mode 100644 |
17 |
index fc92ce9..0000000 |
18 |
--- a/eclass/emboss-r1.eclass |
19 |
+++ /dev/null |
20 |
@@ -1,133 +0,0 @@ |
21 |
-# Copyright 1999-2015 Gentoo Foundation |
22 |
-# Distributed under the terms of the GNU General Public License v2 |
23 |
-# $Header: $ |
24 |
- |
25 |
-# @ECLASS: emboss-r1.eclass |
26 |
-# @MAINTAINER: |
27 |
-# sci-biology@g.o |
28 |
-# jlec@g.o |
29 |
-# ted.tanberry@×××××.com |
30 |
-# @AUTHOR: |
31 |
-# Original author: Author Olivier Fisette <ofisette@×××××.com> |
32 |
-# Next gen author: Justin Lecher <jlec@g.o> |
33 |
-# Next gen author: Ted Tanberry <ted.tanberry@×××××.com> |
34 |
-# @BLURB: Use this to easy install EMBOSS and EMBASSY programs (EMBOSS add-ons). |
35 |
-# @DESCRIPTION: |
36 |
-# The inheriting ebuild must set at least EAPI=5 and provide EBO_DESCRIPTION before the inherit line. |
37 |
-# KEYWORDS should be set. Additionally "(R|P)DEPEND"encies and other standard |
38 |
-# ebuild variables can be extended (FOO+=" bar"). |
39 |
-# |
40 |
-# Example: |
41 |
-# |
42 |
-# EAPI="5" |
43 |
-# |
44 |
-# EBO_DESCRIPTION="applications from the CBS group" |
45 |
-# |
46 |
-# inherit emboss-r1 |
47 |
- |
48 |
-# @ECLASS-VARIABLE: EBO_DESCRIPTION |
49 |
-# @DESCRIPTION: |
50 |
-# Should be set. Completes the generic description of the embassy module as follows: |
51 |
-# |
52 |
-# EMBOSS integrated version of ${EBO_DESCRIPTION}, |
53 |
-# e.g. |
54 |
-# "EMBOSS integrated version of applications from the CBS group" |
55 |
-# |
56 |
-# Defaults to the upstream name of the module. |
57 |
- |
58 |
-# @ECLASS-VARIABLE: EBO_EXTRA_ECONF |
59 |
-# @DEFAULT_UNSET |
60 |
-# @DESCRIPTION: |
61 |
-# Extra config options passed to econf. |
62 |
- |
63 |
-case ${EAPI:-0} in |
64 |
- 5) ;; |
65 |
- *) die "this eclass doesn't support < EAPI 5" ;; |
66 |
-esac |
67 |
- |
68 |
-inherit autotools-utils eutils flag-o-matic |
69 |
- |
70 |
-HOMEPAGE="http://emboss.sourceforge.net/" |
71 |
-LICENSE="LGPL-2 GPL-2" |
72 |
- |
73 |
-SLOT="0" |
74 |
-IUSE="mysql pdf png postgres static-libs X" |
75 |
- |
76 |
-DEPEND=" |
77 |
- dev-libs/expat |
78 |
- dev-libs/libpcre:3 |
79 |
- sci-libs/plplot |
80 |
- sys-libs/zlib |
81 |
- mysql? ( virtual/mysql ) |
82 |
- pdf? ( media-libs/libharu ) |
83 |
- png? ( media-libs/gd[png] ) |
84 |
- postgres? ( dev-db/postgresql:= ) |
85 |
- X? ( x11-libs/libXt )" |
86 |
-RDEPEND="${DEPEND}" |
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=$(echo ${EN} | tr "[:lower:]" "[:upper:]")-${PV} |
95 |
- : ${EBO_DESCRIPTION:=${EN}} |
96 |
- DESCRIPTION="EMBOSS integrated version of ${EBO_DESCRIPTION}" |
97 |
- SRC_URI="ftp://emboss.open-bio.org/pub/EMBOSS/${EF}.tar.gz -> embassy-${EN}-${PVR}.tar.gz" |
98 |
- DEPEND+=" >=sci-biology/emboss-6.6.0[mysql=,pdf=,png=,postgres=,static-libs=,X=]" |
99 |
- |
100 |
- S="${WORKDIR}"/${EF} |
101 |
-fi |
102 |
- |
103 |
-# @FUNCTION: emboss_src_prepare |
104 |
-# @DESCRIPTION: |
105 |
-# Does the following things |
106 |
-# |
107 |
-# 1. Renames configure.in to configure.ac, if possible |
108 |
-# 2. Applies ${PATCHES[@]} and runs autotools via autotools-utils.eclass |
109 |
-# |
110 |
- |
111 |
-emboss-r1_src_prepare() { |
112 |
- if [[ -e configure.in ]]; then |
113 |
- mv configure.{in,ac} || die |
114 |
- fi |
115 |
- |
116 |
- autotools-utils_src_prepare |
117 |
-} |
118 |
- |
119 |
-# @FUNCTION: emboss_src_configure |
120 |
-# @DESCRIPTION: |
121 |
-# runs econf with following options. |
122 |
-# |
123 |
-# $(use_with X x) |
124 |
-# $(use_with png pngdriver) |
125 |
-# $(use_with pdf hpdf) |
126 |
-# $(use_with mysql mysql) |
127 |
-# $(use_with postgres postgresql) |
128 |
-# $(use_enable static-libs static) |
129 |
-# --enable-large |
130 |
-# --without-java |
131 |
-# --enable-systemlibs |
132 |
-# ${EBO_EXTRA_ECONF} |
133 |
- |
134 |
-emboss-r1_src_configure() { |
135 |
- local myeconfargs=( |
136 |
- $(use_with X x) |
137 |
- $(use_with png pngdriver "${EPREFIX}/usr") |
138 |
- $(use_with pdf hpdf "${EPREFIX}/usr") |
139 |
- $(use_with mysql mysql "${EPREFIX}/usr/bin/mysql_config") |
140 |
- $(use_with postgres postgresql "${EPREFIX}/usr/bin/pg_config") |
141 |
- --enable-large |
142 |
- --without-java |
143 |
- --enable-systemlibs |
144 |
- ${EBO_EXTRA_ECONF} |
145 |
- ) |
146 |
- |
147 |
- [[ ${EMBASSY_PACKAGE} == yes ]] && \ |
148 |
- append-cppflags "-I${EPREFIX}/usr/include/emboss" |
149 |
- |
150 |
- autotools-utils_src_configure |
151 |
-} |
152 |
- |
153 |
-EXPORT_FUNCTIONS src_prepare src_configure |