ports/66217: [maintainer update] NO_PACKAGE for devel/ocaml-findlib
Stephane Legrand
stephane at FreeBSD.org
Fri May 7 14:40:28 UTC 2004
The following reply was made to PR ports/66217; it has been noted by GNATS.
From: Stephane Legrand <stephane at FreeBSD.org>
To: Pav Lucistnik <pav at FreeBSD.org>
Cc: freebsd-gnats-submit at FreeBSD.org
Subject: Re: ports/66217: [maintainer update] NO_PACKAGE for devel/ocaml-findlib
Date: Fri, 7 May 2004 16:39:37 +0200
On Tue, May 04, 2004 at 10:42:58AM +0200, Pav Lucistnik wrote:
> V út, 04. 05. 2004 v 00:21, Stephane Legrand pÃÅ¡e:
>
> > > We can't build those meta files and package them?
> >
> > I don't know all the tricky details but my understanding is that
> > it would be difficult. Notably because these META files seem dependent
> > on the compiler options (x11/no x11, tk/no tk, threads support,
> > whatever...).
>
> This is not the problem, packages are expected to reflect the system
> they were built on, not the system they are being installed into.
>
> I suppose a port have some default options (x11,tk,threads) and
> installing port on clean installation of FreeBSD would produce these
> default options. Package will have same default options.
You are right. Here is my new patch:
diff -ruN ocaml-findlib-orig/Makefile ocaml-findlib/Makefile
--- ocaml-findlib-orig/Makefile Thu May 6 22:54:56 2004
+++ ocaml-findlib/Makefile Thu May 6 23:21:04 2004
@@ -13,7 +13,7 @@
MASTER_SITES= http://www.ocaml-programming.de/packages/
PKGNAMEPREFIX= ocaml-
-MAINTAINER= ports at FreeBSD.org
+MAINTAINER= stephane at FreeBSD.org
COMMENT= OCaml package manager
BUILD_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml
@@ -29,6 +29,13 @@
post-install:
@${FIND} ${PREFIX}/lib/ocaml/site-lib/findlib -type f | \
${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
+
+# this list comes from the findlib configure script
+.for D in dbm dynlink graphics num num-top str threads unix stdlib bigarray labltk camlp4
+ @${FIND} ${PREFIX}/lib/ocaml/site-lib/$D -type f -name META | \
+ ${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
+.endfor
+
@${FIND} ${PREFIX}/lib/ocaml/site-lib/findlib -type d | ${SORT} -r | \
${SED} 's,^${PREFIX}/, at dirrm ,' >> ${TMPPLIST}
More information about the freebsd-ports-bugs
mailing list