From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Apr 26 07:50:00 2014 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.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 A7D5E224 for ; Sat, 26 Apr 2014 07:50:00 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 838641F9C for ; Sat, 26 Apr 2014 07:50:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.8/8.14.8) with ESMTP id s3Q7o0Er053105 for ; Sat, 26 Apr 2014 07:50:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s3Q7o0YD053104; Sat, 26 Apr 2014 07:50:00 GMT (envelope-from gnats) Resent-Date: Sat, 26 Apr 2014 07:50:00 GMT Resent-Message-Id: <201404260750.s3Q7o0YD053104@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, C Hutchinson Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C8A87206 for ; Sat, 26 Apr 2014 07:42:57 +0000 (UTC) Received: from cgiserv.freebsd.org (cgiserv.freebsd.org [IPv6:2001:1900:2254:206a::50:4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A87FB1E76 for ; Sat, 26 Apr 2014 07:42:57 +0000 (UTC) Received: from cgiserv.freebsd.org ([127.0.1.6]) by cgiserv.freebsd.org (8.14.8/8.14.8) with ESMTP id s3Q7gvG4007831 for ; Sat, 26 Apr 2014 07:42:57 GMT (envelope-from nobody@cgiserv.freebsd.org) Received: (from nobody@localhost) by cgiserv.freebsd.org (8.14.8/8.14.8/Submit) id s3Q7gvIX007826; Sat, 26 Apr 2014 07:42:57 GMT (envelope-from nobody) Message-Id: <201404260742.s3Q7gvIX007826@cgiserv.freebsd.org> Date: Sat, 26 Apr 2014 07:42:57 GMT From: C Hutchinson To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/189009: [new port] devel textproc - c2mdoc : Script to generate mdoc(7) markup from C functions X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Apr 2014 07:50:00 -0000 >Number: 189009 >Category: ports >Synopsis: [new port] devel textproc - c2mdoc : Script to generate mdoc(7) markup from C functions >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Apr 26 07:50:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: C Hutchinson >Release: releng_8, releng_9 >Organization: >Environment: >Description: c2mdoc provides 2 scripts c2mdoc c2mdoc.awk requires devel/cproto maintainer-request >How-To-Repeat: >Fix: commit attached. Patch attached with submission follows: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # c2mdoc # c2mdoc/Makefile # c2mdoc/pkg-descr # c2mdoc/files # c2mdoc/files/c2mdoc # c2mdoc/files/c2mdoc.awk # echo c - c2mdoc mkdir -p c2mdoc > /dev/null 2>&1 echo x - c2mdoc/Makefile sed 's/^X//' >c2mdoc/Makefile << 'd6da80dbadd53f0c81a46b243e22264b' X# Created by: C Hutchinson X# devel/c2mdoc/Makefile 2014-04-24 22:53:40 X# X XPORTNAME= c2mdoc XPORTVERSION= 20140424 XCATEGORIES= devel textproc XMASTER_SITES= # XDISTFILES= X XMAINTAINER= portmaster@bsdforge.com XCOMMENT= Script to generate mdoc(7) markup from C functions X XRUN_DEPENDS= cproto:${PORTSDIR}/devel/cproto X XNOMAN= X XNO_BUILD= yes XNO_WRKSUBDIR= yes X XPLIST_FILES= bin/c2mdoc libexec/c2mdoc.awk X Xdo-install: X ${INSTALL_SCRIPT} ${FILESDIR}/c2mdoc.awk ${PREFIX}/libexec X ${CP} ${FILESDIR}/c2mdoc ${WRKDIR} X ${REINPLACE_CMD} -e "s|%%LIBEXECDIR%%|${PREFIX}/libexec|g;" \ X ${WRKDIR}/c2mdoc X ${INSTALL_SCRIPT} ${WRKDIR}/c2mdoc ${PREFIX}/bin X X.include d6da80dbadd53f0c81a46b243e22264b echo x - c2mdoc/pkg-descr sed 's/^X//' >c2mdoc/pkg-descr << '06a14ca49a3e3cded6300165a67d2b83' Xc2mdoc is a shell and awk script wrapper which abuses devel/cproto's Xparser to spit out function prototypes in a format ready to paste into XFreeBSD developer documentation. c2man already claims to do such a Xthing, but seems crippled in the face of our kernel source. The Xtoolchain used by this port whinges but still generates markup. 06a14ca49a3e3cded6300165a67d2b83 echo c - c2mdoc/files mkdir -p c2mdoc/files > /dev/null 2>&1 echo x - c2mdoc/files/c2mdoc sed 's/^X//' >c2mdoc/files/c2mdoc << '816655b3d6326e394840fbc4b0faf0a3' X#!/bin/sh X# X# c2mdoc -- Front-end which abuses the cproto parser to spit out X# mdoc(7) format prototypes for use in FreeBSD documentation. X# X XAWKSCRIPT="%%LIBEXECDIR%%/c2mdoc.awk" XCPROTO='-P"int\tf\t(\ta\t,\tb\t)" -pq -f3' XCPROTO_BIN=cproto Xexport CPROTO X X${CPROTO_BIN} $1 | \ X grep -v '/\*.*\*/' | \ X sed -e 's/[,();]//g' | \ X ${AWKSCRIPT} 816655b3d6326e394840fbc4b0faf0a3 echo x - c2mdoc/files/c2mdoc.awk sed 's/^X//' >c2mdoc/files/c2mdoc.awk << 'e9d0b7c42e4c62c4b5d9fa3c99fae0cc' X#!/usr/bin/awk -f X# X# c2mdoc.awk -- Takes tabulated output from cproto(1) and turns it into X# mdoc(7) markup. X# XBEGIN { FS="\t" } X{ X printf ".Ft %s\n", $1 ; X printf ".Fn %s", $2 ; X for (i = 4; i < NF; i++) X printf " \"%s\"", $i X printf "\n" ; X} e9d0b7c42e4c62c4b5d9fa3c99fae0cc exit >Release-Note: >Audit-Trail: >Unformatted: