From owner-svn-ports-head@FreeBSD.ORG Fri Dec 20 18:21:05 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 48B5B405; Fri, 20 Dec 2013 18:21:05 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 3501A1D34; Fri, 20 Dec 2013 18:21:05 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rBKIL5QL077210; Fri, 20 Dec 2013 18:21:05 GMT (envelope-from pawel@svn.freebsd.org) Received: (from pawel@localhost) by svn.freebsd.org (8.14.7/8.14.7/Submit) id rBKIL47B077208; Fri, 20 Dec 2013 18:21:04 GMT (envelope-from pawel@svn.freebsd.org) Message-Id: <201312201821.rBKIL47B077208@svn.freebsd.org> From: Pawel Pekala Date: Fri, 20 Dec 2013 18:21:04 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r337059 - in head/textproc/tdhkit: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Dec 2013 18:21:05 -0000 Author: pawel Date: Fri Dec 20 18:21:04 2013 New Revision: 337059 URL: http://svnweb.freebsd.org/changeset/ports/337059 Log: - Support CC/CFLAGS properly - Add LICENSE - Support staging PR: ports/184873 Submitted by: KATO Tsuguru Deleted: head/textproc/tdhkit/files/ Modified: head/textproc/tdhkit/Makefile (contents, props changed) head/textproc/tdhkit/pkg-plist (contents, props changed) Modified: head/textproc/tdhkit/Makefile ============================================================================== --- head/textproc/tdhkit/Makefile Fri Dec 20 18:18:37 2013 (r337058) +++ head/textproc/tdhkit/Makefile Fri Dec 20 18:21:04 2013 (r337059) @@ -10,65 +10,40 @@ DISTNAME= ${PORTNAME}${PORTVERSION:C/\./ MAINTAINER= ports@FreeBSD.org COMMENT= Set of programs for working with tabular ASCII data -OPTIONS_DEFINE= LIBCHRON DOCS -LIBCHRON_DESC= Install libchron +LICENSE= GPLv2 # (or later) -NO_STAGE= yes -.include - -.if ${PORT_OPTIONS:MLIBCHRON} -PLIST_SUB+= LIBCHRON="" -.else -PLIST_SUB+= LIBCHRON="@comment " -.endif - -.if !defined(NO_INSTALL_MANPAGES) -MAN1= dateconvert.1 \ - fldfmt.1 \ - fldmap.1 \ - fldsel.1 \ - pjoin.1 \ - recsel.1 \ - tabo.1 \ - tdhfunction.1 \ - xlcells.1 \ - xlcleaner.1 - -.if ${PORT_OPTIONS:MLIBCHRON} -MAN3= libchron.3 -.endif -MANCOMPRESSED= no -.endif - -do-build: - cd ${WRKSRC}/libsrc && ${SETENV} ${MAKE_ENV} \ - ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} - cd ${WRKSRC}/src && ${SETENV} ${MAKE_ENV} \ - ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} -.if ${PORT_OPTIONS:MLIBCHRON} - cd ${WRKSRC}/libsrc && ${SETENV} ${MAKE_ENV} \ - ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} libchron -.endif +OPTIONS_DEFINE= CHRON DOCS +OPTIONS_SUB= yes +CHRON_DESC= Install libchron + +BUILD_WRKSRC= ${WRKSRC}/src + +post-patch: + @${REINPLACE_CMD} -e \ + 's|^CFLAGS =|CFLAGS +=|' \ + ${WRKSRC}/libsrc/Makefile + @${REINPLACE_CMD} -e \ + 's|^CFLAGS =|CFLAGS +=| ; \ + s|^CC =|CC ?=| ; \ + /^all:/s|recsel fldsel|recsel fldmap fldsel|' \ + ${BUILD_WRKSRC}/Makefile + +pre-build: + @(cd ${WRKSRC}/libsrc && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} \ + ${MAKE_FLAGS} ${MAKEFILE} -j${MAKE_JOBS_NUMBER} \ + ${MAKE_ARGS} default libchron) do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/bin/* ${PREFIX}/bin - -.if ${PORT_OPTIONS:MLIBCHRON} - ${INSTALL_PROGRAM} ${WRKSRC}/libchron.a ${PREFIX}/lib -.endif - -.if !defined(NO_INSTALL_MANPAGES) -.for manpage in ${MAN1} - ${INSTALL_MAN} ${WRKSRC}/man/mantdh/${manpage} ${MAN1PREFIX}/man/man1 -.endfor -.if ${PORT_OPTIONS:MLIBCHRON} - ${INSTALL_MAN} ${WRKSRC}/man/mantdh/${MAN3} ${MAN3PREFIX}/man/man3 -.endif -.endif - -.if ${PORT_OPTIONS:MDOCS} - ${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/man/html/* ${DOCSDIR} -.endif + (cd ${WRKSRC}/bin && ${INSTALL_PROGRAM} * \ + ${STAGEDIR}${PREFIX}/bin) + (cd ${WRKSRC} && ${INSTALL_DATA} libchron.a \ + ${STAGEDIR}${PREFIX}/lib) + (cd ${WRKSRC}/man/mantdh && ${INSTALL_MAN} *.1 \ + ${STAGEDIR}${MAN1PREFIX}/man/man1) + (cd ${WRKSRC}/man/mantdh && ${INSTALL_MAN} *.3 \ + ${STAGEDIR}${MAN3PREFIX}/man/man3) + @${MKDIR} ${STAGEDIR}${DOCSDIR} + (cd ${WRKSRC}/man/html && ${INSTALL_DATA} * \ + ${STAGEDIR}${DOCSDIR}) .include Modified: head/textproc/tdhkit/pkg-plist ============================================================================== --- head/textproc/tdhkit/pkg-plist Fri Dec 20 18:18:37 2013 (r337058) +++ head/textproc/tdhkit/pkg-plist Fri Dec 20 18:21:04 2013 (r337059) @@ -8,7 +8,18 @@ bin/tabo bin/tdhfunction bin/xlcells bin/xlcleaner -%%LIBCHRON%%lib/libchron.a +%%CHRON%%lib/libchron.a +man/man1/dateconvert.1.gz +man/man1/fldfmt.1.gz +man/man1/fldmap.1.gz +man/man1/fldsel.1.gz +man/man1/pjoin.1.gz +man/man1/recsel.1.gz +man/man1/tabo.1.gz +man/man1/tdhfunction.1.gz +man/man1/xlcells.1.gz +man/man1/xlcleaner.1.gz +man/man3/libchron.3.gz %%PORTDOCS%%%%DOCSDIR%%/Copyright.html %%PORTDOCS%%%%DOCSDIR%%/commalist.html %%PORTDOCS%%%%DOCSDIR%%/condex.html @@ -32,4 +43,4 @@ bin/xlcleaner %%PORTDOCS%%%%DOCSDIR%%/times.html %%PORTDOCS%%%%DOCSDIR%%/xlcells.1.html %%PORTDOCS%%%%DOCSDIR%%/xlcleaner.1.html -%%PORTDOCS%%@dirrm %%DOCSDIR%% +%%PORTDOCS%%@dirrmtry %%DOCSDIR%%