aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorijliao <ijliao@FreeBSD.org>2001-10-14 22:04:09 +0800
committerijliao <ijliao@FreeBSD.org>2001-10-14 22:04:09 +0800
commita40eef1718d0ad7078ce375b2d07e18615775e90 (patch)
tree5b75135e0323475640c1ebd096e3a1968d891b34
parent99cf5d3a61b0fd01bec1ddc4e16b1c166c066bf6 (diff)
downloadfreebsd-ports-gnome-a40eef1718d0ad7078ce375b2d07e18615775e90.tar.gz
freebsd-ports-gnome-a40eef1718d0ad7078ce375b2d07e18615775e90.tar.zst
freebsd-ports-gnome-a40eef1718d0ad7078ce375b2d07e18615775e90.zip
add c2man
Generates man pages from C sources PR: 29805 Submitted by: Bernd Luevelsmeyer <bdluevel@heitec.net>
-rw-r--r--devel/Makefile1
-rw-r--r--devel/c2man/Makefile20
-rw-r--r--devel/c2man/distinfo1
-rw-r--r--devel/c2man/files/patch-Makefile.SH35
-rw-r--r--devel/c2man/pkg-comment1
-rw-r--r--devel/c2man/pkg-descr9
-rw-r--r--devel/c2man/pkg-plist1
-rw-r--r--devel/c2man/scripts/configure2
8 files changed, 70 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index ae9cb0141061..633083ffc64c 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -54,6 +54,7 @@
SUBDIR += bugbuddy
SUBDIR += bugzilla
SUBDIR += c2lib
+ SUBDIR += c2man
SUBDIR += c4
SUBDIR += c_c++_reference
SUBDIR += camlp4
diff --git a/devel/c2man/Makefile b/devel/c2man/Makefile
new file mode 100644
index 000000000000..33e5a7e4ffa3
--- /dev/null
+++ b/devel/c2man/Makefile
@@ -0,0 +1,20 @@
+# New ports collection makefile for: c2man
+# Date created: 2001-08-15
+# Whom: bdluevel@heitec.net
+#
+# $FreeBSD$
+#
+
+PORTNAME= c2man
+PORTVERSION= 2.0.42
+CATEGORIES= devel
+MASTER_SITES= ftp://ftp.research.canon.com.au/pub/misc/c2man/
+DISTNAME= $(PORTNAME)-$(PORTVERSION:C/\.([0-9]*)$/@\1/)
+
+MAINTAINER= bdluevel@heitec.net
+
+NO_WRKSUBDIR= yes
+
+MAN1= c2man.1
+
+.include <bsd.port.mk>
diff --git a/devel/c2man/distinfo b/devel/c2man/distinfo
new file mode 100644
index 000000000000..c88f2524df9e
--- /dev/null
+++ b/devel/c2man/distinfo
@@ -0,0 +1 @@
+MD5 (c2man-2.0@42.tar.gz) = 8640b6860f39c105a737dca40626b252
diff --git a/devel/c2man/files/patch-Makefile.SH b/devel/c2man/files/patch-Makefile.SH
new file mode 100644
index 000000000000..b89c6bef86ff
--- /dev/null
+++ b/devel/c2man/files/patch-Makefile.SH
@@ -0,0 +1,35 @@
+--- .vimbk/Makefile.SH.vimbk Fri Feb 25 03:20:36 2000
++++ Makefile.SH Fri Aug 17 16:14:51 2001
+@@ -25,7 +25,6 @@
+ # UNIX makefile for manual page generator
+ # Note: any changes made here will be lost next time Configure is run!.
+
+-CC=$cc $optimize
+ YACC=$yacc $yaccflags
+ LEX=$lex $lexflags
+ SED=$sed
+@@ -42,7 +41,6 @@
+
+ mansrc=$mansrc
+ manext=$manext
+-CFLAGS=$ccflags
+ WARNFLAGS=$warnflags
+ LDFLAGS=$ldflags
+ LIBS=$libs $liblex $libyacc
+@@ -71,14 +69,8 @@
+ all: c2man c2man.1
+
+ install: all
+- $(CP) c2man $(bin)
+- $(CP) c2man.1 $(mansrc)/c2man.$(manext)
+- -mkdir $(privlib)
+- chmod 755 $(privlib)
+- -mkdir $(privlib)/eg
+- chmod 755 $(privlib)/eg
+- $(CP) eg/*.[chly] $(privlib)/eg
+- chmod 755 $(privlib)/eg/*
++ $(BSD_INSTALL_PROGRAM) c2man $(PREFIX)/bin/
++ $(BSD_INSTALL_MAN) c2man.1 $(PREFIX)/man/man1/
+
+ uninstall:
+ $(RM) -f $(bin)/c2man $(mansrc)/c2man.$(manext)
diff --git a/devel/c2man/pkg-comment b/devel/c2man/pkg-comment
new file mode 100644
index 000000000000..4c923d1380da
--- /dev/null
+++ b/devel/c2man/pkg-comment
@@ -0,0 +1 @@
+Generates man pages from C sources
diff --git a/devel/c2man/pkg-descr b/devel/c2man/pkg-descr
new file mode 100644
index 000000000000..012a2ea923b8
--- /dev/null
+++ b/devel/c2man/pkg-descr
@@ -0,0 +1,9 @@
+c2man is an automatic documentation tool that extracts comments
+from C source code to generate functional interface
+documentation in the same format as sections 2 & 3 of the Unix
+Programmer's Manual. It requires minimal effort from the
+programmer by looking for comments in the usual places near the
+objects they document, rather than imposing a rigid
+function-comment syntax or requiring that the programmer learn
+and use a typesetting language. Acceptable documentation can
+often be generated from existing code with no modifications.
diff --git a/devel/c2man/pkg-plist b/devel/c2man/pkg-plist
new file mode 100644
index 000000000000..4e30d92b3f4c
--- /dev/null
+++ b/devel/c2man/pkg-plist
@@ -0,0 +1 @@
+bin/c2man
diff --git a/devel/c2man/scripts/configure b/devel/c2man/scripts/configure
new file mode 100644
index 000000000000..e746a8c85179
--- /dev/null
+++ b/devel/c2man/scripts/configure
@@ -0,0 +1,2 @@
+#!/bin/sh
+cd ${WRKSRC} && ./Configure -des