1 |
commit: 42851b5323e85db58953c4213a82cf3c6e4251b0 |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Oct 4 13:21:13 2020 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Oct 4 13:21:13 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=42851b53 |
7 |
|
8 |
sci-astronomy/esomidas: Remove old |
9 |
|
10 |
Package-Manager: Portage-3.0.8, Repoman-3.0.1 |
11 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
12 |
|
13 |
sci-astronomy/esomidas/esomidas-17.02.ebuild | 134 --------------------------- |
14 |
1 file changed, 134 deletions(-) |
15 |
|
16 |
diff --git a/sci-astronomy/esomidas/esomidas-17.02.ebuild b/sci-astronomy/esomidas/esomidas-17.02.ebuild |
17 |
deleted file mode 100644 |
18 |
index acaa2eb1c23..00000000000 |
19 |
--- a/sci-astronomy/esomidas/esomidas-17.02.ebuild |
20 |
+++ /dev/null |
21 |
@@ -1,134 +0,0 @@ |
22 |
-# Copyright 1999-2017 Gentoo Foundation |
23 |
-# Distributed under the terms of the GNU General Public License v2 |
24 |
- |
25 |
-EAPI=6 |
26 |
- |
27 |
-inherit eutils fortran-2 toolchain-funcs flag-o-matic |
28 |
- |
29 |
-# MIDVERS is actually used by MIDAS configuration scripts |
30 |
-export MIDVERS="17FEBpl1.2" |
31 |
- |
32 |
-DESCRIPTION="European Southern Observatory Munich Image Data Analysis System" |
33 |
-HOMEPAGE="http://www.eso.org/projects/esomidas/" |
34 |
-SRC_URI="ftp://ftp.eso.org/pub/midaspub/17FEB/sources/${MIDVERS}.tar.gz -> ${P}.tar.gz" |
35 |
- |
36 |
-LICENSE="GPL-2" |
37 |
-SLOT="0/8" |
38 |
-KEYWORDS="~amd64 ~x86" |
39 |
- |
40 |
-IUSE="" |
41 |
- |
42 |
-RDEPEND=" |
43 |
- sys-libs/readline:0= |
44 |
- x11-libs/motif:0= |
45 |
- x11-libs/libX11:= |
46 |
- x11-libs/libXt:=" |
47 |
-DEPEND="${RDEPEND}" |
48 |
- |
49 |
-S="${WORKDIR}/${MIDVERS}" |
50 |
- |
51 |
-PATCHES=( |
52 |
- "${FILESDIR}/${P}-output_to_stdout.patch" |
53 |
- "${FILESDIR}/${P}-gentoo-setup.patch" |
54 |
-) |
55 |
- |
56 |
-src_prepare() { |
57 |
- default |
58 |
- # variables for all phases and midas internal build system |
59 |
- export MIDASHOME="${WORKDIR}" |
60 |
- export MID_HOME="${S}" |
61 |
- export MID_HOME0="/usr/$(get_libdir)/esomidas/${MIDVERS}" |
62 |
- export MID_INSTALL="${MID_HOME}/install/unix" |
63 |
- export MID_SYS="${MID_HOME}/system/unix/" |
64 |
- export MID_WORK="${MIDASHOME}/midwork" |
65 |
- |
66 |
- # create a gentoo option file |
67 |
- mkdir ${MID_INSTALL}/systems/Gentoo || die |
68 |
- cat >> ${MID_INSTALL}/systems/Gentoo/make_options <<-EOF |
69 |
- CC=$(tc-getCC) |
70 |
- LDCC=$(tc-getCC) |
71 |
- F77=$(tc-getFC) |
72 |
- FC=$(tc-getFC) |
73 |
- LD77_CMD=$(tc-getFC) |
74 |
- AR=$(tc-getAR) |
75 |
- RANLIB=$(tc-getRANLIB) |
76 |
- F_OPT= |
77 |
- C_OPT= |
78 |
- E_OPT=$(use amd64 && echo -Z) |
79 |
- SYS= |
80 |
- SH_OPT=-fPIC |
81 |
- SH_CMD=${MIDASHOME}/${MIDVERS}/local/make_shared |
82 |
- GUI_OPT=-DPATH_MAX=1024 |
83 |
- STRIP=echo |
84 |
- EDITFLAGS=-DVOID_SIGHANDLER -DHAVE_ALLOCA -DHAVE_ALLOCA_H -DHAVE_GETPW_DECLS -DHAVE_DIRENT_H -DHAVE_STRING_H -DLinux -DHAVE_UNISTD_H -DHAVE_STDLIB_H |
85 |
- EDITLIBS=-lreadline |
86 |
- UIMX=uimxR5 |
87 |
- INSTALL_FLAG=auto |
88 |
- EOF |
89 |
- sed -e "s|gcc|$(tc-getCC) \${LDFLAGS}|" \ |
90 |
- ${MID_INSTALL}/systems/Linux/make_shared \ |
91 |
- > ${MID_INSTALL}/systems/Gentoo/make_shared || die |
92 |
- sed -e 's|PC/Linux|Gentoo|' \ |
93 |
- ${MID_INSTALL}/systems/Linux/setup \ |
94 |
- > ${MID_INSTALL}/systems/Gentoo/setup || die |
95 |
- |
96 |
- # gentoo readline avoids exporting the xmalloc,xrealloc and xfree |
97 |
- append-cppflags -Dxrealloc=_rl_realloc -Dxmalloc=_rl_malloc -Dxfree=_rl_free |
98 |
-} |
99 |
- |
100 |
-src_configure() { |
101 |
- ${MID_INSTALL}/select all || die "packages selection failed" |
102 |
- ${MID_INSTALL}/preinstall -a || die "preinstallation failed" |
103 |
- ${MID_INSTALL}/install2 || die "configuration failed" |
104 |
- chmod 755 ${MID_HOME}/local/make_shared |
105 |
-} |
106 |
- |
107 |
-src_compile() { |
108 |
- CMND_YES=2 ${MID_INSTALL}/install3 -a || die "compilation failed" |
109 |
- [[ -x ${MID_HOME}/monit/midasgo.exe ]] || die "somewhere compilation failed" |
110 |
- emake -C monit syskeys.unix |
111 |
- ${MID_SYS}/inmidas -m ${MID_WORK} -j "@ compile.all" |
112 |
- ${MID_SYS}/inmidas -m ${MID_WORK} -j "@ ascii_bin no ; bye" |
113 |
-} |
114 |
- |
115 |
-src_test() { |
116 |
- local test_dir="${WORKDIR}/test_tmp" |
117 |
- mkdir ${test_dir} && cd ${test_dir} |
118 |
- ${MID_SYS}/inmidas -m ${MID_WORK} -j "@ vericopy ; @@ veriall -nodisplay ; bye" || die |
119 |
- test -f ${MID_WORK}/veriall_* || die "tests failed somewhere" |
120 |
- rm -rf ${test_dir} |
121 |
-} |
122 |
- |
123 |
-src_install() { |
124 |
- yes | ${MID_SYS}/cleanmidas |
125 |
- find ${MID_HOME} \( \ |
126 |
- -name "*.a" -o \ |
127 |
- -name "makefile" -o \ |
128 |
- -name "default.mk" -o \ |
129 |
- -name "*.h" -o \ |
130 |
- -name "*.inc" -o \ |
131 |
- -name COPYING -o \ |
132 |
- -name "*~" -o \ |
133 |
- -name "*.mod" \) -delete |
134 |
- rm -rf ${MID_HOME}/libsrc/ftoc* |
135 |
- find ${MID_HOME} -type d -empty -delete |
136 |
- |
137 |
- sed -e "s:^MIDVERS0=.*:MIDVERS0=${MIDVERS}:" \ |
138 |
- -e "s:^MIDASHOME0=.*:MIDASHOME0=/usr/$(get_libdir)/esomidas:" \ |
139 |
- -i ${MID_HOME}/system/unix/{inmidas,helpmidas,drs} |
140 |
- |
141 |
- cd "${WORKDIR}" |
142 |
- dodir /usr/$(get_libdir)/esomidas |
143 |
- mv "${S}" "${ED}"${MID_HOME0} |
144 |
- chmod 0644 "${ED}"${MID_HOME0}/contrib/baches/*/*.fit \ |
145 |
- "${ED}"${MID_HOME0}/contrib/baches/*/*.fmt \ |
146 |
- "${ED}"${MID_HOME0}/contrib/baches/*/*.datorg \ |
147 |
- "${ED}"${MID_HOME0}/contrib/baches/*/*.prg \ |
148 |
- "${ED}"${MID_HOME0}/contrib/baches/*/*.README |
149 |
- find "${ED}"${MID_HOME0} -name \*.sh | xargs chmod 0755 |
150 |
- chmod 0755 "${ED}"${MID_HOME0}/util/bench/brun |
151 |
- |
152 |
- dosym ${MID_HOME0}/system/unix/inmidas /usr/bin/inmidas |
153 |
- dosym ${MID_HOME0}/system/unix/gomidas /usr/bin/gomidas |
154 |
- dosym ${MID_HOME0}/system/ftoc-new ${MID_HOME0}/system/good-ftoc |
155 |
-} |