<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>ocaml</Name>
        <Homepage>http://www.ocaml.org/</Homepage>
        <Packager>
            <Name>Serdar Soytetir</Name>
            <Email>kaptan@pisilinux.org</Email>
        </Packager>
        <License>OPL</License>
        <IsA>app:console</IsA>
        <Summary>Fast modern type-inferring functional programming language</Summary>
        <Description>A fast modern type-inferring functional programming language descended from the ML (Meta Language) family.</Description>
        <!-- Caution! Updating this package to a new version, may break ocaml modules like facile. Modules need to be recompiled to resolve this. Also, errors like below are indications of this situation:

        File "_none_", line 1, characters 0-1:
        Error: Files /usr/lib/ocaml/facile/facile.cmxa and /usr/lib/ocaml/stdlib.cmxa
               make inconsistent assumptions over implementation Printf
        -->
        <Archive sha1sum="d86b0be89f6e921b90e7230da40620dd16758fc1" type="tarxz">http://caml.inria.fr/pub/distrib/ocaml-4.02/ocaml-4.02.1.tar.xz</Archive>
        <BuildDependencies>
            <Dependency>zlib-devel</Dependency>
            <Dependency>ncurses-devel</Dependency>
            <Dependency>libX11-devel</Dependency>
	    <Dependency>chrpath</Dependency>
        </BuildDependencies>
        <Patches>
            <Patch>fedora/0001-Don-t-ignore-.-configure-it-s-a-real-git-file.patch</Patch>
            <Patch>fedora/0002-Ensure-empty-compilerlibs-directory-is-created-by-gi.patch</Patch>
            <Patch>fedora/0003-Don-t-add-rpaths-to-libraries.patch</Patch>
            <Patch>fedora/0004-ocamlbyteinfo-ocamlplugininfo-Useful-utilities-from-.patch</Patch>
            <Patch>fedora/0005-configure-Allow-user-defined-C-compiler-flags.patch</Patch>
            <Patch>fedora/0009-arg-Add-no_arg-and-get_arg-helper-functions.patch</Patch>
            <Patch>fedora/0010-arg-Allow-flags-such-as-flag-arg-as-well-as-flag-arg.patch</Patch>
            <Patch>fedora/0011-PR-6517-use-ISO-C99-types-u-int-32-64-_t-in-preferen.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>ocaml</Name>
        <RuntimeDependencies>
            <Dependency>zlib</Dependency>
            <Dependency>ncurses</Dependency>
            <Dependency>libX11</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin/</Path>
            <Path fileType="library">/usr/lib/</Path>
            <Path fileType="doc">/usr/share/doc/</Path>
            <Path fileType="man">/usr/share/man/</Path>
        </Files>
    </Package>

    <History>
        <Update release="7">
            <Date>2015-04-04</Date>
            <Version>4.02.1</Version>
            <Comment>Version bump.</Comment>
            <Name>Yusuf Aydemir</Name>
            <Email>yusuf.aydemir@pisilinux.org</Email>
        </Update>
        <Update release="6">
            <Date>2014-11-16</Date>
            <Version>4.00.2</Version>
            <Comment>Rebuild</Comment>
            <Name>Yusuf Aydemir</Name>
            <Email>yusuf.aydemir@pisilinux.org</Email>
        </Update>
        <Update release="5">
            <Date>2014-09-23</Date>
            <Version>4.00.2</Version>
            <Comment>Version bump.</Comment>
            <Name>Serdar Soytetir</Name>
            <Email>kaptan@pisilinux.org</Email>
        </Update>
        <Update release="4">
            <Date>2014-05-24</Date>
            <Version>3.4.1</Version>
            <Comment>Version bump.</Comment>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Update>
        <Update release="3">
            <Date>2014-02-07</Date>
            <Version>4.00.1</Version>
            <Comment>Rebuild.</Comment>
            <Name>Serdar Soytetir</Name>
            <Email>kaptan@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2014-01-29</Date>
            <Version>4.01.0</Version>
            <Comment>Version bump.</Comment>
            <Name>Stefan Gronewold(groni)</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2012-09-20</Date>
            <Version>4.00.0</Version>
            <Comment>First release</Comment>
            <Name>Serdar Soytetir</Name>
            <Email>kaptan@pisilinux.org</Email>
        </Update>
    </History>
</PISI>
