From 558b494dda60ff270c5ab2b6c90377262cfbfee5 Mon Sep 17 00:00:00 2001 From: "Vanilla I. Shu" Date: Wed, 2 Jul 2014 10:04:59 +0000 Subject: [PATCH] 1: Stagify. 2: use options helper. --- www/erwn/Makefile | 10 +++++----- www/erwn/pkg-plist | 1 + 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/www/erwn/Makefile b/www/erwn/Makefile index b21b015e8c0f..010abd30ba1d 100644 --- a/www/erwn/Makefile +++ b/www/erwn/Makefile @@ -14,18 +14,18 @@ COMMENT= Simple GTK+-2 HTML editor USES= pathfix pkgconfig gmake USE_GNOME= gnomeprefix gtksourceview gtkhtml3 GNU_CONFIGURE= yes +OPTIONS_DEFINE= DOCS -MAN1= erwin.1 +.include -NO_STAGE= yes post-patch: @${REINPLACE_CMD} -e "s|gtkhtml-3.6|gtkhtml-3.14|g" \ ${WRKSRC}/configure post-install: -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} +.if ${PORT_OPTIONS:MDOCS} + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} .endif .include diff --git a/www/erwn/pkg-plist b/www/erwn/pkg-plist index 6ea2bd7b1534..e1da08246f70 100644 --- a/www/erwn/pkg-plist +++ b/www/erwn/pkg-plist @@ -1,4 +1,5 @@ bin/erwin +man/man1/erwin.1.gz share/erwin/bold.svg share/erwin/bold1.svg share/erwin/erwin-highlighting.xml