Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Jan 2014 11:57:13 +0000 (UTC)
From:      Mathieu Arnold <mat@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r341161 - in head/textproc: c2html c2html/files cbedic cdif chm2pdf code2html codespell confetti csv2latex csv2xml csvdiff ctpp2
Message-ID:  <201401261157.s0QBvDHA011101@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mat
Date: Sun Jan 26 11:57:13 2014
New Revision: 341161
URL: http://svnweb.freebsd.org/changeset/ports/341161
QAT: https://qat.redports.org/buildarchive/r341161/

Log:
  - Convert to staging
  - Add license
  - Rename patch to follow makepatch naming
  - Use new options knobs
  
  Sponsored by:	Absolight

Added:
  head/textproc/c2html/files/patch-Makefile.in
     - copied, changed from r341071, head/textproc/c2html/files/patch-aa
Deleted:
  head/textproc/c2html/files/patch-aa
  head/textproc/c2html/pkg-plist
  head/textproc/cbedic/pkg-plist
  head/textproc/cdif/pkg-plist
  head/textproc/confetti/pkg-plist
Modified:
  head/textproc/c2html/Makefile
  head/textproc/cbedic/Makefile
  head/textproc/cdif/Makefile
  head/textproc/chm2pdf/Makefile
  head/textproc/code2html/Makefile
  head/textproc/codespell/Makefile
  head/textproc/confetti/Makefile
  head/textproc/csv2latex/Makefile
  head/textproc/csv2xml/Makefile
  head/textproc/csvdiff/Makefile
  head/textproc/ctpp2/Makefile
  head/textproc/ctpp2/pkg-plist

Modified: head/textproc/c2html/Makefile
==============================================================================
--- head/textproc/c2html/Makefile	Sun Jan 26 10:29:40 2014	(r341160)
+++ head/textproc/c2html/Makefile	Sun Jan 26 11:57:13 2014	(r341161)
@@ -10,17 +10,17 @@ MASTER_SITE_SUBDIR=	apps/www/converters
 MAINTAINER=		mkamm@gmx.net
 COMMENT=	C-language sources to HTML converter
 
+LICENSE=	GPLv2
+
 USE_AUTOTOOLS=	autoconf213
 
-MAN1=			c2html.1
+PLIST_FILES=	bin/c2html man/man1/c2html.1.gz
+PORTDOCS=	AUTHORS NEWS README
 
-NO_STAGE=	yes
 post-install:
-.if !defined(NOPORTDOCS)
-	@${MKDIR} ${DOCSDIR}
-.for file in AUTHORS NEWS README
-	${INSTALL_MAN} ${WRKSRC}/${file} ${DOCSDIR}
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+.for file in ${PORTDOCS}
+	${INSTALL_MAN} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
 .endfor
-.endif
 
 .include <bsd.port.mk>

Copied and modified: head/textproc/c2html/files/patch-Makefile.in (from r341071, head/textproc/c2html/files/patch-aa)
==============================================================================
--- head/textproc/c2html/files/patch-aa	Sat Jan 25 18:11:42 2014	(r341071, copy source)
+++ head/textproc/c2html/files/patch-Makefile.in	Sun Jan 26 11:57:13 2014	(r341161)
@@ -1,5 +1,5 @@
---- Makefile.in.orig	Sat Apr 15 17:16:25 2000
-+++ Makefile.in	Sun Apr 23 15:53:23 2000
+--- ./Makefile.in.orig	2006-03-28 10:26:30.000000000 +0000
++++ ./Makefile.in	2014-01-26 10:48:24.000000000 +0000
 @@ -27,7 +27,7 @@
  # for gzip because otherwise the load on the web server
  # grows without having big benefits.
@@ -25,10 +25,12 @@
 -install: $(TARGET) install-doc
 +install: $(TARGET)
  	@echo "Installing" $(TARGET) "to" $(bindir)
- 	-mkdir -p $(bindir)
- 	$(INSTALL_PROGRAM) $(TARGET) $(bindir)/$(TARGET)
-+	-mkdir -p $(man1dir)
-+	$(INSTALL_DATA) $(srcdir)/$(MANPAGE) $(man1dir)/$(MANPAGE)
+-	-mkdir -p $(bindir)
+-	$(INSTALL_PROGRAM) $(TARGET) $(bindir)/$(TARGET)
++	-mkdir -p $(DESTDIR)$(bindir)
++	$(INSTALL_PROGRAM) $(TARGET) $(DESTDIR)$(bindir)/$(TARGET)
++	-mkdir -p $(DESTDIR)$(man1dir)
++	$(INSTALL_DATA) $(srcdir)/$(MANPAGE) $(DESTDIR)$(man1dir)/$(MANPAGE)
  
  install-strip: $(TARGET) install-doc
  	@echo "Installing" $(TARGET) "to" $(bindir)

