diff options
author | Alexis Ballier <aballier@gentoo.org> | 2013-06-11 22:20:15 +0000 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2013-06-11 22:20:15 +0000 |
commit | 7b90d16607b8cf22ba9f68603ce73404c902cb01 (patch) | |
tree | dff9dfb8bacbfdf231c828c54b32099a07a4227d /dev-ml/findlib/findlib-1.4.ebuild | |
parent | Stable for amd64 wrt bug #472736 (diff) | |
download | historical-7b90d16607b8cf22ba9f68603ce73404c902cb01.tar.gz historical-7b90d16607b8cf22ba9f68603ce73404c902cb01.tar.bz2 historical-7b90d16607b8cf22ba9f68603ce73404c902cb01.zip |
version bump
Package-Manager: portage-2.2.0_alpha179/cvs/Linux x86_64
Manifest-Sign-Key: 0x160F534A
Diffstat (limited to 'dev-ml/findlib/findlib-1.4.ebuild')
-rw-r--r-- | dev-ml/findlib/findlib-1.4.ebuild | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/dev-ml/findlib/findlib-1.4.ebuild b/dev-ml/findlib/findlib-1.4.ebuild new file mode 100644 index 000000000000..03d85adf8ae0 --- /dev/null +++ b/dev-ml/findlib/findlib-1.4.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ml/findlib/findlib-1.4.ebuild,v 1.1 2013/06/11 22:20:01 aballier Exp $ + +EAPI=5 + +inherit multilib + +DESCRIPTION="OCaml tool to find/use non-standard packages." +HOMEPAGE="http://projects.camlcity.org/projects/findlib.html" +SRC_URI="http://download.camlcity.org/download/${P}.tar.gz" +IUSE="doc +ocamlopt tk" + +LICENSE="MIT" + +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos" + +DEPEND=">=dev-lang/ocaml-3.10:=[ocamlopt?,tk?]" +RDEPEND="${DEPEND}" + +ocamlfind_destdir="${EPREFIX}/usr/$(get_libdir)/ocaml" +stublibs="${ocamlfind_destdir}/stublibs" + +src_configure() { + local myconf + use tk && myconf="-with-toolbox" + ./configure -bindir "${EPREFIX}"/usr/bin -mandir "${EPREFIX}"/usr/share/man \ + -sitelib ${ocamlfind_destdir} \ + -config ${ocamlfind_destdir}/findlib/findlib.conf \ + -no-custom \ + ${myconf} || die "configure failed" +} + +src_compile() { + emake all + if use ocamlopt; then + emake opt # optimized code + fi +} + +src_install() { + emake prefix="${D}" install + + dodir "${stublibs#${EPREFIX}}" + + cd "${S}/doc" + dodoc QUICKSTART README DOCINFO + use doc && dohtml -r ref-html guide-html +} + +check_stublibs() { + local ocaml_stdlib=`ocamlc -where` + local ldconf="${ocaml_stdlib}/ld.conf" + + if [ ! -e ${ldconf} ] + then + echo "${ocaml_stdlib}" > ${ldconf} + echo "${ocaml_stdlib}/stublibs" >> ${ldconf} + fi + + if [ -z `grep -e ${stublibs} ${ldconf}` ] + then + echo ${stublibs} >> ${ldconf} + fi +} + +pkg_postinst() { + check_stublibs +} |