initial import of findlib-1.0.4
-- findlib provides a scheme to manage reusable Objective Caml software components in the form of libraries, and includes tools that support this scheme.
This commit is contained in:
parent
804d04d63d
commit
bce16519f1
32
sysutils/findlib/Makefile
Normal file
32
sysutils/findlib/Makefile
Normal file
@ -0,0 +1,32 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2004/06/12 21:45:34 avsm Exp $
|
||||
|
||||
COMMENT= "Objective Caml package manager"
|
||||
CATEGORIES= sysutils
|
||||
DISTNAME= findlib-1.0.4
|
||||
MASTER_SITES= http://www.ocaml-programming.de/packages/
|
||||
|
||||
MAINTAINER= Anil Madhavapeddy <avsm@openbsd.org>
|
||||
HOMEPAGE= http://www.ocaml-programming.de/packages/
|
||||
|
||||
# MIT/X11
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
|
||||
MODULES= ocaml
|
||||
NO_REGRESS=Yes
|
||||
|
||||
SAMPLE_LOC= ${PREFIX}/share/examples/findlib
|
||||
SAMPLE_FILE= ${SAMPLE_LOC}/ocamlfind.conf
|
||||
MAKE_FLAGS= PREFIX=${PREFIX} SYSCONFDIR=${SYSCONFDIR}
|
||||
FAKE_FLAGS= PREFIX=${PREFIX} SYSCONFDIR=${DESTDIR}${SAMPLE_LOC}
|
||||
|
||||
ALL_TARGET= all ${MODOCAML_NATIVE:S,Yes,all opt,:S,No,,}
|
||||
USE_GMAKE= Yes
|
||||
SUBST_VARS= SAMPLE_FILE
|
||||
|
||||
do-configure:
|
||||
cp ${WRKSRC}/Makefile.config.pattern ${WRKBUILD}/Makefile.config
|
||||
|
||||
.include <bsd.port.mk>
|
3
sysutils/findlib/distinfo
Normal file
3
sysutils/findlib/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (findlib-1.0.4.tar.gz) = dbfabe1b3677a03bcf238ecccb36d84f
|
||||
RMD160 (findlib-1.0.4.tar.gz) = 71c2ce482666db5df5ad25d57ebb306bbe551e64
|
||||
SHA1 (findlib-1.0.4.tar.gz) = 405db790d3cb8b04bf6ede7444103ae678a90ef7
|
46
sysutils/findlib/patches/patch-Makefile_config_pattern
Normal file
46
sysutils/findlib/patches/patch-Makefile_config_pattern
Normal file
@ -0,0 +1,46 @@
|
||||
$OpenBSD: patch-Makefile_config_pattern,v 1.1.1.1 2004/06/12 21:45:34 avsm Exp $
|
||||
--- Makefile.config.pattern.orig 2004-06-12 10:39:32.000000000 +0100
|
||||
+++ Makefile.config.pattern 2004-06-12 10:42:39.000000000 +0100
|
||||
@@ -6,33 +6,33 @@
|
||||
#----------------------------------------------------------------------
|
||||
# Where the OCAML core is installed:
|
||||
#----------------------------------------------------------------------
|
||||
-OCAML_CORE_STDLIB=/usr/local/lib/ocaml
|
||||
-OCAML_CORE_BIN=/usr/local/bin
|
||||
-OCAML_CORE_MAN=/usr/local/man
|
||||
+OCAML_CORE_STDLIB=${DESTDIR}${PREFIX}/lib/ocaml
|
||||
+OCAML_CORE_BIN=${DESTDIR}${PREFIX}/bin
|
||||
+OCAML_CORE_MAN=${DESTDIR}${PREFIX}/man
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
# Type of multi-threading support: either vm or posix
|
||||
# (Note: Since O'Caml 3.07, "posix" includes "vm", because a build
|
||||
# supporting posix also supports vm.)
|
||||
#----------------------------------------------------------------------
|
||||
-OCAML_THREADS=vm
|
||||
-#OCAML_THREADS=posix
|
||||
+#OCAML_THREADS=vm
|
||||
+OCAML_THREADS=posix
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
# Where the site-lib directory will be
|
||||
#----------------------------------------------------------------------
|
||||
-OCAML_SITELIB=/usr/local/lib/ocaml/site-lib
|
||||
+OCAML_SITELIB=${DESTDIR}${PREFIX}/lib/ocaml/site-lib
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
# Where binaries and manual pages will be installed
|
||||
#----------------------------------------------------------------------
|
||||
-OCAMLFIND_BIN=/usr/local/bin
|
||||
-OCAMLFIND_MAN=/usr/local/man
|
||||
+OCAMLFIND_BIN=${DESTDIR}${PREFIX}/bin
|
||||
+OCAMLFIND_MAN=${DESTDIR}${PREFIX}/man
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
# The absolute location of the configuration file
|
||||
#----------------------------------------------------------------------
|
||||
-OCAMLFIND_CONF=/usr/local/etc/ocamlfind.conf
|
||||
+OCAMLFIND_CONF=${SYSCONFDIR}/ocamlfind.conf
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
# Autolinking is usually on
|
25
sysutils/findlib/pkg/DEINSTALL
Normal file
25
sysutils/findlib/pkg/DEINSTALL
Normal file
@ -0,0 +1,25 @@
|
||||
#!/bin/sh
|
||||
# $OpenBSD: DEINSTALL,v 1.1.1.1 2004/06/12 21:45:34 avsm Exp $
|
||||
#
|
||||
# ocamlfind de-installation
|
||||
|
||||
set -e
|
||||
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
||||
PREFIX=${PKG_PREFIX:-/usr/local}
|
||||
CONFIG_FILE=${SYSCONFDIR}/ocamlfind.conf
|
||||
|
||||
if [ "$PKG_DELETE_EXTRA" != Yes -a -e $CONFIG_FILE ]; then
|
||||
echo
|
||||
echo "+---------------"
|
||||
echo "| To completely deinstall the $1 package you need to perform"
|
||||
echo "| this step as root:"
|
||||
echo "|"
|
||||
echo "| rm -f $CONFIG_FILE"
|
||||
echo "|"
|
||||
echo "| Do not do this if you plan on re-installing $1"
|
||||
echo "| at some future time."
|
||||
echo "+---------------"
|
||||
echo
|
||||
fi
|
||||
|
||||
exit 0
|
16
sysutils/findlib/pkg/DESCR
Normal file
16
sysutils/findlib/pkg/DESCR
Normal file
@ -0,0 +1,16 @@
|
||||
findlib provides a scheme to manage reusable Objective Caml software
|
||||
components in the form of libraries, and includes tools that support
|
||||
this scheme.
|
||||
|
||||
A library installed as a findlib component is also called a package.
|
||||
The point is that the findlib scheme allows it to store metainformation
|
||||
about the library, especially how it can be used in programs. The
|
||||
packages are kept in the filesystem hierarchy, but the directory
|
||||
structure is defined by findlib, and there is no way to deviate
|
||||
from this standard. 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.
|
64
sysutils/findlib/pkg/INSTALL
Normal file
64
sysutils/findlib/pkg/INSTALL
Normal file
@ -0,0 +1,64 @@
|
||||
#!/bin/sh
|
||||
# $OpenBSD: INSTALL,v 1.1.1.1 2004/06/12 21:45:34 avsm Exp $
|
||||
#
|
||||
# Pre/post-installation setup of ocamlfind
|
||||
|
||||
# exit on errors, use a sane path and install prefix
|
||||
#
|
||||
set -e
|
||||
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
||||
PREFIX=${PKG_PREFIX:-/usr/local}
|
||||
CONFIG_FILE=${SYSCONFDIR}/ocamlfind.conf
|
||||
SAMPLE_CONFIG_FILE=${SAMPLE_FILE}
|
||||
|
||||
do_notice()
|
||||
{
|
||||
echo
|
||||
echo "+---------------"
|
||||
echo "| The existing $1 configuration file, $CONFIG_FILE,"
|
||||
echo "| has NOT been changed. You may want to compare it to the"
|
||||
echo "| current sample file, $SAMPLE_CONFIG_FILE,"
|
||||
echo "| and update your configuration as needed."
|
||||
echo "+---------------"
|
||||
echo
|
||||
}
|
||||
|
||||
do_install()
|
||||
{
|
||||
install -o root -g wheel -m 644 $SAMPLE_CONFIG_FILE $CONFIG_FILE
|
||||
echo
|
||||
echo "+---------------"
|
||||
echo "| The $1 configuration file, $CONFIG_FILE,"
|
||||
echo "| has been installed. Please view this file and change"
|
||||
echo "| the configuration to meet your needs."
|
||||
echo "+---------------"
|
||||
echo
|
||||
}
|
||||
|
||||
# verify proper execution
|
||||
#
|
||||
if [ $# -ne 2 ]; then
|
||||
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Verify/process the command
|
||||
#
|
||||
case $2 in
|
||||
PRE-INSTALL)
|
||||
: nothing to pre-install for this port
|
||||
;;
|
||||
POST-INSTALL)
|
||||
if [ -f $CONFIG_FILE ]; then
|
||||
do_notice $1
|
||||
else
|
||||
do_install $1
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
3
sysutils/findlib/pkg/PFRAG.native
Normal file
3
sysutils/findlib/pkg/PFRAG.native
Normal file
@ -0,0 +1,3 @@
|
||||
@comment $OpenBSD: PFRAG.native,v 1.1.1.1 2004/06/12 21:45:34 avsm Exp $
|
||||
lib/ocaml/site-lib/findlib/findlib.a
|
||||
lib/ocaml/site-lib/findlib/findlib.cmxa
|
30
sysutils/findlib/pkg/PLIST
Normal file
30
sysutils/findlib/pkg/PLIST
Normal file
@ -0,0 +1,30 @@
|
||||
%%native%%
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2004/06/12 21:45:34 avsm Exp $
|
||||
bin/ocamlfind
|
||||
lib/ocaml/site-lib/findlib/Makefile.config
|
||||
lib/ocaml/site-lib/findlib/findlib.cma
|
||||
lib/ocaml/site-lib/findlib/findlib.cmi
|
||||
lib/ocaml/site-lib/findlib/findlib.mli
|
||||
lib/ocaml/site-lib/findlib/findlib_top.cma
|
||||
lib/ocaml/site-lib/findlib/fl_metascanner.cmi
|
||||
lib/ocaml/site-lib/findlib/fl_metascanner.mli
|
||||
lib/ocaml/site-lib/findlib/fl_package_base.cmi
|
||||
lib/ocaml/site-lib/findlib/fl_package_base.mli
|
||||
lib/ocaml/site-lib/findlib/make_wizard
|
||||
lib/ocaml/site-lib/findlib/make_wizard.pattern
|
||||
lib/ocaml/site-lib/findlib/topfind.cmi
|
||||
lib/ocaml/site-lib/findlib/topfind.mli
|
||||
lib/ocaml/site-lib/num-top/num_top.cma
|
||||
lib/ocaml/site-lib/num-top/num_top.cmi
|
||||
lib/ocaml/site-lib/num-top/num_top_printers.cmi
|
||||
lib/ocaml/topfind
|
||||
man/man1/ocamlfind.1
|
||||
man/man5/META.5
|
||||
man/man5/findlib.conf.5
|
||||
man/man5/site-lib.5
|
||||
share/examples/findlib/ocamlfind.conf
|
||||
@dirrm share/examples/findlib
|
||||
@dirrm lib/ocaml/site-lib/num-top
|
||||
@dirrm lib/ocaml/site-lib/findlib
|
||||
@dirrm lib/ocaml/site-lib
|
||||
@dirrm lib/ocaml
|
Loading…
Reference in New Issue
Block a user