Skip site navigation (1)Skip section navigation (2)
Date:      Wed,  9 Aug 2006 23:41:28 +0600 (YEKST)
From:      Stanislav Sedov <ssedov@mbsd.msk.ru>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/101725: [MAINTAINER] devel/ocaml-camomile: fix pkg-plist
Message-ID:  <20060809174128.DD5E312C65@fonon.realnet>
Resent-Message-ID: <200608091950.k79JoGW0049476@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         101725
>Category:       ports
>Synopsis:       [MAINTAINER] devel/ocaml-camomile: fix pkg-plist
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 09 19:50:15 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Stanislav Sedov
>Release:        FreeBSD 7.0-CURRENT i386
>Organization:
MBSD labs, Inc.
>Environment:
System: FreeBSD fonon.realnet 7.0-CURRENT FreeBSD 7.0-CURRENT #1: Wed Aug  2 21:44:37 MSD
>Description:
- Fix pkg-plist (reported by kris@)
- Use new OCAML_WASH feature to handle non-standard prefixes

>How-To-Repeat:
>Fix:

--- ocaml-camomile-0.6.6.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/devel/ocaml-camomile/Makefile /var/tmp/ocaml-camomile/Makefile
--- /usr/ports/devel/ocaml-camomile/Makefile	Fri Aug  4 21:19:12 2006
+++ /var/tmp/ocaml-camomile/Makefile	Wed Aug  9 23:40:00 2006
@@ -21,6 +21,7 @@
 USE_OCAML=	yes
 USE_OCAML_FINDLIB=yes
 USE_OCAML_LDCONFIG=yes
+USE_OCAML_WASH=	yes
 GNU_CONFIGURE=	yes
 
 DOCSDIR=	${PREFIX}/share/doc/ocaml/${PORTNAME}
@@ -38,5 +39,15 @@
 	@${REINPLACE_CMD} -E -e \
 		"s,([[:space:]]*)cp[[:space:]]*-f,\1\$${BSD_INSTALL_DATA}," \
 		${WRKSRC}/Makefile.in
+
+post-install:
+	@${FIND} ${DATADIR} ! -type d | \
+		${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
+	@${FIND} ${DATADIR} -type d | ${SORT} -r | \
+		${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
+	@${FIND} ${OCAMLFIND_DESTDIR}/${PORTNAME} ! -type d | \
+		${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
+	@${FIND} ${OCAMLFIND_DESTDIR}/${PORTNAME} -type d | ${SORT} -r | \
+		${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
 
 .include <bsd.port.post.mk>
--- ocaml-camomile-0.6.6.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060809174128.DD5E312C65>