summaryrefslogtreecommitdiff
path: root/devel/sunifdef
diff options
context:
space:
mode:
authorbjs <bjs>2008-05-22 03:10:01 +0000
committerbjs <bjs>2008-05-22 03:10:01 +0000
commit3ed6ed883f6df3c466a9ffd51b47af5922118f05 (patch)
treeee3be3950150f4f5bfe271019f1027005c17956b /devel/sunifdef
parent024cdf7b5357de0ac389290002bc0dd8f914992c (diff)
downloadpkgsrc-3ed6ed883f6df3c466a9ffd51b47af5922118f05.tar.gz
Import sunifdef-3.1.3.
-- Sunifdef is a commandline tool for eliminating superfluous preprocessor clutter from C and C++ source files. It is a more powerful successor to the FreeBSD 'unifdef' tool. Sunifdef is most useful to developers of constantly evolving products with large code bases, where preprocessor conditionals are used to configure the feature sets, APIs or implementations of different releases. In these environments the code base steadily accumulates #ifdef pollution as transient configuration options become obselete. Sunifdef can largely automate the recurrent task of purging redundant #if logic from the code.
Diffstat (limited to 'devel/sunifdef')
-rw-r--r--devel/sunifdef/DESCR10
-rw-r--r--devel/sunifdef/Makefile31
-rw-r--r--devel/sunifdef/PLIST4
-rw-r--r--devel/sunifdef/distinfo5
4 files changed, 50 insertions, 0 deletions
diff --git a/devel/sunifdef/DESCR b/devel/sunifdef/DESCR
new file mode 100644
index 00000000000..88b56ac0b96
--- /dev/null
+++ b/devel/sunifdef/DESCR
@@ -0,0 +1,10 @@
+Sunifdef is a commandline tool for eliminating superfluous preprocessor
+clutter from C and C++ source files. It is a more powerful successor to
+the FreeBSD 'unifdef' tool.
+
+Sunifdef is most useful to developers of constantly evolving products with
+large code bases, where preprocessor conditionals are used to configure
+the feature sets, APIs or implementations of different releases. In these
+environments the code base steadily accumulates #ifdef pollution as
+transient configuration options become obselete. Sunifdef can largely
+automate the recurrent task of purging redundant #if logic from the code.
diff --git a/devel/sunifdef/Makefile b/devel/sunifdef/Makefile
new file mode 100644
index 00000000000..45fa847e8ad
--- /dev/null
+++ b/devel/sunifdef/Makefile
@@ -0,0 +1,31 @@
+# $NetBSD: Makefile,v 1.1.1.1 2008/05/22 03:10:01 bjs Exp $
+#
+
+DISTNAME= sunifdef-3.1.3
+CATEGORIES= devel
+MASTER_SITES= http://www.strudl.org/public_ftp/sunifdef/nix/stable/
+
+MAINTAINER= bjs@NetBSD.org
+HOMEPAGE= http://www.strudl.org/public_ftp/sunifdef/nix/stable/
+COMMENT= Tool for eliminating superfluous C preprocessor conditionals
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+GNU_CONFIGURE= yes
+USE_LIBTOOL= yes
+
+HTMLDIR= ${PREFIX}/share/doc/${PKGBASE}/html
+
+.include "../../mk/bsd.prefs.mk"
+
+.if !empty(PKGSRC_RUN_TEST:M[Yy][Ee][Ss]) || make(test)
+USE_TOOLS+= perl
+TEST_TARGET= check
+.endif
+
+post-install:
+ ${INSTALL_DATA_DIR} ${DESTDIR}${HTMLDIR}
+ ${INSTALL_DATA} ${WRKSRC}/man/html/sunifdef_man_1.html \
+ ${DESTDIR}${HTMLDIR}/${PKGBASE}_man_1.html
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/sunifdef/PLIST b/devel/sunifdef/PLIST
new file mode 100644
index 00000000000..12f59b3fc12
--- /dev/null
+++ b/devel/sunifdef/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2008/05/22 03:10:01 bjs Exp $
+bin/sunifdef
+man/man1/sunifdef.1
+share/doc/sunifdef/html/sunifdef_man_1.html
diff --git a/devel/sunifdef/distinfo b/devel/sunifdef/distinfo
new file mode 100644
index 00000000000..bbec4cdbb4d
--- /dev/null
+++ b/devel/sunifdef/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2008/05/22 03:10:01 bjs Exp $
+
+SHA1 (sunifdef-3.1.3.tar.gz) = edc67ad426402a90d9aa5a8b6316412b1a6f5a18
+RMD160 (sunifdef-3.1.3.tar.gz) = 8f70096f8045d4240e005f8fcf969b4981f732b6
+Size (sunifdef-3.1.3.tar.gz) = 443142 bytes