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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Mon Jun 18 10:29:32 2012 UTC (2 years, 2 months ago) by keri
Branch: MAIN
Bump -6.1 development version

(Portage version: 2.1.10.49/cvs/Linux x86_64)

1 keri 1.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-5.11.36.ebuild,v 1.1 2012/01/09 05:09:50 keri Exp $
4    
5     EAPI=2
6    
7     inherit eutils flag-o-matic java-pkg-opt-2
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 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 shared) \
62     --enable-custom-flags COFLAGS="${CFLAGS}"
63     }
64    
65     src_compile() {
66     cd "${S}"/src
67     emake || die "emake failed"
68    
69     if ! use minimal ; then
70     local jpltestconf
71     if use java && use test ; then
72     jpltestconf="--with-junit=$(java-config --classpath junit)"
73     fi
74    
75     cd "${S}/packages"
76     econf \
77     --libdir=/usr/$(get_libdir) \
78     $(use_with archive) \
79     --with-chr \
80     --with-clib \
81     --with-clpqr \
82     --with-cpp \
83     --with-http \
84     $(use_with java jpl) \
85     ${jpltestconf} \
86     --with-nlp \
87     $(use_with odbc) \
88     --with-PDT \
89     --with-pldoc \
90     --with-plunit \
91     --with-protobufs \
92     --with-R \
93     --with-RDF \
94     --with-semweb \
95     --with-sgml \
96     $(use_with ssl) \
97     --with-table \
98     --with-tipc \
99     --with-utf8proc \
100     $(use_with X xpce) \
101     $(use_with zlib) \
102     COFLAGS='"${CFLAGS}"'
103    
104     emake || die "packages emake failed"
105     fi
106     }
107    
108     src_test() {
109     cd "${S}/src"
110     emake check || die "make check failed. See above for details."
111    
112     if ! use minimal ; then
113     cd "${S}/packages"
114     emake check || die "make check failed. See above for details."
115     fi
116     }
117    
118     src_install() {
119     emake -C src DESTDIR="${D}" install || die "install src failed"
120    
121     if ! use minimal ; then
122     emake -C packages DESTDIR="${D}" install || die "install packages failed"
123     if use doc ; then
124     emake -C packages DESTDIR="${D}" html-install || die "html-install failed"
125     fi
126     fi
127    
128     dodoc ReleaseNotes/relnotes-5.10 INSTALL README VERSION || die
129     }

  ViewVC Help
Powered by ViewVC 1.1.20