svn commit: r305587 - head/databases/kyototycoon
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Tue Oct 9 14:00:35 UTC 2012
Author: sunpoet
Date: Tue Oct 9 14:00:34 2012
New Revision: 305587
URL: http://svn.freebsd.org/changeset/ports/305587
Log:
- Add LICENSE
- Convert to new options framework
- Cleanup Makefile header
Modified:
head/databases/kyototycoon/Makefile (contents, props changed)
Modified: head/databases/kyototycoon/Makefile
==============================================================================
--- head/databases/kyototycoon/Makefile Tue Oct 9 13:59:41 2012 (r305586)
+++ head/databases/kyototycoon/Makefile Tue Oct 9 14:00:34 2012 (r305587)
@@ -1,9 +1,5 @@
-# New ports collection makefile for: kyototycoon
-# Date created: 2011-10-04
-# Whom: Sunpoet Po-Chuan Hsieh <sunpoet at FreeBSD.org>
-#
+# Created by: Sunpoet Po-Chuan Hsieh <sunpoet at FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= kyototycoon
PORTVERSION= 0.9.56
@@ -14,8 +10,12 @@ MASTER_SITES= http://fallabs.com/${PORTN
MAINTAINER= sunpoet at FreeBSD.org
COMMENT= A handy cache/storage server
+LICENSE= GPLv3
+
LIB_DEPENDS= kyotocabinet:${PORTSDIR}/databases/kyotocabinet
+OPTIONS_DEFINE= DOCS
+
CONFIGURE_ARGS= --enable-profile --enable-uyield
GNU_CONFIGURE= yes
MAKE_ARGS= PCDIR="${PREFIX}/libdata/pkgconfig"
@@ -32,8 +32,10 @@ MAN1= ktremotemgr.1 \
ktutilserv.1 \
ktutiltest.1
+.include <bsd.port.options.mk>
+
post-patch:
-.if defined(NOPORTDOCS)
+.if empty(PORT_OPTIONS:MDOCS)
@${REINPLACE_CMD} -e '/DOCDIR/d' ${WRKSRC}/Makefile.in
.endif
@@ -41,7 +43,7 @@ post-configure:
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|' ${WRKSRC}/Makefile
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}/
More information about the svn-ports-head
mailing list