Gentoo Archives: gentoo-commits

From: Keri Harris <keri@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/swi-prolog/
Date: Wed, 30 Sep 2015 11:11:37
Message-Id: 1443611420.7867945c706ea89cb6b77ea082f8e89a852539a7.keri@gentoo
1 commit: 7867945c706ea89cb6b77ea082f8e89a852539a7
2 Author: Keri Harris <keri <AT> gentoo <DOT> org>
3 AuthorDate: Wed Sep 30 11:10:20 2015 +0000
4 Commit: Keri Harris <keri <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 30 11:10:20 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7867945c
7
8 dev-lang/swi-prolog: bump 7.3 development version
9
10 dev-lang/swi-prolog/swi-prolog-7.3.7.ebuild | 130 ++++++++++++++++++++++++++++
11 1 file changed, 130 insertions(+)
12
13 diff --git a/dev-lang/swi-prolog/swi-prolog-7.3.7.ebuild b/dev-lang/swi-prolog/swi-prolog-7.3.7.ebuild
14 new file mode 100644
15 index 0000000..c5eb39d
16 --- /dev/null
17 +++ b/dev-lang/swi-prolog/swi-prolog-7.3.7.ebuild
18 @@ -0,0 +1,130 @@
19 +# Copyright 1999-2015 Gentoo Foundation
20 +# Distributed under the terms of the GNU General Public License v2
21 +# $Id$
22 +
23 +EAPI=4
24 +
25 +inherit eutils flag-o-matic java-pkg-opt-2 multilib
26 +
27 +PATCHSET_VER="0"
28 +
29 +DESCRIPTION="free, small, and standard compliant Prolog compiler"
30 +HOMEPAGE="http://www.swi-prolog.org/"
31 +SRC_URI="http://www.swi-prolog.org/download/devel/src/swipl-${PV}.tar.gz
32 + mirror://gentoo/${P}-gentoo-patchset-${PATCHSET_VER}.tar.gz"
33 +
34 +LICENSE="LGPL-2.1"
35 +SLOT="0"
36 +KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
37 +IUSE="archive berkdb debug doc +gmp hardened java minimal odbc +readline ssl static-libs test zlib X"
38 +
39 +RDEPEND="sys-libs/ncurses
40 + archive? ( app-arch/libarchive )
41 + berkdb? ( >=sys-libs/db-4 )
42 + zlib? ( sys-libs/zlib )
43 + odbc? ( dev-db/unixODBC )
44 + readline? ( sys-libs/readline )
45 + gmp? ( dev-libs/gmp )
46 + ssl? ( dev-libs/openssl )
47 + java? ( >=virtual/jdk-1.5 )
48 + X? (
49 + virtual/jpeg
50 + x11-libs/libX11
51 + x11-libs/libXft
52 + x11-libs/libXpm
53 + x11-libs/libXt
54 + x11-libs/libICE
55 + x11-libs/libSM )"
56 +
57 +DEPEND="${RDEPEND}
58 + X? ( x11-proto/xproto )
59 + java? ( test? ( =dev-java/junit-3.8* ) )"
60 +
61 +S="${WORKDIR}/swipl-${PV}"
62 +
63 +src_prepare() {
64 + EPATCH_FORCE=yes
65 + EPATCH_SUFFIX=patch
66 + epatch "${WORKDIR}"/${PV}
67 +
68 + # OSX/Intel ld doesn't like an archive without table of contents
69 + sed -i -e 's/-cru/-scru/' packages/nlp/libstemmer_c/Makefile.pl || die
70 +}
71 +
72 +src_configure() {
73 + append-flags -fno-strict-aliasing
74 + use ppc && append-flags -mno-altivec
75 + use hardened && append-flags -fno-unit-at-a-time
76 + use debug && append-flags -DO_DEBUG
77 +
78 + # ARCH is used in the configure script to figure out host and target
79 + # specific stuff
80 + export ARCH=${CHOST}
81 +
82 + export CC_FOR_BUILD=$(tc-getBUILD_CC)
83 +
84 + cd "${S}"/src || die
85 + econf \
86 + --libdir="${EPREFIX}"/usr/$(get_libdir) \
87 + $(use_enable gmp) \
88 + $(use_enable readline) \
89 + $(use_enable static-libs static) \
90 + --enable-shared \
91 + --enable-custom-flags COFLAGS="${CFLAGS}"
92 +
93 + if ! use minimal ; then
94 + local jpltestconf
95 + if use java && use test ; then
96 + jpltestconf="--with-junit=$(java-config --classpath junit)"
97 + fi
98 +
99 + cd "${S}/packages" || die
100 + econf \
101 + --libdir="${EPREFIX}"/usr/$(get_libdir) \
102 + $(use_with archive) \
103 + $(use_with berkdb bdb ) \
104 + $(use_with java jpl) \
105 + ${jpltestconf} \
106 + $(use_with odbc) \
107 + $(use_with ssl) \
108 + $(use_with X xpce) \
109 + $(use_with zlib) \
110 + COFLAGS='"${CFLAGS}"'
111 + fi
112 +}
113 +
114 +src_compile() {
115 + cd "${S}"/src || die
116 + emake
117 +
118 + if ! use minimal ; then
119 + cd "${S}/packages" || die
120 + emake
121 + ./report-failed || die "Cannot report failed packages"
122 + fi
123 +}
124 +
125 +src_test() {
126 + cd "${S}/src" || die
127 + emake check
128 +
129 + if ! use minimal ; then
130 + cd "${S}/packages" || die
131 + emake check
132 + ./report-failed || die "Cannot report failed packages"
133 + fi
134 +}
135 +
136 +src_install() {
137 + emake -C src DESTDIR="${D}" install
138 +
139 + if ! use minimal ; then
140 + emake -C packages DESTDIR="${D}" install
141 + if use doc ; then
142 + emake -C packages DESTDIR="${D}" html-install
143 + fi
144 + ./packages/report-failed || die "Cannot report failed packages"
145 + fi
146 +
147 + dodoc ReleaseNotes/relnotes-5.10 INSTALL README VERSION
148 +}