/[gentoo-x86]/dev-lang/swi-prolog/swi-prolog-6.1.6.ebuild
Gentoo

Contents of /dev-lang/swi-prolog/swi-prolog-6.1.6.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Thu Aug 2 12:50:59 2012 UTC (2 years, 4 months ago) by keri
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Remove old development versions

(Portage version: 2.1.10.65/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-lang/swi-prolog/swi-prolog-6.1.6.ebuild,v 1.2 2012/06/26 04:28:46 zmedico Exp $
4
5 EAPI=2
6
7 inherit eutils flag-o-matic java-pkg-opt-2 multilib
8
9 PATCHSET_VER="0"
10
11 DESCRIPTION="free, small, and standard compliant Prolog compiler"
12 HOMEPAGE="http://www.swi-prolog.org/"
13 SRC_URI="http://www.swi-prolog.org/download/devel/src/pl-${PV}.tar.gz
14 mirror://gentoo/${P}-gentoo-patchset-${PATCHSET_VER}.tar.gz"
15
16 LICENSE="LGPL-2.1"
17 SLOT="0"
18 KEYWORDS="~amd64 ~ppc ~x86"
19 IUSE="archive debug doc gmp hardened java minimal odbc readline ssl static-libs test zlib X"
20
21 RDEPEND="sys-libs/ncurses
22 archive? ( app-arch/libarchive )
23 zlib? ( sys-libs/zlib )
24 odbc? ( dev-db/unixODBC )
25 readline? ( sys-libs/readline )
26 gmp? ( dev-libs/gmp )
27 ssl? ( dev-libs/openssl )
28 java? ( >=virtual/jdk-1.4 )
29 X? (
30 virtual/jpeg
31 x11-libs/libX11
32 x11-libs/libXft
33 x11-libs/libXpm
34 x11-libs/libXt
35 x11-libs/libICE
36 x11-libs/libSM )"
37
38 DEPEND="${RDEPEND}
39 X? ( x11-proto/xproto )
40 java? ( test? ( =dev-java/junit-3.8* ) )"
41
42 S="${WORKDIR}/pl-${PV}"
43
44 src_prepare() {
45 EPATCH_FORCE=yes
46 EPATCH_SUFFIX=patch
47 epatch "${WORKDIR}"/${PV}
48 }
49
50 src_configure() {
51 append-flags -fno-strict-aliasing
52 use ppc && append-flags -mno-altivec
53 use hardened && append-flags -fno-unit-at-a-time
54 use debug && append-flags -DO_DEBUG
55
56 cd "${S}"/src
57 econf \
58 --libdir=/usr/$(get_libdir) \
59 $(use_enable gmp) \
60 $(use_enable readline) \
61 $(use_enable static-libs static) \
62 --enable-shared \
63 --enable-custom-flags COFLAGS="${CFLAGS}"
64 }
65
66 src_compile() {
67 cd "${S}"/src
68 emake || die "emake failed"
69
70 if ! use minimal ; then
71 local jpltestconf
72 if use java && use test ; then
73 jpltestconf="--with-junit=$(java-config --classpath junit)"
74 fi
75
76 cd "${S}/packages"
77 econf \
78 --libdir=/usr/$(get_libdir) \
79 $(use_with archive) \
80 --with-chr \
81 --with-clib \
82 --with-clpqr \
83 --with-cpp \
84 --with-http \
85 $(use_with java jpl) \
86 ${jpltestconf} \
87 --with-nlp \
88 $(use_with odbc) \
89 --with-PDT \
90 --with-pldoc \
91 --with-plunit \
92 --with-protobufs \
93 --with-R \
94 --with-RDF \
95 --with-semweb \
96 --with-sgml \
97 $(use_with ssl) \
98 --with-table \
99 --with-tipc \
100 --with-utf8proc \
101 $(use_with X xpce) \
102 $(use_with zlib) \
103 COFLAGS='"${CFLAGS}"'
104
105 emake || die "packages emake failed"
106 fi
107 }
108
109 src_test() {
110 cd "${S}/src"
111 emake check || die "make check failed. See above for details."
112
113 if ! use minimal ; then
114 cd "${S}/packages"
115 emake check || die "make check failed. See above for details."
116 fi
117 }
118
119 src_install() {
120 emake -C src DESTDIR="${D}" install || die "install src failed"
121
122 if ! use minimal ; then
123 emake -C packages DESTDIR="${D}" install || die "install packages failed"
124 if use doc ; then
125 emake -C packages DESTDIR="${D}" html-install || die "html-install failed"
126 fi
127 fi
128
129 dodoc ReleaseNotes/relnotes-5.10 INSTALL README VERSION || die
130 }

  ViewVC Help
Powered by ViewVC 1.1.20