summaryrefslogtreecommitdiff
path: root/textproc/highlight
diff options
context:
space:
mode:
authorrh <rh@pkgsrc.org>2008-02-19 02:23:44 +0000
committerrh <rh@pkgsrc.org>2008-02-19 02:23:44 +0000
commit78821a2e60f884dcd4213fc9cffaa3c69bca9135 (patch)
tree66d05b16aa164770f43bc761b91b386f2fbb8e5a /textproc/highlight
parent4154195836c73be50863dd2b2227ea7649251571 (diff)
downloadpkgsrc-78821a2e60f884dcd4213fc9cffaa3c69bca9135.tar.gz
Import highlight-2.6.8, a tool that converts source code to formatted text
with syntax highlighting. Based on the wip package (with version update and minor modifications) by dhowland <at> users <dot> sf <dot> net.
Diffstat (limited to 'textproc/highlight')
-rw-r--r--textproc/highlight/DESCR3
-rw-r--r--textproc/highlight/Makefile32
-rw-r--r--textproc/highlight/PLIST214
-rw-r--r--textproc/highlight/distinfo7
-rw-r--r--textproc/highlight/patches/patch-aa67
-rw-r--r--textproc/highlight/patches/patch-ab14
6 files changed, 337 insertions, 0 deletions
diff --git a/textproc/highlight/DESCR b/textproc/highlight/DESCR
new file mode 100644
index 00000000000..127ca170df2
--- /dev/null
+++ b/textproc/highlight/DESCR
@@ -0,0 +1,3 @@
+Highlight converts source code to formatted text with syntax highlighting.
+Supports 100+ programming languages and coloured output in HTML, XHTML, RTF,
+TeX, LaTeX, XSL-FO and XML formats.
diff --git a/textproc/highlight/Makefile b/textproc/highlight/Makefile
new file mode 100644
index 00000000000..bc0f8bb32af
--- /dev/null
+++ b/textproc/highlight/Makefile
@@ -0,0 +1,32 @@
+# $NetBSD: Makefile,v 1.1.1.1 2008/02/19 02:23:44 rh Exp $
+#
+
+DISTNAME= highlight-2.6.8
+CATEGORIES= textproc
+MASTER_SITES= http://www.andre-simon.de/zip/
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://www.andre-simon.de/
+COMMENT= Converts source code to formatted text with syntax highlighting
+
+USE_TOOLS+= gmake
+USE_LANGUAGES= c++
+MANCOMPRESSED= yes
+
+MAKE_FILE= makefile
+
+PKG_SYSCONFSUBDIR= highlight
+
+EGDIR= ${PREFIX}/share/examples/highlight
+CONF_FILES= ${EGDIR}/filetypes.conf \
+ ${PKG_SYSCONFDIR}/filetypes.conf
+
+SUBST_CLASSES+= etc
+SUBST_MESSAGE.etc= Fixing hardcoded paths.
+SUBST_STAGE.etc= post-patch
+SUBST_FILES.etc= src/datadir.cpp
+SUBST_SED.etc= -e 's,/etc/highlight,${PKG_SYSCONFDIR},g'
+
+.include "../../devel/libgetopt/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/textproc/highlight/PLIST b/textproc/highlight/PLIST
new file mode 100644
index 00000000000..e671e947d25
--- /dev/null
+++ b/textproc/highlight/PLIST
@@ -0,0 +1,214 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2008/02/19 02:23:44 rh Exp $
+bin/highlight
+man/man1/highlight.1
+share/doc/highlight/AUTHORS
+share/doc/highlight/COPYING
+share/doc/highlight/ChangeLog
+share/doc/highlight/INSTALL
+share/doc/highlight/README
+share/doc/highlight/README_DE
+share/doc/highlight/README_INDENT
+share/doc/highlight/README_LANGLIST
+share/doc/highlight/README_REGEX
+share/doc/highlight/README_SWIG
+share/doc/highlight/examples/plugins/dokuwiki/syntax.php
+share/doc/highlight/examples/plugins/movabletype/README
+share/doc/highlight/examples/plugins/movabletype/highlight.pl
+share/doc/highlight/examples/plugins/wordpress/README
+share/doc/highlight/examples/plugins/wordpress/highlight.php
+share/doc/highlight/examples/swig/highlight.i
+share/doc/highlight/examples/swig/makefile
+share/doc/highlight/examples/swig/testmod.pl
+share/doc/highlight/examples/swig/testmod.py
+share/examples/highlight/filetypes.conf
+share/highlight/helpmsg/br.help
+share/highlight/helpmsg/cs.help
+share/highlight/helpmsg/de.help
+share/highlight/helpmsg/en.help
+share/highlight/helpmsg/es.help
+share/highlight/helpmsg/fr.help
+share/highlight/indentSchemes/acid.indent
+share/highlight/indentSchemes/ansi.indent
+share/highlight/indentSchemes/gnu.indent
+share/highlight/indentSchemes/java.indent
+share/highlight/indentSchemes/kr.indent
+share/highlight/indentSchemes/linux.indent
+share/highlight/langDefs/4gl.lang
+share/highlight/langDefs/a4c.lang
+share/highlight/langDefs/abp.lang
+share/highlight/langDefs/ada.lang
+share/highlight/langDefs/agda.lang
+share/highlight/langDefs/ampl.lang
+share/highlight/langDefs/amtrix.lang
+share/highlight/langDefs/applescript.lang
+share/highlight/langDefs/arm.lang
+share/highlight/langDefs/as.lang
+share/highlight/langDefs/asm.lang
+share/highlight/langDefs/asp.lang
+share/highlight/langDefs/aspect.lang
+share/highlight/langDefs/au3.lang
+share/highlight/langDefs/avenue.lang
+share/highlight/langDefs/awk.lang
+share/highlight/langDefs/bat.lang
+share/highlight/langDefs/bb.lang
+share/highlight/langDefs/bib.lang
+share/highlight/langDefs/bms.lang
+share/highlight/langDefs/boo.lang
+share/highlight/langDefs/c.lang
+share/highlight/langDefs/cb.lang
+share/highlight/langDefs/cfc.lang
+share/highlight/langDefs/clipper.lang
+share/highlight/langDefs/clp.lang
+share/highlight/langDefs/cob.lang
+share/highlight/langDefs/cs.lang
+share/highlight/langDefs/css.lang
+share/highlight/langDefs/d.lang
+share/highlight/langDefs/diff.lang
+share/highlight/langDefs/dot.lang
+share/highlight/langDefs/dylan.lang
+share/highlight/langDefs/e.lang
+share/highlight/langDefs/erl.lang
+share/highlight/langDefs/euphoria.lang
+share/highlight/langDefs/exp.lang
+share/highlight/langDefs/f77.lang
+share/highlight/langDefs/f90.lang
+share/highlight/langDefs/flx.lang
+share/highlight/langDefs/frink.lang
+share/highlight/langDefs/haskell.lang
+share/highlight/langDefs/hcl.lang
+share/highlight/langDefs/httpd.lang
+share/highlight/langDefs/icn.lang
+share/highlight/langDefs/idl.lang
+share/highlight/langDefs/ini.lang
+share/highlight/langDefs/inp.lang
+share/highlight/langDefs/io.lang
+share/highlight/langDefs/j.lang
+share/highlight/langDefs/java.lang
+share/highlight/langDefs/js.lang
+share/highlight/langDefs/jsp.lang
+share/highlight/langDefs/lbn.lang
+share/highlight/langDefs/ldif.lang
+share/highlight/langDefs/lisp.lang
+share/highlight/langDefs/lotos.lang
+share/highlight/langDefs/ls.lang
+share/highlight/langDefs/lsl.lang
+share/highlight/langDefs/lua.lang
+share/highlight/langDefs/m.lang
+share/highlight/langDefs/make.lang
+share/highlight/langDefs/mel.lang
+share/highlight/langDefs/mib.lang
+share/highlight/langDefs/miranda.lang
+share/highlight/langDefs/ml.lang
+share/highlight/langDefs/mo.lang
+share/highlight/langDefs/mod3.lang
+share/highlight/langDefs/mpl.lang
+share/highlight/langDefs/ms.lang
+share/highlight/langDefs/mssql.lang
+share/highlight/langDefs/n.lang
+share/highlight/langDefs/nas.lang
+share/highlight/langDefs/nice.lang
+share/highlight/langDefs/nsi.lang
+share/highlight/langDefs/nut.lang
+share/highlight/langDefs/oberon.lang
+share/highlight/langDefs/objc.lang
+share/highlight/langDefs/octave.lang
+share/highlight/langDefs/oorexx.lang
+share/highlight/langDefs/os.lang
+share/highlight/langDefs/pas.lang
+share/highlight/langDefs/php.lang
+share/highlight/langDefs/pike.lang
+share/highlight/langDefs/pl.lang
+share/highlight/langDefs/pl1.lang
+share/highlight/langDefs/pov.lang
+share/highlight/langDefs/pro.lang
+share/highlight/langDefs/progress.lang
+share/highlight/langDefs/ps.lang
+share/highlight/langDefs/ps1.lang
+share/highlight/langDefs/psl.lang
+share/highlight/langDefs/py.lang
+share/highlight/langDefs/pyx.lang
+share/highlight/langDefs/q.lang
+share/highlight/langDefs/qu.lang
+share/highlight/langDefs/r.lang
+share/highlight/langDefs/rb.lang
+share/highlight/langDefs/rexx.lang
+share/highlight/langDefs/rnc.lang
+share/highlight/langDefs/s.lang
+share/highlight/langDefs/sas.lang
+share/highlight/langDefs/sc.lang
+share/highlight/langDefs/scala.lang
+share/highlight/langDefs/scilab.lang
+share/highlight/langDefs/sh.lang
+share/highlight/langDefs/sma.lang
+share/highlight/langDefs/smalltalk.lang
+share/highlight/langDefs/sml.lang
+share/highlight/langDefs/snobol.lang
+share/highlight/langDefs/spec.lang
+share/highlight/langDefs/spn.lang
+share/highlight/langDefs/sql.lang
+share/highlight/langDefs/sybase.lang
+share/highlight/langDefs/tcl.lang
+share/highlight/langDefs/tcsh.lang
+share/highlight/langDefs/test_re.lang
+share/highlight/langDefs/tex.lang
+share/highlight/langDefs/ttcn3.lang
+share/highlight/langDefs/txt.lang
+share/highlight/langDefs/vb.lang
+share/highlight/langDefs/verilog.lang
+share/highlight/langDefs/vhd.lang
+share/highlight/langDefs/xml.lang
+share/highlight/langDefs/xpp.lang
+share/highlight/langDefs/y.lang
+share/highlight/themes/acid.style
+share/highlight/themes/bipolar.style
+share/highlight/themes/blacknblue.style
+share/highlight/themes/bright.style
+share/highlight/themes/contrast.style
+share/highlight/themes/darkblue.style
+share/highlight/themes/darkness.style
+share/highlight/themes/desert.style
+share/highlight/themes/easter.style
+share/highlight/themes/emacs.style
+share/highlight/themes/golden.style
+share/highlight/themes/greenlcd.style
+share/highlight/themes/ide-anjuta.style
+share/highlight/themes/ide-codewarrior.style
+share/highlight/themes/ide-devcpp.style
+share/highlight/themes/ide-eclipse.style
+share/highlight/themes/ide-kdev.style
+share/highlight/themes/ide-msvcpp.style
+share/highlight/themes/ide-xcode.style
+share/highlight/themes/kwrite.style
+share/highlight/themes/lucretia.style
+share/highlight/themes/matlab.style
+share/highlight/themes/moe.style
+share/highlight/themes/navy.style
+share/highlight/themes/nedit.style
+share/highlight/themes/neon.style
+share/highlight/themes/night.style
+share/highlight/themes/orion.style
+share/highlight/themes/pablo.style
+share/highlight/themes/peachpuff.style
+share/highlight/themes/print.style
+share/highlight/themes/rand01.style
+share/highlight/themes/seashell.style
+share/highlight/themes/the.style
+share/highlight/themes/typical.style
+share/highlight/themes/vampire.style
+share/highlight/themes/vim-dark.style
+share/highlight/themes/vim.style
+share/highlight/themes/whitengrey.style
+share/highlight/themes/zellner.style
+@dirrm share/highlight/themes
+@dirrm share/highlight/langDefs
+@dirrm share/highlight/indentSchemes
+@dirrm share/highlight/helpmsg
+@dirrm share/highlight
+@dirrm share/examples/highlight
+@dirrm share/doc/highlight/examples/swig
+@dirrm share/doc/highlight/examples/plugins/wordpress
+@dirrm share/doc/highlight/examples/plugins/movabletype
+@dirrm share/doc/highlight/examples/plugins/dokuwiki
+@dirrm share/doc/highlight/examples/plugins
+@dirrm share/doc/highlight/examples
+@dirrm share/doc/highlight
diff --git a/textproc/highlight/distinfo b/textproc/highlight/distinfo
new file mode 100644
index 00000000000..c09c334feb9
--- /dev/null
+++ b/textproc/highlight/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1.1.1 2008/02/19 02:23:44 rh Exp $
+
+SHA1 (highlight-2.6.8.tar.bz2) = f648ff731380752b147db7d6f774717e4a234575
+RMD160 (highlight-2.6.8.tar.bz2) = 0d872baba00913204095e5744cdfe20d4b90b0c5
+Size (highlight-2.6.8.tar.bz2) = 391114 bytes
+SHA1 (patch-aa) = b55972e8f432b9188f826725cca93f48e63a515b
+SHA1 (patch-ab) = 2b9d832d9beaef3975826c537e98bdf7a3f42869
diff --git a/textproc/highlight/patches/patch-aa b/textproc/highlight/patches/patch-aa
new file mode 100644
index 00000000000..c579f408410
--- /dev/null
+++ b/textproc/highlight/patches/patch-aa
@@ -0,0 +1,67 @@
+$NetBSD: patch-aa,v 1.1.1.1 2008/02/19 02:23:44 rh Exp $
+
+--- makefile.orig 2008-01-30 12:38:21.000000000 +1000
++++ makefile
+@@ -7,7 +7,6 @@
+ DESTDIR =
+
+ # Root directory for final installation
+-PREFIX = /usr
+
+ # Location of the highlight data files:
+ data_dir = ${PREFIX}/share/highlight/
+@@ -16,7 +15,7 @@ data_dir = ${PREFIX}/share/highlight/
+ bin_dir = ${PREFIX}/bin/
+
+ # Location of the highlight man page:
+-man_dir = ${PREFIX}/share/man/man1/
++man_dir = ${PREFIX}/${PKGMANDIR}/man1/
+
+ # Location of the highlight documentation:
+ doc_dir = ${PREFIX}/share/doc/highlight/
+@@ -25,13 +24,13 @@ doc_dir = ${PREFIX}/share/doc/highlight/
+ examples_dir = ${PREFIX}/share/doc/highlight/examples/
+
+ # Location of the highlight config files:
+-conf_dir = ${PREFIX}/etc/highlight/
++conf_dir = ${PREFIX}/share/examples/highlight/
+
+ # Commands:
+-INSTALL_DATA=install -m644
+-INSTALL_PROGRAM=install -m755
+-MKDIR=mkdir -p -m 755
+-RMDIR=rm -r -f
++INSTALL_DATA=${BSD_INSTALL_DATA}
++INSTALL_PROGRAM=${BSD_INSTALL_PROGRAM}
++MKDIR=${BSD_INSTALL_DATA_DIR}
++RMDIR=${RM} -r -f
+
+ all:
+ ${MAKE} -C ./src -f ./makefile HL_DATA_DIR=${data_dir} HL_CONFIG_DIR=${conf_dir}
+@@ -67,7 +66,7 @@ install:
+ ${DESTDIR}${data_dir}langDefs \
+ ${DESTDIR}${data_dir}indentSchemes \
+ ${DESTDIR}${data_dir}helpmsg
+- ${MKDIR} ${DESTDIR}${man_dir}
++ ${BSD_INSTALL_MAN_DIR} ${DESTDIR}${man_dir}
+ ${MKDIR} ${DESTDIR}${bin_dir}
+
+ ${INSTALL_DATA} ./langDefs/*.lang ${DESTDIR}${data_dir}langDefs/
+@@ -75,7 +74,7 @@ install:
+ ${INSTALL_DATA} ./themes/*.style ${DESTDIR}${data_dir}themes/
+ ${INSTALL_DATA} ./indentSchemes/*.indent ${DESTDIR}${data_dir}indentSchemes/
+ ${INSTALL_DATA} ./helpmsg/*.help ${DESTDIR}${data_dir}helpmsg/
+- ${INSTALL_DATA} ./man/highlight.1.gz ${DESTDIR}${man_dir}
++ ${BSD_INSTALL_MAN} ./man/highlight.1.gz ${DESTDIR}${man_dir}
+ ${INSTALL_DATA} ./AUTHORS ${DESTDIR}${doc_dir}
+ ${INSTALL_DATA} ./README ${DESTDIR}${doc_dir}
+ ${INSTALL_DATA} ./README_DE ${DESTDIR}${doc_dir}
+@@ -118,7 +117,7 @@ uninstall:
+ ${RMDIR} ${DESTDIR}${data_dir}
+ ${RMDIR} ${DESTDIR}${doc_dir}
+ ${RMDIR} ${DESTDIR}${conf_dir}
+- rm ${DESTDIR}${man_dir}highlight.1.gz
++ rm ${DESTDIR}${man_dir}highlight.1*
+ rm ${DESTDIR}${bin_dir}highlight
+ rm ${DESTDIR}${bin_dir}highlight-gui
+ @echo "Done. Have a nice day!"
diff --git a/textproc/highlight/patches/patch-ab b/textproc/highlight/patches/patch-ab
new file mode 100644
index 00000000000..c29547a44a9
--- /dev/null
+++ b/textproc/highlight/patches/patch-ab
@@ -0,0 +1,14 @@
+$NetBSD: patch-ab,v 1.1.1.1 2008/02/19 02:23:44 rh Exp $
+
+--- src/makefile.orig 2008-02-19 09:38:29.000000000 +1000
++++ src/makefile
+@@ -13,9 +13,7 @@
+ # Add -DUSE_FN_MATCH to enable better wildcard support with the --batch-recursive option.
+ # See "man 3 fnmatch" for details.
+
+-CXX=c++
+
+-CFLAGS:=-O2 ${CFLAGS}
+
+ # Do not strip by default (Mac OS X lazy pointer issues)
+ # Add -static to avoid linking with shared libs (can cause trouble when highlight