Bug 181778 - Use PORT_OPTIONS:MDOCS instead of NOPORTDOCS in gmime2 and gmime24
Summary: Use PORT_OPTIONS:MDOCS instead of NOPORTDOCS in gmime2 and gmime24
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: William Grzybowski
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-03 12:40 UTC by Alan Hicks
Modified: 2013-09-03 17:10 UTC (History)
0 users

See Also:


Attachments
gmime2.diff (572 bytes, patch)
2013-09-03 12:40 UTC, Alan Hicks
no flags Details | Diff
file.diff (533 bytes, patch)
2013-09-03 12:40 UTC, Alan Hicks
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alan Hicks 2013-09-03 12:40:00 UTC
Use PORT_OPTIONS:MDOCS instead of NOPORTDOCS in gmime2 and gmime24

Fix: Apply patch, no version changes or functionally changes so no revision bump needed
Comment 1 William Grzybowski freebsd_committer freebsd_triage 2013-09-03 13:31:29 UTC
Responsible Changed
From-To: freebsd-ports-bugs->wg

I'll take it.
Comment 2 William Grzybowski freebsd_committer freebsd_triage 2013-09-03 17:03:45 UTC
State Changed
From-To: open->closed

Committed. Thanks!
Comment 3 dfilter service freebsd_committer freebsd_triage 2013-09-03 17:03:49 UTC
Author: wg
Date: Tue Sep  3 16:03:41 2013
New Revision: 326164
URL: http://svnweb.freebsd.org/changeset/ports/326164

Log:
  mail/{gmime2,gmime24}: convert docs to options ng
  
  - NOPORTDOCS -> PORT_OPTIONS:MDOCS [1]
  - Convert to USES gmake
  - Define DOCS option
  
  PR:		ports/181778 [1]
  Submitted by:	Alan Hicks <ahicks p-o.co.uk> (maintainer)

Modified:
  head/mail/gmime2/Makefile
  head/mail/gmime24/Makefile

Modified: head/mail/gmime2/Makefile
==============================================================================
--- head/mail/gmime2/Makefile	Tue Sep  3 15:59:59 2013	(r326163)
+++ head/mail/gmime2/Makefile	Tue Sep  3 16:03:41 2013	(r326164)
@@ -16,9 +16,8 @@ CONFLICTS=	gmime-1.0.* gmime-2.4.*
 
 SLAVEDIRS=	mail/gmime2-sharp
 
-USE_GMAKE=	yes
 USE_GNOME?=	glib20
-USES=		pathfix pkgconfig iconv
+USES=		gmake pathfix pkgconfig iconv
 USE_LDCONFIG=	yes
 GNU_CONFIGURE=	yes
 # www.freebsd.org/cgi/query-pr.cgi?pr=118092
@@ -32,15 +31,19 @@ CPPFLAGS+=	-I${LOCALBASE}/include ${PTHR
 
 LATEST_LINK?=	${PORTNAME}2
 
+OPTIONS_DEFINE=	DOCS
+
 PORTDOCS=	*
 
+.include <bsd.port.options.mk>
+
 post-patch:
 	@${REINPLACE_CMD} -e "s|stdint.h|inttypes.h|" ${WRKSRC}/zentimer.h
 	@${REINPLACE_CMD} -e 's|-DG_DISABLE_DEPRECATED||g' \
 		${WRKSRC}/gmime/Makefile.in
 
 post-install:
-.if !defined(NOPORTDOCS)
+.if  ${PORT_OPTIONS:MDOCS}
 	@${MKDIR} ${DOCSDIR}
 .for i in docs/reference/html/*
 	${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}

Modified: head/mail/gmime24/Makefile
==============================================================================
--- head/mail/gmime24/Makefile	Tue Sep  3 15:59:59 2013	(r326163)
+++ head/mail/gmime24/Makefile	Tue Sep  3 16:03:41 2013	(r326164)
@@ -18,9 +18,8 @@ CONFLICTS=	gmime-1.0.*
 SLAVEDIRS=	mail/gmime2-sharp
 
 DOCSDIR=	${PREFIX}/share/doc/${PORTNAME}24
-USE_GMAKE=	yes
 USE_GNOME?=	glib20
-USES=		pathfix pkgconfig iconv
+USES=		gmake pathfix pkgconfig iconv
 USE_LDCONFIG=	yes
 USE_XZ=		yes
 GNU_CONFIGURE=	yes
@@ -35,14 +34,18 @@ CPPFLAGS+=	-I${LOCALBASE}/include ${PTHR
 
 LATEST_LINK?=	${PORTNAME}24
 
+OPTIONS_DEFINE=	DOCS
+
 PORTDOCS=	*
 
+.include <bsd.port.options.mk>
+
 post-patch:
 	@${REINPLACE_CMD} -e 's|-DG_DISABLE_DEPRECATED||g' \
 		${WRKSRC}/*/Makefile.in
 
 post-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
 	@${MKDIR} ${DOCSDIR}
 .for i in docs/reference/html/*
 	${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"