freebsd-ports/devel/ocaml-cfg/Makefile
Baptiste Daroussin da6c3af5fc Deprecate a bunch of ports that are either abandonware and/or for which no more
public distfiles are available, or for which are -devel version with a more
recent stable version for long

Feature safe:	yes
2012-10-26 14:57:50 +00:00

59 lines
1.6 KiB
Makefile

# Created by: Stanislav Sedov <ssedov@mbsd.msk.ru>
# $FreeBSD$
PORTNAME= cfg
PORTVERSION= 1.7.4
PORTREVISION= 2
CATEGORIES= devel
MASTER_SITES= http://www.ocaml.info/ocaml_sources/
PKGNAMEPREFIX= ocaml-
MAINTAINER= ports@FreeBSD.org
COMMENT= Library for manipulation of context-free grammars
DEPRECATED= No more public distfiles
EXPIRATION_DATE= 2012-11-26
USE_BZIP2= yes
USE_GMAKE= yes
USE_OCAML= yes
USE_OCAML_FINDLIB=yes
USE_OCAML_WASH= yes
MAKE_JOBS_UNSAFE= yes
DOCS= README
DOCSDIR= ${PREFIX}/share/doc/ocaml/${PORTNAME}
EXAMPLESDIR= ${PREFIX}/share/examples/ocaml/${PORTNAME}
.include <bsd.port.pre.mk>
post-extract:
# For nonstandard prefixes
.if !exists(${OCAMLFIND_DESTDIR})
${MKDIR} ${OCAMLFIND_DESTDIR}
.endif
post-install:
@${FIND} ${OCAMLFIND_DESTDIR}/${PORTNAME} -type f | \
${SED} "s,^${PREFIX}/,," >> ${TMPPLIST}
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/
@${MKDIR} ${EXAMPLESDIR}
@(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${EXAMPLESDIR}/)
@${FIND} ${EXAMPLESDIR}/ ! -type d | \
${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
@${FIND} ${EXAMPLESDIR}/ -type d | ${SORT} -r | \
${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
@${FIND} ${DOCSDIR}/ ! -type d | \
${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
@${FIND} ${DOCSDIR}/ -type d | ${SORT} -r | \
${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
# XXX: temporary workaround for non-standard PREFIX
@${ECHO_CMD} "@unexec rmdir %D/share/doc/ocaml 2>/dev/null || true" \
>> ${TMPPLIST}
@${ECHO_CMD} "@unexec rmdir %D/share/examples/ocaml 2>/dev/null||true" \
>> ${TMPPLIST}
.endif
.include <bsd.port.post.mk>