/[gentoo-x86]/dev-ml/pcre-ocaml/pcre-ocaml-6.2.5.ebuild
Gentoo

Contents of /dev-ml/pcre-ocaml/pcre-ocaml-6.2.5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Wed Aug 22 14:23:06 2012 UTC (2 years, 1 month ago) by aballier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +3 -1 lines
set empty CLIBS, fixing bug #422663

(Portage version: 2.2.0_alpha121/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-ml/pcre-ocaml/pcre-ocaml-6.2.5.ebuild,v 1.4 2012/07/03 16:12:20 ranger Exp $
4
5 EAPI="2"
6
7 inherit findlib eutils
8
9 DESCRIPTION="Perl Compatibility Regular Expressions for O'Caml"
10 HOMEPAGE="http://www.ocaml.info/home/ocaml_sources.html"
11 SRC_URI="http://www.ocaml.info/ocaml_sources/${P}.tar.gz"
12 LICENSE="LGPL-2.1"
13
14 RDEPEND=">=dev-lang/ocaml-3.10.2[ocamlopt?]
15 >=dev-libs/libpcre-4.5"
16 DEPEND="${RDEPEND}"
17 SLOT="0"
18 IUSE="examples +ocamlopt"
19 KEYWORDS="amd64 ppc x86 ~x86-fbsd"
20
21 CLIBS="" # Workaround for bug #422663
22
23 src_prepare() {
24 epatch "${FILESDIR}/${PN}-6.0.1-linkopts.patch"
25 }
26
27 src_compile() {
28 cd "${S}/lib"
29 emake byte-code-library || die "Failed to build byte code library"
30 if use ocamlopt; then
31 emake native-code-library || die "Failed to build native code library"
32 fi
33 }
34
35 src_install () {
36 export OCAMLFIND_INSTFLAGS="-optional"
37 findlib_src_install
38
39 # install documentation
40 dodoc README.txt Changelog
41
42 if use examples; then
43 insinto /usr/share/doc/${PF}
44 doins -r examples
45 fi
46 }

  ViewVC Help
Powered by ViewVC 1.1.20