1 |
commit: 07cb9d5a2173726fda886d5a046a14f3e568d4f9 |
2 |
Author: Mark Wright <gienah <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jan 2 23:11:02 2017 +0000 |
4 |
Commit: Mark Wright <gienah <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jan 2 23:11:02 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07cb9d5a |
7 |
|
8 |
sci-mathematics/e: Update to EAPI="6" |
9 |
|
10 |
Package-Manager: portage-2.3.3 |
11 |
|
12 |
sci-mathematics/e/e-1.8-r1.ebuild | 119 ++++++++++++++++++++++++++++++++++++++ |
13 |
1 file changed, 119 insertions(+) |
14 |
|
15 |
diff --git a/sci-mathematics/e/e-1.8-r1.ebuild b/sci-mathematics/e/e-1.8-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 00000000..7a798ab |
18 |
--- /dev/null |
19 |
+++ b/sci-mathematics/e/e-1.8-r1.ebuild |
20 |
@@ -0,0 +1,119 @@ |
21 |
+# Copyright 1999-2017 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+# $Id$ |
24 |
+ |
25 |
+EAPI="6" |
26 |
+ |
27 |
+MY_PN="E" |
28 |
+MY_P="${MY_PN}-${PV}" |
29 |
+ |
30 |
+DESCRIPTION="E is a theorem prover for full first-order logic with equality" |
31 |
+HOMEPAGE="http://www4.informatik.tu-muenchen.de/~schulz/E/E.html" |
32 |
+SRC_URI="http://www4.in.tum.de/~schulz/WORK/E_DOWNLOAD/V_${PV}/${MY_PN}.tgz -> ${MY_P}.tgz" |
33 |
+ |
34 |
+LICENSE="GPL-2" |
35 |
+SLOT="0/${PV}" |
36 |
+KEYWORDS="~amd64 ~x86" |
37 |
+IUSE="doc examples isabelle" |
38 |
+ |
39 |
+RDEPEND="isabelle? ( |
40 |
+ >=sci-mathematics/isabelle-2011.1-r1:= |
41 |
+ )" |
42 |
+DEPEND="${RDEPEND}" |
43 |
+ |
44 |
+S="${WORKDIR}"/${MY_PN} |
45 |
+ |
46 |
+src_configure() { |
47 |
+ ./configure --prefix="${ROOT}usr" \ |
48 |
+ --man-prefix="${ROOT}share/man" \ |
49 |
+ || die "E configure failed" |
50 |
+ |
51 |
+ sed -e "s@CFLAGS = @CFLAGS = ${CFLAGS} @" \ |
52 |
+ -e "s@LD = \$(CC) @LD = \$(CC) ${LDFLAGS} @" \ |
53 |
+ -i "${S}/Makefile.vars" \ |
54 |
+ || die "Could not add our flags to Makefile.vars" |
55 |
+} |
56 |
+ |
57 |
+src_install() { |
58 |
+ dobin "${S}/PROVER/eprover" \ |
59 |
+ "${S}/PROVER/epclextract" \ |
60 |
+ "${S}/PROVER/eproof" \ |
61 |
+ "${S}/PROVER/eproof_ram" \ |
62 |
+ "${S}/PROVER/eground" \ |
63 |
+ "${S}/PROVER/e_ltb_runner" \ |
64 |
+ "${S}/PROVER/e_axfilter" \ |
65 |
+ "${S}/PROVER/checkproof" \ |
66 |
+ "${S}/PROVER/ekb_create" \ |
67 |
+ "${S}/PROVER/ekb_delete" \ |
68 |
+ "${S}/PROVER/ekb_ginsert" \ |
69 |
+ "${S}/PROVER/ekb_insert" |
70 |
+ |
71 |
+ doman "${S}/DOC/man/eprover.1" \ |
72 |
+ "${S}/DOC/man/epclextract.1" \ |
73 |
+ "${S}/DOC/man/eproof.1" \ |
74 |
+ "${S}/DOC/man/eproof_ram.1" \ |
75 |
+ "${S}/DOC/man/eground.1" \ |
76 |
+ "${S}/DOC/man/e_ltb_runner.1" \ |
77 |
+ "${S}/DOC/man/e_axfilter.1" \ |
78 |
+ "${S}/DOC/man/checkproof.1" \ |
79 |
+ "${S}/DOC/man/ekb_create.1" \ |
80 |
+ "${S}/DOC/man/ekb_delete.1" \ |
81 |
+ "${S}/DOC/man/ekb_ginsert.1" \ |
82 |
+ "${S}/DOC/man/ekb_insert.1" |
83 |
+ |
84 |
+ if use doc; then |
85 |
+ pushd "${S}"/DOC || die "Could not cd to DOC" |
86 |
+ dodoc ANNOUNCE CREDITS DONE E-REMARKS E-REMARKS.english E-USERS \ |
87 |
+ HISTORY NEWS PORTING ReadMe THINKME TODO TPTP_SUBMISSION \ |
88 |
+ WISHLIST eprover.pdf |
89 |
+ dohtml *.html |
90 |
+ dohtml estyle.sty |
91 |
+ popd |
92 |
+ fi |
93 |
+ |
94 |
+ if use examples; then |
95 |
+ insinto /usr/share/${MY_PN}/examples |
96 |
+ doins -r EXAMPLE_PROBLEMS |
97 |
+ doins -r SIMPLE_APPS |
98 |
+ fi |
99 |
+ |
100 |
+ if use isabelle; then |
101 |
+ ISABELLE_HOME="$(isabelle getenv ISABELLE_HOME | cut -d'=' -f 2)" \ |
102 |
+ || die "isabelle getenv ISABELLE_HOME failed" |
103 |
+ [[ -n "${ISABELLE_HOME}" ]] || die "ISABELLE_HOME empty" |
104 |
+ cat <<- EOF >> "${S}/settings" |
105 |
+ E_HOME="${ROOT}usr/bin" |
106 |
+ E_VERSION="${PV}" |
107 |
+ EOF |
108 |
+ insinto "${ISABELLE_HOME}/contrib/${PN}-${PV}/etc" |
109 |
+ doins "${S}/settings" |
110 |
+ fi |
111 |
+} |
112 |
+ |
113 |
+pkg_postinst() { |
114 |
+ if use isabelle; then |
115 |
+ if [ -f "${ROOT}etc/isabelle/components" ]; then |
116 |
+ if egrep "contrib/${PN}-[0-9.]*" "${ROOT}etc/isabelle/components"; then |
117 |
+ sed -e "/contrib\/${PN}-[0-9.]*/d" \ |
118 |
+ -i "${ROOT}etc/isabelle/components" |
119 |
+ fi |
120 |
+ cat <<- EOF >> "${ROOT}etc/isabelle/components" |
121 |
+ contrib/${PN}-${PV} |
122 |
+ EOF |
123 |
+ fi |
124 |
+ fi |
125 |
+} |
126 |
+ |
127 |
+pkg_postrm() { |
128 |
+ if use isabelle; then |
129 |
+ if [ ! -f "${ROOT}usr/bin/eproof" ]; then |
130 |
+ if [ -f "${ROOT}etc/isabelle/components" ]; then |
131 |
+ # Note: this sed should only match the version of this ebuild |
132 |
+ # Which is what we want as we do not want to remove the line |
133 |
+ # of a new E being installed during an upgrade. |
134 |
+ sed -e "/contrib\/${PN}-${PV}/d" \ |
135 |
+ -i "${ROOT}etc/isabelle/components" |
136 |
+ fi |
137 |
+ fi |
138 |
+ fi |
139 |
+} |