From 5eac2a97659742a95de76dfce98d0e8c951d0a84 Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Thu, 2 Jun 2016 09:03:49 +0000 Subject: [PATCH] - Add LICENSE - Switch to options helpers - Add WWW: --- devel/ocaml-sem/Makefile | 12 ++++++++---- devel/ocaml-sem/pkg-descr | 2 ++ 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/devel/ocaml-sem/Makefile b/devel/ocaml-sem/Makefile index a7f06ebbad6b..279df137df71 100644 --- a/devel/ocaml-sem/Makefile +++ b/devel/ocaml-sem/Makefile @@ -12,6 +12,9 @@ PKGNAMEPREFIX= ocaml- MAINTAINER= ports@FreeBSD.org COMMENT= POSIX semaphores for OCaml +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + USES= gmake tar:bzip2 USE_OCAML= yes USE_OCAML_LDCONFIG= yes @@ -21,15 +24,16 @@ MAKE_ENV= OCAML_LIB_INSTALL="${PREFIX}/lib/ocaml/site-lib/sem" \ MAKE_JOBS_UNSAFE= yes ALL_TARGET= all DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME} -OPTIONS_DEFINE= DOCS .if !defined(WITH_CUSTOM) MAKE_ENV+= NO_CUSTOM=y .endif -post-install: +OPTIONS_DEFINE= DOCS + +post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} - ${CP} -R ${WRKSRC}/doc/ ${STAGEDIR}${DOCSDIR} - ${CP} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} + cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} .include diff --git a/devel/ocaml-sem/pkg-descr b/devel/ocaml-sem/pkg-descr index 96675f8238d9..0eed492c11d5 100644 --- a/devel/ocaml-sem/pkg-descr +++ b/devel/ocaml-sem/pkg-descr @@ -1,2 +1,4 @@ POSIX semaphores for OCaml. The library mimics things found under "man sem" and "man sem_open". + +WWW: http://ocaml-sem.sourceforge.net/