1 |
commit: afb3bb43ccde05954fbcaee62eb1cddbba3670a4 |
2 |
Author: Brian Evans <grknight <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Feb 8 21:41:30 2019 +0000 |
4 |
Commit: Brian Evans <grknight <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Feb 8 21:41:30 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=afb3bb43 |
7 |
|
8 |
dev-lang/yap: Fix dependency, QA error and update EAPI |
9 |
|
10 |
Non-maintainer commit |
11 |
|
12 |
Bug: https://bugs.gentoo.org/665872 |
13 |
Package-Manager: Portage-2.3.59, Repoman-2.3.12 |
14 |
Signed-off-by: Brian Evans <grknight <AT> gentoo.org> |
15 |
|
16 |
dev-lang/yap/yap-6.3.3-r1.ebuild | 124 +++++++++++++++++++++++++++++++++++++++ |
17 |
1 file changed, 124 insertions(+) |
18 |
|
19 |
diff --git a/dev-lang/yap/yap-6.3.3-r1.ebuild b/dev-lang/yap/yap-6.3.3-r1.ebuild |
20 |
new file mode 100644 |
21 |
index 00000000000..fd653ef2926 |
22 |
--- /dev/null |
23 |
+++ b/dev-lang/yap/yap-6.3.3-r1.ebuild |
24 |
@@ -0,0 +1,124 @@ |
25 |
+# Copyright 1999-2019 Gentoo Authors |
26 |
+# Distributed under the terms of the GNU General Public License v2 |
27 |
+ |
28 |
+EAPI=6 |
29 |
+ |
30 |
+inherit flag-o-matic java-pkg-opt-2 |
31 |
+ |
32 |
+PATCHSET_VER="11" |
33 |
+ |
34 |
+DESCRIPTION="YAP is a high-performance Prolog compiler" |
35 |
+HOMEPAGE="http://www.dcc.fc.up.pt/~vsc/Yap/" |
36 |
+SRC_URI="http://www.dcc.fc.up.pt/~vsc/Yap/${P}.tar.gz |
37 |
+ mirror://gentoo/${P}-gentoo-patchset-${PATCHSET_VER}.tar.gz" |
38 |
+ |
39 |
+LICENSE="Artistic LGPL-2" |
40 |
+SLOT="0" |
41 |
+KEYWORDS="~amd64 ~x86" |
42 |
+IUSE="R debug doc examples gmp java mpi mysql odbc readline static threads" |
43 |
+ |
44 |
+RDEPEND="sys-libs/zlib |
45 |
+ gmp? ( dev-libs/gmp:0 ) |
46 |
+ java? ( >=virtual/jdk-1.4:= ) |
47 |
+ mpi? ( virtual/mpi ) |
48 |
+ mysql? ( dev-db/mysql-connector-c:0= ) |
49 |
+ odbc? ( dev-db/unixODBC ) |
50 |
+ readline? ( sys-libs/readline:= sys-libs/ncurses:= ) |
51 |
+ R? ( dev-lang/R )" |
52 |
+ |
53 |
+DEPEND="${RDEPEND} |
54 |
+ doc? ( app-text/texi2html )" |
55 |
+ |
56 |
+PATCHES=( "${WORKDIR}"/${PV} ) |
57 |
+ |
58 |
+src_prepare() { |
59 |
+ default |
60 |
+ rm -rf "${S}"/yap || die "failed to remove yap xcode project" |
61 |
+ |
62 |
+ # Fix QA error on doc location |
63 |
+ local mFile |
64 |
+ for mFile in Makefile.in packages/Dialect.defs.in \ |
65 |
+ $(find packages -name Makefile.in) ; do |
66 |
+ sed -i -e "s~doc/Yap~doc/${PF}~" "${mFile}" || die |
67 |
+ done |
68 |
+} |
69 |
+ |
70 |
+src_configure() { |
71 |
+ append-flags -fno-strict-aliasing |
72 |
+ |
73 |
+ local myddas_conf |
74 |
+ if use mysql || use odbc; then |
75 |
+ myddas_conf="--enable-myddas" |
76 |
+ else |
77 |
+ myddas_conf="--disable-myddas" |
78 |
+ fi |
79 |
+ if use mysql; then |
80 |
+ myddas_conf="$myddas_conf yap_with_mysql=yes" |
81 |
+ fi |
82 |
+ if use odbc; then |
83 |
+ myddas_conf="$myddas_conf yap_with_odbc=yes" |
84 |
+ fi |
85 |
+ |
86 |
+ econf \ |
87 |
+ --libdir=/usr/$(get_libdir) \ |
88 |
+ --disable-prism \ |
89 |
+ --disable-gecode \ |
90 |
+ $(use_enable !static dynamic-loading) \ |
91 |
+ $(use_enable threads) \ |
92 |
+ $(use_enable threads pthread-locking) \ |
93 |
+ $(use_enable debug debug-yap) \ |
94 |
+ $(use_enable debug low-level-tracer) \ |
95 |
+ $(use_with gmp) \ |
96 |
+ $(use_with readline) \ |
97 |
+ $(use_with mpi) \ |
98 |
+ $(use_with mpi mpe) \ |
99 |
+ $(use_with java) \ |
100 |
+ $(use_with R) \ |
101 |
+ ${myddas_conf} |
102 |
+} |
103 |
+ |
104 |
+src_compile() { |
105 |
+ default |
106 |
+ |
107 |
+ if use doc ; then |
108 |
+ emake html |
109 |
+ fi |
110 |
+} |
111 |
+ |
112 |
+src_test() { |
113 |
+ # libtai package contains check.c which confuses the default |
114 |
+ # src_test() function |
115 |
+ true |
116 |
+} |
117 |
+ |
118 |
+src_install() { |
119 |
+ default |
120 |
+ |
121 |
+ dodoc changes*.html README |
122 |
+ |
123 |
+ if use doc ; then |
124 |
+ dodoc yap.html |
125 |
+ fi |
126 |
+ |
127 |
+ if use examples ; then |
128 |
+ insinto /usr/share/doc/${PF}/examples/chr |
129 |
+ doins packages/chr/Examples/* |
130 |
+ insinto /usr/share/doc/${PF}/examples/clib |
131 |
+ doins packages/clib/demo/* |
132 |
+ insinto /usr/share/doc/${PF}/examples/http |
133 |
+ doins -r packages/http/examples/* |
134 |
+ insinto /usr/share/doc/${PF}/examples/plunit |
135 |
+ doins packages/plunit/examples/* |
136 |
+ if use java ; then |
137 |
+ insinto /usr/share/doc/${PF}/examples/jpl/prolog |
138 |
+ doins packages/jpl/examples/prolog/* |
139 |
+ insinto /usr/share/doc/${PF}/examples/jpl/java |
140 |
+ doins packages/jpl/examples/java/README |
141 |
+ doins -r packages/jpl/examples/java/*/*.{java,pl} |
142 |
+ fi |
143 |
+ if use mpi ; then |
144 |
+ insinto /usr/share/doc/${PF}/examples/mpi |
145 |
+ doins library/mpi/examples/*.pl |
146 |
+ fi |
147 |
+ fi |
148 |
+} |