Modified: head/textproc/cbedic/Makefile
==============================================================================
--- head/textproc/cbedic/Makefile	Sun Jan 26 10:29:40 2014	(r341160)
+++ head/textproc/cbedic/Makefile	Sun Jan 26 11:57:13 2014	(r341161)
@@ -10,15 +10,18 @@ MASTER_SITES=	SF/kbedic/CBE%20Dictionary
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	An English-to-Bulgarian and Bulgarian-to-English dictionary
 
+LICENSE=	GPLv2
+
 RUN_DEPENDS=	${DICT_DIR}/${DICT_CHECK}:${PORTSDIR}/textproc/bedic-data
 
 DICT_CHECK?=	buleng.dat
 DICT_DIR?=	${LOCALBASE}/share
 
+USES=	gmake
 GNU_CONFIGURE=	yes
-USE_GMAKE=	yes
 
 CONFIGURE_ARGS=	--datadir=${DICT_DIR}
 
-NO_STAGE=	yes
+PLIST_FILES=	bin/cbedic
+
 .include <bsd.port.mk>

Modified: head/textproc/cdif/Makefile
==============================================================================
--- head/textproc/cdif/Makefile	Sun Jan 26 10:29:40 2014	(r341160)
+++ head/textproc/cdif/Makefile	Sun Jan 26 11:57:13 2014	(r341161)
@@ -16,7 +16,8 @@ USES=		perl5
 NO_WRKSUBDIR=		yes
 NO_BUILD=		yes
 
-NO_STAGE=	yes
+PLIST_FILES=	bin/cdif
+
 do-extract:
 	${MKDIR} ${WRKSRC}
 	${CP} ${DISTDIR}/${DISTNAME} ${WRKSRC}/${DISTNAME}.dist
@@ -26,6 +27,6 @@ do-patch:
 		< ${WRKSRC}/${DISTNAME}.dist > ${WRKSRC}/${DISTNAME}
 
 do-install:
-	${INSTALL_SCRIPT} ${WRKSRC}/${DISTNAME} ${PREFIX}/bin/cdif
+	${INSTALL_SCRIPT} ${WRKSRC}/${DISTNAME} ${STAGEDIR}${PREFIX}/bin/cdif
 
 .include <bsd.port.mk>

Modified: head/textproc/chm2pdf/Makefile
==============================================================================
--- head/textproc/chm2pdf/Makefile	Sun Jan 26 10:29:40 2014	(r341160)
+++ head/textproc/chm2pdf/Makefile	Sun Jan 26 11:57:13 2014	(r341161)
@@ -10,6 +10,8 @@ MASTER_SITES=	${MASTER_SITE_GOOGLE_CODE}
 MAINTAINER=	kevlo@FreeBSD.org
 COMMENT=	A Python script that converts CHM files into PDF files
 
+LICENSE=	GPLv2
+
 RUN_DEPENDS=	htmldoc:${PORTSDIR}/textproc/htmldoc \
 		${PYTHON_SITELIBDIR}/chm/chm.py:${PORTSDIR}/textproc/pychm
 
@@ -19,5 +21,4 @@ PYDISTUTILS_PKGVERSION=	0.9
 
 PLIST_FILES=	bin/chm2pdf
 
-NO_STAGE=	yes
 .include <bsd.port.mk>

Modified: head/textproc/code2html/Makefile
==============================================================================
--- head/textproc/code2html/Makefile	Sun Jan 26 10:29:40 2014	(r341160)
+++ head/textproc/code2html/Makefile	Sun Jan 26 11:57:13 2014	(r341161)
@@ -7,7 +7,6 @@ CATEGORIES=	textproc
 MASTER_SITES=	SF \
 		http://www.palfrader.org/code2html/all/
 
-
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Sourcecode to HTML converter
 
@@ -15,10 +14,8 @@ NO_BUILD=	yes
 USES=		perl5
 USE_PERL5=	run
 
-MAN1=		code2html.1
-PLIST_FILES=	bin/code2html
+PLIST_FILES=	bin/code2html man/man1/code2html.1.gz
 
-NO_STAGE=	yes
 do-configure:
 	@${REINPLACE_CMD} \
 		-e 's|/usr/bin/bzip2|${BZIP2_CMD}|' \
@@ -29,7 +26,7 @@ do-configure:
 		${WRKSRC}/code2html.1
 
 do-install:
