Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Dec 2015 22:50:15 +0000 (UTC)
From:      Pawel Pekala <pawel@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r403569 - head/polish/ekg2
Message-ID:  <201512112250.tBBMoFee034657@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pawel
Date: Fri Dec 11 22:50:15 2015
New Revision: 403569
URL: https://svnweb.freebsd.org/changeset/ports/403569

Log:
  - Switch to USES=shebangfix
  - Convert to options helper

Modified:
  head/polish/ekg2/Makefile

Modified: head/polish/ekg2/Makefile
==============================================================================
--- head/polish/ekg2/Makefile	Fri Dec 11 22:34:20 2015	(r403568)
+++ head/polish/ekg2/Makefile	Fri Dec 11 22:50:15 2015	(r403569)
@@ -70,7 +70,8 @@ PERL_CONFIGURE_WITH=	perl
 PERL_USES=		perl5
 
 PYTHON_CONFIGURE_WITH=	python
-PYTHON_USES=		python
+PYTHON_USES=		python shebangfix
+SHEBANG_FILES=		contrib/python/notify-bubble.py
 
 SQLITE_CONFIGURE_WITH=	sqlite3
 SQLITE_LIB_DEPENDS=	libsqlite3.so:${PORTSDIR}/databases/sqlite3
@@ -80,20 +81,13 @@ UNICODE_CONFIGURE_ENABLE=	unicode
 XOSD_CONFIGURE_WITH=	libxosd
 XOSD_LIB_DEPENDS=	libxosd.so:${PORTSDIR}/misc/xosd
 
-.include <bsd.port.options.mk>
-
 post-patch:
 # needs newer headers for O_NOFOLLOW flag
 	@${REINPLACE_CMD} '/_XOPEN_SOURCE/ s|600|700|' \
 		${WRKSRC}/plugins/xmsg/xmsg.c
-.if ${PORT_OPTIONS:MPYTHON}
-	@${REINPLACE_CMD} -e 's|/usr/bin/python|${PYTHON_CMD}|' \
-		${WRKSRC}/contrib/python/notify-bubble.py
-.endif
 
-.if ${PORT_OPTIONS:MUNICODE}
+post-patch-UNICODE-on:
 	@${REINPLACE_CMD} -e 's|ncursesw/||' ${WRKSRC}/configure \
 		${WRKSRC}/plugins/ncurses/ecurses.h
-.endif
 
 .include <bsd.port.mk>



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