/[gentoo-x86]/dev-lang/yap/yap-6.3.1.ebuild
Gentoo

Contents of /dev-lang/yap/yap-6.3.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sat Jun 23 07:05:14 2012 UTC (10 months, 3 weeks ago) by keri
Branch: MAIN
CVS Tags: HEAD
Version bump

(Portage version: 2.1.10.49/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/yap/yap-6.3.0.ebuild,v 1.4 2012/06/06 03:17:38 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="YAP is a high-performance Prolog compiler."
12 HOMEPAGE="http://www.dcc.fc.up.pt/~vsc/Yap/"
13 SRC_URI="http://www.dcc.fc.up.pt/~vsc/Yap/${P}.tar.gz
14 mirror://gentoo/${P}-gentoo-patchset-${PATCHSET_VER}.tar.gz"
15
16 LICENSE="Artistic LGPL-2"
17 SLOT="0"
18 KEYWORDS="~amd64 ~ppc ~x86"
19 IUSE="R debug doc examples gmp java mpi mysql odbc readline static threads"
20
21 RDEPEND="sys-libs/zlib
22 gmp? ( dev-libs/gmp )
23 java? ( >=virtual/jdk-1.4 )
24 mpi? ( virtual/mpi )
25 mysql? ( virtual/mysql )
26 odbc? ( dev-db/unixODBC )
27 readline? ( sys-libs/readline sys-libs/ncurses )
28 R? ( dev-lang/R )"
29
30 DEPEND="${RDEPEND}
31 doc? ( app-text/texi2html )"
32
33 S="${WORKDIR}"/${PN}-6.3
34
35 src_prepare() {
36 cd "${WORKDIR}"
37 EPATCH_FORCE=yes
38 EPATCH_SUFFIX=patch
39 epatch "${WORKDIR}"/${PV}
40 rm -rf "${S}"/yap || die "failed to remove yap xcode project"
41 }
42
43 src_configure() {
44 append-flags -fno-strict-aliasing
45
46 local myddas_conf
47 if use mysql || use odbc; then
48 myddas_conf="--enable-myddas"
49 else
50 myddas_conf="--disable-myddas"
51 fi
52
53 econf \
54 --libdir=/usr/$(get_libdir) \
55 $(use_enable !static dynamic-loading) \
56 $(use_enable threads) \
57 $(use_enable threads pthread-locking) \
58 $(use_enable debug debug-yap) \
59 $(use_enable debug low-level-tracer) \
60 $(use_with gmp) \
61 $(use_with readline) \
62 $(use_with mpi) \
63 $(use_with mpi mpe) \
64 $(use_with java) \
65 $(use_with R) \
66 ${myddas_conf}
67 }
68
69 src_compile() {
70 emake || die "emake failed"
71
72 if use doc ; then
73 emake html || die "emake html failed"
74 fi
75 }
76
77 src_install() {
78 emake DESTDIR="${D}" install || die "make install failed."
79
80 dodoc changes*.html README || die
81
82 if use doc ; then
83 dodoc yap.html || die
84 fi
85
86 if use examples ; then
87 insinto /usr/share/doc/${PF}/examples/chr
88 doins packages/chr/Examples/* || die
89 insinto /usr/share/doc/${PF}/examples/clib
90 doins packages/clib/demo/* || die
91 insinto /usr/share/doc/${PF}/examples/http
92 doins -r packages/http/examples/* || die
93 insinto /usr/share/doc/${PF}/examples/plunit
94 doins packages/plunit/examples/* || die
95 if use java ; then
96 insinto /usr/share/doc/${PF}/examples/jpl/prolog
97 doins packages/jpl/examples/prolog/* || die
98 insinto /usr/share/doc/${PF}/examples/jpl/java
99 doins packages/jpl/examples/java/README || die
100 doins -r packages/jpl/examples/java/*/*.{java,pl} || die
101 fi
102 if use mpi ; then
103 insinto /usr/share/doc/${PF}/examples/mpi
104 doins library/mpi/examples/*.pl || die
105 fi
106 fi
107 }

  ViewVC Help
Powered by ViewVC 1.1.13