-	${INSTALL_SCRIPT} ${WRKSRC}/code2html ${PREFIX}/bin
-	${INSTALL_MAN} ${WRKSRC}/code2html.1 ${PREFIX}/man/man1
+	${INSTALL_SCRIPT} ${WRKSRC}/code2html ${STAGEDIR}${PREFIX}/bin
+	${INSTALL_MAN} ${WRKSRC}/code2html.1 ${STAGEDIR}${PREFIX}/man/man1
 
 .include <bsd.port.mk>

Modified: head/textproc/codespell/Makefile
==============================================================================
--- head/textproc/codespell/Makefile	Sun Jan 26 10:29:40 2014	(r341160)
+++ head/textproc/codespell/Makefile	Sun Jan 26 11:57:13 2014	(r341161)
@@ -17,34 +17,29 @@ USE_PYTHON=	3.1+
 USE_PYTHON_RUN=	yes
 USE_XZ=		yes
 
+OPTIONS_DEFINE=	DOCS EXAMPLES
+
 PLIST_FILES=	bin/codespell
 PORTDOCS=	COPYING README TODO
 PORTEXAMPLES=	*
 
 SUB_FILES+=	pkg-message
 
-NO_STAGE=	yes
-.include <bsd.port.pre.mk>
-
 do-build:
 	${REINPLACE_CMD} 's|#!/usr/bin/env python3|#!${LOCALBASE}/bin/${PYTHON_VERSION}|' \
 		${WRKSRC}/codespell.py
 
 do-install:
-	${INSTALL_SCRIPT} ${WRKSRC}/codespell.py ${PREFIX}/bin/codespell
+	${INSTALL_SCRIPT} ${WRKSRC}/codespell.py ${STAGEDIR}${PREFIX}/bin/codespell
 
-post-install:
-.if !defined(NOPORTDOCS)
-	@${MKDIR} ${DOCSDIR}
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 . for i in ${PORTDOCS}
-	@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
 . endfor
-.endif
 
 .for i in data example
