Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Sep 2013 13:36:24 +0000 (UTC)
From:      Pietro Cerutti <gahr@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r328356 - in head/devel/clig: . files
Message-ID:  <201309261336.r8QDaOLM044233@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gahr
Date: Thu Sep 26 13:36:23 2013
New Revision: 328356
URL: http://svnweb.freebsd.org/changeset/ports/328356

Log:
  - Convert to USES+=tcl
  - Respect PORT_OPTIONS:MDOCS
  - Support STAGE

Added:
  head/devel/clig/files/
  head/devel/clig/files/patch-install   (contents, props changed)
  head/devel/clig/files/patch-makefile   (contents, props changed)
Modified:
  head/devel/clig/Makefile   (contents, props changed)
  head/devel/clig/pkg-plist   (contents, props changed)

Modified: head/devel/clig/Makefile
==============================================================================
--- head/devel/clig/Makefile	Thu Sep 26 13:34:49 2013	(r328355)
+++ head/devel/clig/Makefile	Thu Sep 26 13:36:23 2013	(r328356)
@@ -10,22 +10,21 @@ MASTER_SITES=	http://wsd.iitb.fhg.de/~ge
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Auto-generate an (argc, argv) processor, usage message, and manpage
 
+OPTIONS_DEFINE=	DOCS
+
 NO_BUILD=	yes
-USE_TCL_BUILD=	yes
-USE_TCL=	yes
+USES+=		tcl
 MAKEFILE=	makefile
+MAKE_ENV+=	NOPORTDOCS=${NOPORTDOCS}
 WRKSRC=		${WRKDIR}/${PORTNAME}
+PORTDOCS=	*
 
-MAN1=		clig.1
-MANN=		clig_Commandline.n clig_Description.n clig_Double.n clig_Flag.n \
-		clig_Float.n clig_Int.n clig_Long.n clig_Name.n clig_Rest.n \
-		clig_String.n clig_Usage.n clig_Version.n clig_parseCmdline.n
+.include <bsd.port.options.mk>
 
-NO_STAGE=	yes
 post-patch:
 	@${RM} ${WRKSRC}/example/.cvsignore
 	@${FIND} -d ${WRKSRC} -type d -and -name CVS -exec ${RM} -r {} \;
-	@${REINPLACE_CMD} -e 's|prefix =/usr|prefix=${PREFIX}|; \
+	@${REINPLACE_CMD} -e 's|prefix =/usr|prefix=${STAGEDIR}${PREFIX}|; \
 		s|/usr/bin/tclsh|${TCLSH}|; \
 		s|/doc/|/share/doc/|; \
 		s|-$$(VERSION)||;' \

Added: head/devel/clig/files/patch-install
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/clig/files/patch-install	Thu Sep 26 13:36:23 2013	(r328356)
@@ -0,0 +1,14 @@
+--- install.orig	2000-01-16 18:15:32.000000000 +0100
++++ install	2013-09-26 15:30:00.000000000 +0200
+@@ -64,9 +64,11 @@
+ }
+ 
+ # doc and examples
++if {$env(NOPORTDOCS) eq {}} {
+ file copy -force CHANGES ANNOUNCE index.html README WISHLIST \
+     COPYING-2.0 LICENSE example \
+     $env(DOCDIR)
++}
+ ########################################################################
+ ## Local Variables: ##
+ ## mode:tcl ##

Added: head/devel/clig/files/patch-makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/clig/files/patch-makefile	Thu Sep 26 13:36:23 2013	(r328356)
@@ -0,0 +1,9 @@
+--- makefile.orig	2013-09-26 15:22:07.000000000 +0200
++++ makefile	2013-09-26 15:22:46.000000000 +0200
+@@ -104,4 +104,5 @@
+            M1SUFFIX=$(M1SUFFIX) \
+ 	   MANnDIR=$(build_root)$(MANnDIR) MnFILES="$(MnFILES.f)" \
+ 	   MnSUFFIX=$(MnSUFFIX) \
+-	   DOCDIR=$(build_root)$(DOCDIR) VERSION=$(VERSION)
++	   DOCDIR=$(build_root)$(DOCDIR) VERSION=$(VERSION) \
++	   NOPORTDOCS=${NOPORTDOCS}

Modified: head/devel/clig/pkg-plist
==============================================================================
--- head/devel/clig/pkg-plist	Thu Sep 26 13:34:49 2013	(r328355)
+++ head/devel/clig/pkg-plist	Thu Sep 26 13:36:23 2013	(r328356)
@@ -55,19 +55,21 @@ lib/clig/tcllib/parse.tcl
 lib/clig/tcllib/setSpec.tcl
 lib/clig/tcllib/usage.tcl
 lib/clig/tcllib/version.tcl
-share/doc/clig/ANNOUNCE
-share/doc/clig/CHANGES
-share/doc/clig/COPYING-2.0
-share/doc/clig/LICENSE
-share/doc/clig/README
-share/doc/clig/WISHLIST
-share/doc/clig/example/cmdline.cli
-share/doc/clig/example/main.c
-share/doc/clig/example/makefile
-share/doc/clig/index.html
+man/man1/clig.1.gz
+man/mann/clig_Commandline.n.gz
+man/mann/clig_Description.n.gz
+man/mann/clig_Double.n.gz
+man/mann/clig_Flag.n.gz
+man/mann/clig_Float.n.gz
+man/mann/clig_Int.n.gz
+man/mann/clig_Long.n.gz
+man/mann/clig_Name.n.gz
+man/mann/clig_Rest.n.gz
+man/mann/clig_String.n.gz
+man/mann/clig_Usage.n.gz
+man/mann/clig_Version.n.gz
+man/mann/clig_parseCmdline.n.gz
 @dirrm lib/clig/c
 @dirrm lib/clig/tcl
 @dirrm lib/clig/tcllib
 @dirrm lib/clig
-@dirrm share/doc/clig/example
-@dirrm share/doc/clig



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