Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Oct 2012 13:59:42 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r305586 - head/databases/kyotocabinet
Message-ID:  <201210091359.q99DxgcD016868@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Tue Oct  9 13:59:41 2012
New Revision: 305586
URL: http://svn.freebsd.org/changeset/ports/305586

Log:
  - Convert to new options framework
  - Cleanup Makefile header

Modified:
  head/databases/kyotocabinet/Makefile   (contents, props changed)

Modified: head/databases/kyotocabinet/Makefile
==============================================================================
--- head/databases/kyotocabinet/Makefile	Tue Oct  9 13:59:13 2012	(r305585)
+++ head/databases/kyotocabinet/Makefile	Tue Oct  9 13:59:41 2012	(r305586)
@@ -1,9 +1,5 @@
-# New ports collection makefile for:	kyotocabinet
-# Date created:		22 April 2010
-# Whom:			Akinori MUSHA aka knu <knu@idaemons.org>
-#
+# Created by: Akinori MUSHA aka knu <knu@idaemons.org>
 # $FreeBSD$
-#
 
 PORTNAME=	kyotocabinet
 PORTVERSION=	1.2.76
@@ -16,6 +12,8 @@ COMMENT=	A straightforward implementatio
 
 LICENSE=	GPLv3
 
+OPTIONS_DEFINE=	DOCS
+
 GNU_CONFIGURE=	yes
 MAKE_ARGS=	PCDIR="${PREFIX}/libdata/pkgconfig"
 MAKE_JOBS_SAFE=	yes
@@ -56,12 +54,12 @@ BROKEN=		Does not link on powerpc
 .endif
 
 post-patch:
-.if defined(NOPORTDOCS)
+.if empty(PORT_OPTIONS:MDOCS)
 	@${REINPLACE_CMD} -e '/DOCDIR/d' ${WRKSRC}/Makefile.in
 .endif
 
 post-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
 	${FIND} ${DOCSDIR}/ -type d -exec ${CHMOD} 755 '{}' \;
 	${FIND} ${DOCSDIR}/ -type f -exec ${CHMOD} 444 '{}' \;
 	${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}/



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