[88520] trunk/dports/devel
mww at macports.org
mww at macports.org
Tue Jan 3 17:30:11 PST 2012
Revision: 88520
http://trac.macports.org/changeset/88520
Author: mww at macports.org
Date: 2012-01-03 17:30:11 -0800 (Tue, 03 Jan 2012)
Log Message:
-----------
re-add as stub
Modified Paths:
--------------
trunk/dports/devel/caml-findlib/Portfile
Added Paths:
-----------
trunk/dports/devel/caml-findlib/
Modified: trunk/dports/devel/caml-findlib/Portfile
===================================================================
--- trunk/dports/devel/ocaml-findlib/Portfile 2012-01-03 11:48:48 UTC (rev 88494)
+++ trunk/dports/devel/caml-findlib/Portfile 2012-01-04 01:30:11 UTC (rev 88520)
@@ -1,86 +1,14 @@
# $Id$
PortSystem 1.0
+replaced_by ocaml-findlib
+PortGroup obsolete 1.0
-name ocaml-findlib
+name caml-findlib
version 1.2.7
-distname findlib-${version}
+revision 1
categories devel ml
-maintainers mww openmaintainer
-platforms darwin
-license MIT
-description Objective Caml library management system
-long_description The findlib library provides a scheme to manage reusable \
- software components (packages), and includes tools that support \
- this scheme. Packages are collections of OCaml modules for which \
- metainformation can be stored. The packages are kept in the filesystem \
- hierarchy, but with strict directory structure. The library contains \
- functions to look the directory up that stores a package, to query \
- metainformation about a package, and to retrieve dependency information \
- about multiple packages. There is also a tool that allows the user to \
- enter queries on the command-line. In order to simplify compilation and \
- linkage, there are new frontends of the various OCaml compilers that \
- can directly deal with packages.
-homepage http://projects.camlcity.org/projects/findlib.html
-master_sites http://download.camlcity.org/download/
-checksums md5 000bff723e8d3d727a7edd5b5901b540 \
- sha1 bb99da86a454ec755c9c5e4a464013be5c766801 \
- rmd160 d374a9dcfee69e2428e904a77882616dd4fe61e7
-livecheck.type regex
-livecheck.regex "findlib-(.*?).tar.gz"
-
-depends_lib port:ocaml
-
-configure.args -bindir ${prefix}/bin \
- -mandir ${prefix}/share/man \
- -sitelib ${prefix}/lib/ocaml/site-lib
-
-configure.pre_args ""
-
-use_parallel_build no
-build.target all opt
-
-destroot.destdir prefix=${destroot}
-
-universal_variant no
-
-# `ocamlfind printconf destdir` returns nothing if the dir isn't in place
-# but we know it's the same as our site-lib dir
-set ocamlfind_destdir [file normalize ${prefix}/lib/ocaml/site-lib/stublibs]
-destroot.keepdirs ${destroot}${ocamlfind_destdir}
-post-destroot {
- file mkdir ${destroot}${ocamlfind_destdir}
-}
-
-post-activate {
- # Add our stublibs dir path to ld.conf
- set ldconfpath [exec ${prefix}/bin/ocamlfind printconf ldconf]
- # ld.conf should exist since ocaml is installed, but lets just be safe anyway
- if {[file exists $ldconfpath]} then {
- # make sure ld.conf doesn't already have this line, so if the user installs,
- # uninstalls, then installs again, we won't duplicate it
- set has_line 0
- set ldconf [open $ldconfpath r+]
- while {[gets $ldconf line] != -1 && !$has_line} {
- if {[string equal $line $ocamlfind_destdir]} then {
- set has_line 1
- }
- }
- if {!$has_line} {
- if {${registry.format} == "receipt_flat"} {
- ui_msg "## Adding line `${ocamlfind_destdir}' to file ${ldconfpath}"
- ui_msg "## Be sure to remove this line if you uninstall ${name}"
- }
- puts $ldconf $ocamlfind_destdir
- }
- close $ldconf
- } else {
- ui_warn "File ${ldconfpath} doesn't seem to be installed."
- ui_warn "Is ocaml installed properly?"
- }
-}
-
pre-deactivate {
# remove our stublibs dir path from ld.conf
set ocamlfind_destdir [file normalize ${prefix}/lib/ocaml/site-lib/stublibs]
@@ -100,7 +28,3 @@
}
}
-variant toolbox description {build the toolbox wizard, requires labltk} {
- configure.args-append -with-toolbox
- depends_lib bin:lablgtk:lablgtk
-}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120103/4099af67/attachment-0001.html>
More information about the macports-changes
mailing list