Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Oct 2012 09:57:19 +0000 (UTC)
From:      Boris Samorodov <bsam@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r305348 - head/comms/gammu
Message-ID:  <201210060957.q969vJdZ039085@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bsam
Date: Sat Oct  6 09:57:19 2012
New Revision: 305348
URL: http://svn.freebsd.org/changeset/ports/305348

Log:
  . convert to new options style;  [1]
  . trim headers;
  . place post-patch: target before post-install: one.
  
  Spotted by:	bapt (at freebsd-ports@)  [1]

Modified:
  head/comms/gammu/Makefile

Modified: head/comms/gammu/Makefile
==============================================================================
--- head/comms/gammu/Makefile	Sat Oct  6 09:50:41 2012	(r305347)
+++ head/comms/gammu/Makefile	Sat Oct  6 09:57:19 2012	(r305348)
@@ -1,9 +1,5 @@
-# New ports collection makefile for:   gammu
-# Date created:        12 december 2003
-# Whom:                Kirill Bezzubets <kirill@solaris.ru>
-#
+# Created by: Kirill Bezzubets <kirill@solaris.ru>
 # $FreeBSD$
-#
 
 PORTNAME=	gammu
 PORTVERSION=	1.32.0
@@ -18,7 +14,8 @@ RUN_DEPENDS=	cdialog:${PORTSDIR}/devel/c
 
 CONFLICTS=	gammu-devel-[1-9]* gammu-python-[1-9]*
 
-OPTIONS=	BASH "Install bash completion script" off
+OPTIONS_DEFINE=	BASHCS
+BASHCS_DESC=	BASH completion script
 
 CMAKE_ARGS+=	-DINSTALL_LIBDATA_DIR=${LOCALBASE}/libdata
 
@@ -29,33 +26,19 @@ USE_GNOME=	glib20
 
 PORTDOCS=	*
 
-.if defined(NOPORTDOCS)
-CMAKE_ARGS+=	-DINSTALL_DOC=OFF -DINSTALL_PHP_EXAMPLES=OFF -DINSTALL_MEDIA=OFF \
-		-DINSTALL_GNAPPLET=OFF
-.else
-MAN1=		gammu.1 gammu-config.1 jadmaker.1 gammu-smsd.1 gammu-smsd-inject.1 \
-		gammu-smsd-monitor.1 gammu-detect.1
-MAN5=		gammu-backup.5 gammu-smsbackup.5 gammu-smsdrc.5 gammurc.5
-MAN7=		gammu-smsd-files.7 gammu-smsd-mysql.7 \
-		gammu-smsd-odbc.7 gammu-smsd-pgsql.7 \
-		gammu-smsd-dbi.7 gammu-smsd-tables.7 gammu-smsd-null.7 \
-		gammu-smsd-run.7 gammu-smsd-sql.7
-
-.endif
+post-patch:
+	@${REINPLACE_CMD} -i '' -e 's:bash:sh:' -e 's:dialog:cdialog:' ${WRKSRC}/utils/gammu-config
+	@${REINPLACE_CMD} -i '' -e 's:/etc/bash_completion.d:${PREFIX}/etc/bash_completion.d:' \
+		${WRKSRC}/contrib/CMakeLists.txt
 
 post-install:
 .for opt in -Qold -O
 	${PYTHON_CMD} ${opt} -m compileall -l ${PYTHONPREFIX_SITELIBDIR}/gammu
 .endfor
 
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
 
-post-patch:
-	@${REINPLACE_CMD} -i '' -e 's:bash:sh:' -e 's:dialog:cdialog:' ${WRKSRC}/utils/gammu-config
-	@${REINPLACE_CMD} -i '' -e 's:/etc/bash_completion.d:${PREFIX}/etc/bash_completion.d:' \
-		${WRKSRC}/contrib/CMakeLists.txt
-
-.if defined(WITH_BASH)
+.if ${PORT_OPTIONS:MBASHCS}
 BUILD_DEPENDS+=	bash:${PORTSDIR}/shells/bash
 RUN_DEPENDS+=	bash:${PORTSDIR}/shells/bash
 PLIST_FILES+=	etc/bash_completion.d/gammu
@@ -64,4 +47,17 @@ PLIST_DIRSTRY+=	etc/bash_completion.d
 EXTRA_PATCHES+=	${FILESDIR}/extra-patch-contrib_CMakeLists.txt
 .endif
 
-.include <bsd.port.post.mk>
+.if ! ${PORT_OPTIONS:MDOCS}
+CMAKE_ARGS+=	-DINSTALL_DOC=OFF -DINSTALL_PHP_EXAMPLES=OFF -DINSTALL_MEDIA=OFF \
+		-DINSTALL_GNAPPLET=OFF
+.else
+MAN1=		gammu.1 gammu-config.1 jadmaker.1 gammu-smsd.1 gammu-smsd-inject.1 \
+		gammu-smsd-monitor.1 gammu-detect.1
+MAN5=		gammu-backup.5 gammu-smsbackup.5 gammu-smsdrc.5 gammurc.5
+MAN7=		gammu-smsd-files.7 gammu-smsd-mysql.7 \
+		gammu-smsd-odbc.7 gammu-smsd-pgsql.7 \
+		gammu-smsd-dbi.7 gammu-smsd-tables.7 gammu-smsd-null.7 \
+		gammu-smsd-run.7 gammu-smsd-sql.7
+.endif
+
+.include <bsd.port.mk>



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