diff options
author | tota <tota@FreeBSD.org> | 2012-06-12 23:10:39 +0800 |
---|---|---|
committer | tota <tota@FreeBSD.org> | 2012-06-12 23:10:39 +0800 |
commit | d1796494df0845cc9e92f702db162733ce27fb5c (patch) | |
tree | e4b567ddd0a1e44b73a00405492126c3829e3883 /net-im | |
parent | e4e4b863f13a03625dd8c33344543b1b2b57bc80 (diff) | |
download | freebsd-ports-gnome-d1796494df0845cc9e92f702db162733ce27fb5c.tar.gz freebsd-ports-gnome-d1796494df0845cc9e92f702db162733ce27fb5c.tar.zst freebsd-ports-gnome-d1796494df0845cc9e92f702db162733ce27fb5c.zip |
- Convert to new options framework
Diffstat (limited to 'net-im')
-rw-r--r-- | net-im/mikutter/Makefile | 19 | ||||
-rw-r--r-- | net-im/mikutter003/Makefile | 19 |
2 files changed, 22 insertions, 16 deletions
diff --git a/net-im/mikutter/Makefile b/net-im/mikutter/Makefile index 6ac10ff6192b..987e7676c0b1 100644 --- a/net-im/mikutter/Makefile +++ b/net-im/mikutter/Makefile @@ -45,19 +45,22 @@ SUB_LIST= RUBY_SITELIBDIR=${RUBY_SITELIBDIR} PORTDOCS= README PORTSCOUT= limit:^0\.0\.3\.[0-9]* -OPTIONS= NOTIFY "notify-send support" on \ - HTTPCLIENT "httpclient support" on +OPTIONS_DEFINE= HTTPCLIENT NOTIFY +HTTPCLIENT_DESC= httpclient support +NOTIFY_DESC= notify-send support -.include <bsd.port.pre.mk> +OPTIONS_DEFAULT= ${OPTIONS_DEFINE} -.if defined(WITH_NOTIFY) -RUN_DEPENDS+= notify-send:${PORTSDIR}/devel/libnotify -.endif +.include <bsd.port.options.mk> -.if defined(WITH_HTTPCLIENT) +.if ${PORT_OPTIONS:MHTTPCLIENT} RUN_DEPENDS+= rubygem-httpclient>=0:${PORTSDIR}/www/rubygem-httpclient .endif +.if ${PORT_OPTIONS:MNOTIFY} +RUN_DEPENDS+= notify-send:${PORTSDIR}/devel/libnotify +.endif + post-patch: @${REINPLACE_CMD} -e "50s|chdir\(.*\)|chdir\('${RUBY_SITELIBDIR}/mikutter/core'\)|" \ ${WRKSRC}/mikutter.rb @@ -89,4 +92,4 @@ x-generate-plist: ${ECHO} @exec ${MKDIR:S|/bin/||} %D/%%RUBY_SITELIBDIR%%/mikutter/core/hatsunelisp >> pkg-plist.new ${FIND} ${RUBY_SITELIBDIR}/mikutter -type d -depth | ${SORT} -r | ${SED} -e 's,${RUBY_SITELIBDIR},@dirrm %%RUBY_SITELIBDIR%%,' >> pkg-plist.new -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/net-im/mikutter003/Makefile b/net-im/mikutter003/Makefile index 6ac10ff6192b..987e7676c0b1 100644 --- a/net-im/mikutter003/Makefile +++ b/net-im/mikutter003/Makefile @@ -45,19 +45,22 @@ SUB_LIST= RUBY_SITELIBDIR=${RUBY_SITELIBDIR} PORTDOCS= README PORTSCOUT= limit:^0\.0\.3\.[0-9]* -OPTIONS= NOTIFY "notify-send support" on \ - HTTPCLIENT "httpclient support" on +OPTIONS_DEFINE= HTTPCLIENT NOTIFY +HTTPCLIENT_DESC= httpclient support +NOTIFY_DESC= notify-send support -.include <bsd.port.pre.mk> +OPTIONS_DEFAULT= ${OPTIONS_DEFINE} -.if defined(WITH_NOTIFY) -RUN_DEPENDS+= notify-send:${PORTSDIR}/devel/libnotify -.endif +.include <bsd.port.options.mk> -.if defined(WITH_HTTPCLIENT) +.if ${PORT_OPTIONS:MHTTPCLIENT} RUN_DEPENDS+= rubygem-httpclient>=0:${PORTSDIR}/www/rubygem-httpclient .endif +.if ${PORT_OPTIONS:MNOTIFY} +RUN_DEPENDS+= notify-send:${PORTSDIR}/devel/libnotify +.endif + post-patch: @${REINPLACE_CMD} -e "50s|chdir\(.*\)|chdir\('${RUBY_SITELIBDIR}/mikutter/core'\)|" \ ${WRKSRC}/mikutter.rb @@ -89,4 +92,4 @@ x-generate-plist: ${ECHO} @exec ${MKDIR:S|/bin/||} %D/%%RUBY_SITELIBDIR%%/mikutter/core/hatsunelisp >> pkg-plist.new ${FIND} ${RUBY_SITELIBDIR}/mikutter -type d -depth | ${SORT} -r | ${SED} -e 's,${RUBY_SITELIBDIR},@dirrm %%RUBY_SITELIBDIR%%,' >> pkg-plist.new -.include <bsd.port.post.mk> +.include <bsd.port.mk> |