FreeBSD Bugzilla – Attachment 69251 Details for
Bug 101525
[MAINTAINER] lang/ocaml: add patch to allow painless non-standard PREFIX installation/removal
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
ocaml-3.09.2_1.patch
ocaml-3.09.2_1.patch (text/plain), 2.48 KB, created by
Stanislav Sedov
on 2006-08-06 20:00:28 UTC
(
hide
)
Description:
ocaml-3.09.2_1.patch
Filename:
MIME Type:
Creator:
Stanislav Sedov
Created:
2006-08-06 20:00:28 UTC
Size:
2.48 KB
patch
obsolete
>diff -ruN --exclude=CVS /usr/ports/lang/ocaml/bsd.ocaml.mk /var/tmp/ocaml/bsd.ocaml.mk >--- /usr/ports/lang/ocaml/bsd.ocaml.mk Sun Aug 6 22:50:19 2006 >+++ /var/tmp/ocaml/bsd.ocaml.mk Sun Aug 6 22:50:55 2006 >@@ -1,7 +1,7 @@ > # ex:ts=4 > # >-# $MBSDlabs: portmk/bsd.ocaml.mk,v 1.17 2006/08/02 19:31:46 stas Exp $ >-# $FreeBSD: /repoman/r/pcvs/ports/lang/ocaml/bsd.ocaml.mk,v 1.2 2006/08/04 14:22:50 itetcu Exp $ >+# $MBSDlabs: portmk/bsd.ocaml.mk,v 1.18 2006/08/06 18:47:23 stas Exp $ >+# $FreeBSD$ > # > # bsd.ocaml.mk - Support for the Objective Caml language packages > # >@@ -20,6 +20,9 @@ > # USE_OCAML_LDCONFIG - Set if your port installs shared libraries > # into ocaml site-lib dir. OCaml ld.conf file > # will be automatically processed. >+# USE_OCAML_WASH - Set if your port wants to automatically >+# purge shared Ocaml dirs on uninstall. It's >+# useful when installing to non-standard PREFIX > # OCAML_PKGDIRS - Directories under site-lib to be processed > # if USE_OCAML_FINDLIB specified. > # Default: ${PORTNAME} >@@ -90,7 +93,7 @@ > > .if defined(USE_OCAML_FINDLIB) || defined(USE_OCAML_LDCONFIG) > . if !target(post-install-script) >-post-install-script: ocaml-findlib ocaml-ldconfig >+post-install-script: ocaml-findlib ocaml-ldconfig ocaml-wash > . endif > .endif > >@@ -142,6 +145,18 @@ > . endif > .endif > >+.if defined(USE_OCAML_WASH) >+. if !target(ocaml-wash) >+ocaml-wash: >+ @${ECHO_CMD} "@unexec rmdir %D/${OCAML_SITELIBDIR} 2>/dev/null || true"\ >+ >> ${TMPPLIST} >+# If ld.conf is empty >+ @${ECHO_CMD} "@unexec if [ ! -s %D/${OCAML_LDCONF} ]; then ${RM} -f %D/${OCAML_LDCONF}; fi || true" >> ${TMPPLIST} >+ @${ECHO_CMD} "@unexec rmdir %D/${OCAML_LIBDIR} 2>/dev/null || true" \ >+ >> ${TMPPLIST} >+. endif >+.endif >+ > .if !target(ocaml-findlib) > ocaml-findlib: > @${DO_NADA} >@@ -152,6 +167,11 @@ > @${DO_NADA} > .endif > >+.if !target(ocaml-wash) >+ocaml-wash: >+ @${DO_NADA} >+.endif >+ > # > # XXX: temporary workaround for non-standard PREFIX > # >@@ -162,15 +182,6 @@ > @${ECHO_CMD} "@unexec rmdir %D 2> /dev/null || true" >> ${TMPPLIST} > . else > @${DO_NADA} >-. endif >- >-. if (${PREFIX} != ${LOCALBASE}) >- @${ECHO_CMD} "@unexec rmdir %D/${OCAML_SITELIBDIR} 2>/dev/null || true"\ >- >> ${TMPPLIST} >-# If PREFIX is non-standard and ld.conf is empty >- @${ECHO_CMD} "@unexec if [ ! -s %D/${OCAML_LDCONF} ]; then ${RM} -f %D/${OCAML_LDCONF}; fi || true" >> ${TMPPLIST} >- @${ECHO_CMD} "@unexec rmdir %D/${OCAML_LIBDIR} 2>/dev/null || true" \ >- >> ${TMPPLIST} > . endif > > # If we are using PORTDOCS macro port cannot delete OCAML_DOCSDIR, so
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 101525
: 69251