aboutsummaryrefslogtreecommitdiff
path: root/mail/offlineimap
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2013-06-04 10:32:49 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2013-06-04 10:32:49 +0000
commit7117487ddb38fee864033b869ed6b65f7094a29c (patch)
tree72a8cb20efc8916ac1fe7ec801ddfe0d2d0136bf /mail/offlineimap
parent1f1a5f1e120cc7ffd0b13ccf1e289a157ca7e5dd (diff)
downloadports-7117487ddb38fee864033b869ed6b65f7094a29c.tar.gz
ports-7117487ddb38fee864033b869ed6b65f7094a29c.zip
Notes
Diffstat (limited to 'mail/offlineimap')
-rw-r--r--mail/offlineimap/Makefile23
1 files changed, 10 insertions, 13 deletions
diff --git a/mail/offlineimap/Makefile b/mail/offlineimap/Makefile
index 9caa033c592c..853dad58b421 100644
--- a/mail/offlineimap/Makefile
+++ b/mail/offlineimap/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: offlineimap
-# Date created: 08 Aug 2002
-# Whom: nbm
-#
+# Created by: nbm
# $FreeBSD$
-#
PORTNAME= offlineimap
DISTVERSION= 6.5.4
@@ -22,7 +18,8 @@ LICENSE_COMB= dual
LICENSE_FILE_GPLv2=${WRKSRC}/COPYING
-OPTIONS= HTMLDOCS "Generate HTML documentation" Off
+OPTIONS_DEFINE= HTMLDOCS EXAMPLES
+HTMLDOCS_DESC= Generate HTML documentation
WRKSRC= ${WRKDIR}/${GITHUB_USER}-${PORTNAME}-${GITHUB_HASH}
SUB_FILES= pkg-message
@@ -53,20 +50,20 @@ EXAMPLE_DIRS= ${EXAMPLE_FILES:H:O:u:N.}
.include <bsd.port.options.mk>
-.if !defined(NOPORTDOCS) && defined(WITH_HTMLDOCS)
+.if ${PORT_OPTIONS:MDOCS} && ${PORT_OPTIONS:MHTMLDOCS}
BUILD_DEPENDS+= rst2html:${PORTSDIR}/textproc/py-docutils
DOC_FILES:= ${DOC_FILES} ${DOC_FILES:M*.rst:S/.rst$/.html/}
.endif
# This is needed for pkg-message.in
-.if defined(NOPORTEXAMPLES)
-SUB_LIST+= PORTEXAMPLES="@comment "
-.else
+.if ${PORT_OPTIONS:MEXAMPLES}
SUB_LIST+= PORTEXAMPLES=""
+.else
+SUB_LIST+= PORTEXAMPLES="@comment "
.endif
post-build:
-.if !defined(NOPORTDOCS) && defined(WITH_HTMLDOCS)
+.if ${PORT_OPTIONS:MDOCS} && ${PORT_OPTIONS:MHTMLDOCS}
.for r in ${DOC_FILES:M*.rst}
@${ECHO} "Translating ${r} to HTML..."
@rst2html ${WRKSRC}/${r} ${WRKSRC}/${r:R}.html
@@ -74,7 +71,7 @@ post-build:
.endif
post-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
@for i in ${DOC_DIRS}; do \
${MKDIR} ${DOCSDIR}/$$i; \
@@ -84,7 +81,7 @@ post-install:
${INSTALL_DATA} $$i ${DOCSDIR}/$$i; \
done
.endif
-.if !defined(NOPORTEXAMPLES)
+.if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${EXAMPLESDIR}
@for i in ${EXAMPLE_DIRS}; do \
${MKDIR} ${EXAMPLESDIR}/$$i; \