-	@${MKDIR} ${EXAMPLESDIR}/${i}
-	@${INSTALL_DATA} ${WRKSRC}/${i}/* ${EXAMPLESDIR}/${i}
+	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/${i}
+	${INSTALL_DATA} ${WRKSRC}/${i}/* ${STAGEDIR}${EXAMPLESDIR}/${i}
 .endfor
-	@${CAT} ${PKGMESSAGE}
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>

Modified: head/textproc/confetti/Makefile
==============================================================================
--- head/textproc/confetti/Makefile	Sun Jan 26 10:29:40 2014	(r341160)
+++ head/textproc/confetti/Makefile	Sun Jan 26 11:57:13 2014	(r341161)
@@ -12,33 +12,23 @@ COMMENT=	Configuration file parser gener
 BUILD_DEPENDS=	${LOCALBASE}/bin/flex:${PORTSDIR}/textproc/flex
 
 USE_BZIP2=	yes
-USE_GMAKE=	yes
-USES=		bison perl5
+USES=		bison perl5 gmake
 DATE=		20120801
 MAKE_ARGS+=	FLEX=${LOCALBASE}/bin/flex
 MAKE_JOBS_UNSAFE=yes
 
 OPTIONS_DEFINE=	EXAMPLES
 
-NO_STAGE=	yes
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MEXAMPLES}
-PLIST_SUB+=	EXAMPLES=""
-.else
-PLIST_SUB+=	EXAMPLES="@comment "
-.endif
+PLIST_FILES=	bin/confetti
+PORTEXAMPLES=	*
 
 post-patch:
 	@${REINPLACE_CMD} -e 's|CC=|CC?=|' -e 's|CFLAGS=|CFLAGS?=|' \
 		${WRKSRC}/Makefile
 
 do-install:
-	${INSTALL} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/${PORTNAME}
-post-install:
-.if ${PORT_OPTIONS:MEXAMPLES}
-	${MKDIR} ${EXAMPLESDIR}
-	cd ${WRKSRC} && ${COPYTREE_SHARE} example ${EXAMPLESDIR}
-.endif
+	${INSTALL} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
+	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+	cd ${WRKSRC}/example && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
 
 .include <bsd.port.mk>

Modified: head/textproc/csv2latex/Makefile
==============================================================================
--- head/textproc/csv2latex/Makefile	Sun Jan 26 10:29:40 2014	(r341160)
+++ head/textproc/csv2latex/Makefile	Sun Jan 26 11:57:13 2014	(r341161)
@@ -11,25 +11,26 @@ DISTNAME=	${PORTNAME}_${PORTVERSION}.ori
 MAINTAINER=	wen@FreeBSD.org
 COMMENT=	Converts a well formed csv file to a LaTeX document
 
+LICENSE=	GPLv2
+
 WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
 PLIST_FILES=	bin/csv2latex
 
-NO_STAGE=	yes
 do-build:
 	${CC} ${CFLAGS} -o ${WRKSRC}/${PORTNAME} ${WRKSRC}/${PORTNAME}.c
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
+	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
 
 .if ( defined(WITH_MAN) &&  !defined(NO_INSTALL_MANPAGES) )
 BUILD_DEPENDS +=	docbook-to-man:${PORTSDIR}/textproc/docbook-to-man
-MAN1=	${PORTNAME}.1
+PLIST_FILES+=	man/man1/${PORTNAME}.1.gz
 
 post-build:
-	docbook-to-man ${WRKSRC}/${PORTNAME}.sgml > ${WRKSRC}/${MAN1}
+	docbook-to-man ${WRKSRC}/${PORTNAME}.sgml > ${WRKSRC}/${PORTNAME}.1
 
 post-install:
-	${INSTALL_MAN} ${WRKSRC}/${MAN1} ${MAN1PREFIX}/man/man1
+	${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
 
 .endif
 

Modified: head/textproc/csv2xml/Makefile
==============================================================================
--- head/textproc/csv2xml/Makefile	Sun Jan 26 10:29:40 2014	(r341160)
+++ head/textproc/csv2xml/Makefile	Sun Jan 26 11:57:13 2014	(r341161)
@@ -11,16 +11,16 @@ COMMENT=	A simple but effective csv to x
 
 USE_BZIP2=	yes
 
-MAN1=		csv2xml.1
-MANCOMPRESSED=	yes
-PLIST_FILES=	bin/csv2xml
+PLIST_FILES=	bin/csv2xml man/man1/csv2xml.1.gz
 MAKE_ARGS=	FLAGS="${CXXFLAGS}"
 
-NO_STAGE=	yes
 post-patch:
-	@${REINPLACE_CMD} -e 's,/usr/local,${PREFIX},g' \
-		-e 's/^\(COMPILER[^g]*\)g++$$/\1${CXX}/' \
+	@${REINPLACE_CMD} -e 's/^\(COMPILER[^g]*\)g++$$/\1${CXX}/' \
 		${WRKSRC}/src/Makefile \
 		${WRKSRC}/man/Makefile
 
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/src/csv2xml ${STAGEDIR}${PREFIX}/bin
+	${INSTALL_DATA} ${WRKSRC}/man/csv2xml.1 ${STAGEDIR}${PREFIX}/man/man1
+
 .include <bsd.port.mk>

Modified: head/textproc/csvdiff/Makefile
==============================================================================
--- head/textproc/csvdiff/Makefile	Sun Jan 26 10:29:40 2014	(r341160)
+++ head/textproc/csvdiff/Makefile	Sun Jan 26 11:57:13 2014	(r341161)
@@ -16,19 +16,14 @@ NO_BUILD=	yes
 USES=		perl5
 PLIST_FILES=	bin/csvdiff
 WRKSRC=		${WRKDIR}
-.if !defined(NOPORTDOCS)
 PORTDOCS=	CHANGES README TODO
-.endif
 
-NO_STAGE=	yes
 do-install:
 	${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.pl \
-		${PREFIX}/bin/${PORTNAME}
-.if !defined(NOPORTDOCS)
-	@${MKDIR} ${DOCSDIR}
+		${STAGEDIR}${PREFIX}/bin/${PORTNAME}
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 .for i in ${PORTDOCS}
-	${INSTALL_DATA} ${WRKSRC}/$i ${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/$i ${STAGEDIR}${DOCSDIR}
 .endfor
-.endif
 
 .include <bsd.port.mk>

Modified: head/textproc/ctpp2/Makefile
==============================================================================
--- head/textproc/ctpp2/Makefile	Sun Jan 26 10:29:40 2014	(r341160)
+++ head/textproc/ctpp2/Makefile	Sun Jan 26 11:57:13 2014	(r341161)
@@ -16,8 +16,6 @@ USE_GCC=	yes
 
 PLIST_SUB+=	PORTVERSION=${PORTVERSION}
 
-MAN1=		ctpp2c.1 ctpp2vm.1 ctpp2i.1 ctpp2json.1 ctpp2-config.1
-
 OPTIONS_DEFINE=	DEBUG DISCARD_ILSEQ DOCS MD5 OPTIMIZATION TRANSLITERATE
 OPTIONS_DEFAULT=	DISCARD_ILSEQ MD5 OPTIMIZATION TRANSLITERATE
 DEBUG_DESC=		Enable debug output
@@ -26,46 +24,22 @@ MD5_DESC=		Enable md5 support
 DISCARD_ILSEQ_DESC=	Discard illegal sequence and continue
 TRANSLITERATE_DESC=	Enable transliteration in the conversion
 
-NO_STAGE=	yes
-.include <bsd.port.options.mk>
+OPTIONS_SUB=	yes
+
+DEBUG_CMAKE_ON=	-DDEBUG_MODE=ON
+DEBUG_CMAKE_OFF=	-DDEBUG_MODE=OFF
+DOCS_BUILD_DEPENDS=	rst2html:${PORTSDIR}/textproc/py-docutils
+DOCS_CMAKE_ON=	-DENABLE_DOCS=ON
+DOCS_CMAKE_OFF=	-DENABLE_DOCS=OFF
+MD5_CMAKE_ON=	-DMD5_SUPPORT=ON
+MD5_CMAKE_OFF=	-DMD5_SUPPORT=OFF
+DISCARD_ILSEQ_CMAKE_ON=	-DICONV_DISCARD_ILSEQ=ON
+DISCARD_ILSEQ_CMAKE_OFF=	-DICONV_DISCARD_ILSEQ=OFF
+TRANSLITERATE_CMAKE_ON=	-DICONV_TRANSLITERATE=ON
+TRANSLITERATE_CMAKE_OFF=	-DICONV_TRANSLITERATE=OFF
+OPTIMIZATION_CMAKE_ON=	-DENABLE_OPTIMIZATION=ON
+OPTIMIZATION_CMAKE_OFF=	-DENABLE_OPTIMIZATION=OFF
 
-.if ${PORT_OPTIONS:MDEBUG}
-CMAKE_ARGS+=	-DDEBUG_MODE=ON
-.else
-CMAKE_ARGS+=	-DDEBUG_MODE=OFF
-.endif
-
-.if ${PORT_OPTIONS:MDOCS}
-BUILD_DEPENDS+=	rst2html:${PORTSDIR}/textproc/py-docutils
-CMAKE_ARGS+=	-DENABLE_DOCS=ON
-PLIST_SUB+=	DOCS=""
-.else
-CMAKE_ARGS+=	-DENABLE_DOCS=OFF
-PLIST_SUB+=	DOCS="@comment "
-.endif
-
-.if ${PORT_OPTIONS:MMD5}
-CMAKE_ARGS+=	-DMD5_SUPPORT=ON
-.else
-CMAKE_ARGS+=	-DMD5_SUPPORT=OFF
-.endif
-
-.if ${PORT_OPTIONS:MDISCARD_ILSEQ}
-CMAKE_ARGS+=	-DICONV_DISCARD_ILSEQ=ON
-.else
-CMAKE_ARGS+=	-DICONV_DISCARD_ILSEQ=OFF
-.endif
-
-.if ${PORT_OPTIONS:MTRANSLITERATE}
-CMAKE_ARGS+=	-DICONV_TRANSLITERATE=ON
-.else
-CMAKE_ARGS+=	-DICONV_TRANSLITERATE=OFF
-.endif
-
-.if ${PORT_OPTIONS:MOPTIMIZATION}
-CMAKE_ARGS+=	-DENABLE_OPTIMIZATION=ON
-.else
-CMAKE_ARGS+=	-DENABLE_OPTIMIZATION=OFF
-.endif
+PORTDOCS=	template_language.html
 
 .include <bsd.port.mk>

Modified: head/textproc/ctpp2/pkg-plist
==============================================================================
--- head/textproc/ctpp2/pkg-plist	Sun Jan 26 10:29:40 2014	(r341160)
+++ head/textproc/ctpp2/pkg-plist	Sun Jan 26 11:57:13 2014	(r341161)
@@ -65,10 +65,13 @@ include/ctpp2/STLOstream.hpp
 include/ctpp2/STLPair.hpp
 include/ctpp2/STLString.hpp
 include/ctpp2/STLVector.hpp
-%%DOCS%%%%DOCSDIR%%/template_language.html
 lib/libctpp2-st.a
 lib/libctpp2.so
 lib/libctpp2.so.2
 lib/libctpp2.so.%%PORTVERSION%%
-%%DOCS%%@dirrm %%DOCSDIR%%
+man/man1/ctpp2c.1.gz
+man/man1/ctpp2vm.1.gz
+man/man1/ctpp2i.1.gz
+man/man1/ctpp2json.1.gz
+man/man1/ctpp2-config.1.gz
 @dirrm include/ctpp2



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