ports/sysutils/ledit/Makefile
Muhammad Moinur Rahman c79c88017b
Mk/**ocaml.mk: Convert remaining bsd.ocaml.mk to Uses/ocaml.mk
- Instead of USE_OCAML=yes use USES=ocaml. If empty USES=ocaml implies
  build and run
- Instead of USE_OCAMLFIND_PLIST use USES=ocaml:findplist which also
  implies USES=ocaml:findlib
- Instead of USE_OCAML_CAMLP4 use USES=ocaml:camlp4
- Instead of USE_OCAML_FINDLIB use USES=ocaml:findlib
- Instead of USE_OCAML_LDCONFIG use USES=ocaml:ldconfig
- Instead of USE_OCAML_WASH use USES=ocaml:wash
- Instead of NO_OCAML_BUILDDEPENDS use USES=ocaml:run
- Instead of NO_OCAML_RUNDDEPENDS use USES=ocaml:build
- Instead of USE_OCAML_TK use USES=ocaml:tk which actually implies
  USES=ocaml:tkbuild and USES=ocaml:tkrun
- Instead of NO_OCAMLTK_BUILDDEPENDS use USES=ocaml:tkrun
- Instead of NO_OCAMLTK_RUNDEPENDS use USES=ocaml:tkbuild
- USES=ocaml:dune remains unchanged
- Prepare to add/remove keywords easily

Approved by: mat (portmgr)
Reviewed by: freebsd@dev.thsi.be
Differential Revision: https://reviews.freebsd.org/D48227
2024-12-31 08:41:54 +01:00

39 lines
1.0 KiB
Makefile

PORTNAME= ledit
PORTVERSION= 2.06
CATEGORIES= sysutils
MAINTAINER= k@stereochro.me
COMMENT= Line editor to be used with interactive commands
WWW= http://cristal.inria.fr/~ddr/ledit/
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= camlp5r:devel/ocaml-camlp5 \
${OCAMLFIND_DEPEND}
USES= gmake ocaml
USE_GITHUB= yes
GH_ACCOUNT= chetmurthy
GH_TAGNAME= ledit-${PORTVERSION:S/./-/}
ALL_TARGET= all ledit.opt
MAKE_JOBS_UNSAFE= yes
OPTIONS_DEFINE= DOCS
do-configure:
${REINPLACE_CMD} -e '/^INCLUDES=/s|-I +../camlp-streams|-I +site-lib/camlp-streams|' \
-e '/^CAMLP5=/s|-I +../camlp-streams|-I +site-lib/camlp-streams|' \
${WRKSRC}/Makefile
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/ledit.opt ${STAGEDIR}${PREFIX}/bin/ledit
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/CHANGES ${STAGEDIR}${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
@${MKDIR} ${STAGEDIR}${PREFIX}/share/man/man1
@${INSTALL_MAN} ${WRKSRC}/ledit.1 ${STAGEDIR}${PREFIX}/share/man/man1
.include <bsd.port.mk>