pkgsrc/textproc/source-highlight/Makefile

41 lines
955 B
Makefile
Raw Normal View History

2008-06-20 03:09:05 +02:00
# $NetBSD: Makefile,v 1.27 2008/06/20 01:09:38 joerg Exp $
#
Update to 2.9: Version 2.9 * language definition for C (not C++) files * language definition for properties files * language definition for KDE desktop and ini files * language definition for lsm files (Linux Software Map) * language definition for rpm spec files * language definition for Haxe files (thanks to Jos Hirth) * style.defaults for associating a style for an element (whose style is not specified) to the style of another element * highlight some KDE programming files (e.g., .rc, .kcfg, etc.) * correctly highlight for less when filenames contain paths * fixed a bug in file inclusion of langdef files * fixed compilation problems for fileutil.cc (thanks to Adrian Reber) * xml elements are correctly recognized when containing . (thanks to Toby White) * references for xhtml output files Version 2.8 * lang definition for slang (by John E. Davis) * correctly handle words in ' and ` regular expression strings * the right delimiter of a delim element can refer to marked subexpressions in the left delimiter * fixed the definition of C-style comments which are not nested * improved perl syntax highlighting * javascript regular expression highlighting * padding character for line numbers can be specified (thanks to Roger Nilsson) * removed non standard % make rules Version 2.7 * fixed language association for log files. * use standard sed arguments * check that the ctags program supports the options used by source-highlight and disable ctags tests if it does not * removed some memory leaks from scanners and parsers * fixed regular expression highlighting strings in perl (thanks to Elias Pipping) * regexp language element * infer script languages also checking for the env specification * improved error reporting for lang definition files * ` ` syntax for regular expressions that permits backreferences and conditionals * explicit naming for subexpressions syntax * added a program, check-regexp, for checking regular expressions on the command line * fix html tag definitions * fix ruby regexp definition * --doc option and references for docbook output * xhtml output with non fixed font Version 2.6 * language definition for makefiles * language definition for css files * language definition for m4 files * fixed some problems in xml.lang * fixed some problems in sh.lang * the ctags found during configure is correctly used in makefiles * --quiet option showing no progress information (thanks to C. Michael Pilato) * handle direct color specifications in double quotes in style files * in style files can specify formatting options for more than one element on the same line * accept css specifications as style specifications (limited support) * handle background color for some output formats (e.g., xhtml) * in style files the background color (for the entire output) can be specified * fixed a problem in configure script on some BSD systems (thanks to Thomas Klausner)
2008-03-13 17:45:33 +01:00
DISTNAME= source-highlight-2.9
SVR4_PKGNAME= srchl
CATEGORIES= textproc
MASTER_SITES= ${MASTER_SITE_GNU:=src-highlite/}
MAINTAINER= pkgsrc-users@NetBSD.org
2004-05-07 16:08:13 +02:00
HOMEPAGE= http://www.gnu.org/software/src-highlite/
COMMENT= Highlight syntax of various languages source into HTML document
2008-06-20 03:09:05 +02:00
PKG_DESTDIR_SUPPORT= user-destdir
Update to 2.5: Version 2.5 * fixed lang.map for php files * fixed url.lang * --debug-langdef can be interactive * nohilite.lang that does not perform any highlighting, but only formats the input file into the output format (dealing with output format special characters) * default.lang to which source-highlight falls back when no input language is specified or available * infer script languages * --header and --footer options do not require --doc option * --statistics print elapsed time * highlight cls, dtx and sty LaTeX files * language definition for Tcl * language definition for Sql * language definition for bibtex * infer language of script files Version 2.4 * language definition for C# (thanks to Hemmi Shigeru) * language definition for XML (thanks to Andy Buckley) * language definition for shell scripts (thanks to Dirk Jagdmann) * fixed language definition for HTML (tags with numbers are highlighted, e.g., <h1>) * updated language definition for logtalk (thanks to Paulo Moura) * produces the list of elements of a language definition file (--show-lang-elements) * output format definition for HTML where fonts by default are not fixed width. * bug fix in url regular expressions * bug fix with nonsensitive keywords (thanks to Andrea Ercolino) * improved documentation concerning installation of Boost regex library Version 2.3 * the regex automaton is printed on the standard output (instead of the standard error) * language definition for postscript * DocBook output format * fixed bug in .map files with \r characters * fixed expression for email Version 2.2 * fixed a bug that sigsegv when more than one input file is provided * fixed a compilation error with gcc 4.0 * generate references using ctags * fixed a bug with LaTeX output of " with some inputencs and with latexcolor * handle direct color specifications independently from HTML * fixed conversion of hexadecimal characters in output language definitions * fixed compilation error with regex 1.33 * include man page * language definition for diff output * fixed bugs in generation of the regular expression automaton * extended documentation with some tutorials on input language definitions * generate more compact output (reduced size) * in LaTeX output longtable is not used anymore
2007-02-22 21:35:34 +01:00
DEPENDS+= exctags-[0-9]*:../../devel/exctags
GNU_CONFIGURE= YES
USE_LANGUAGES= c c++
Update to 2.9: Version 2.9 * language definition for C (not C++) files * language definition for properties files * language definition for KDE desktop and ini files * language definition for lsm files (Linux Software Map) * language definition for rpm spec files * language definition for Haxe files (thanks to Jos Hirth) * style.defaults for associating a style for an element (whose style is not specified) to the style of another element * highlight some KDE programming files (e.g., .rc, .kcfg, etc.) * correctly highlight for less when filenames contain paths * fixed a bug in file inclusion of langdef files * fixed compilation problems for fileutil.cc (thanks to Adrian Reber) * xml elements are correctly recognized when containing . (thanks to Toby White) * references for xhtml output files Version 2.8 * lang definition for slang (by John E. Davis) * correctly handle words in ' and ` regular expression strings * the right delimiter of a delim element can refer to marked subexpressions in the left delimiter * fixed the definition of C-style comments which are not nested * improved perl syntax highlighting * javascript regular expression highlighting * padding character for line numbers can be specified (thanks to Roger Nilsson) * removed non standard % make rules Version 2.7 * fixed language association for log files. * use standard sed arguments * check that the ctags program supports the options used by source-highlight and disable ctags tests if it does not * removed some memory leaks from scanners and parsers * fixed regular expression highlighting strings in perl (thanks to Elias Pipping) * regexp language element * infer script languages also checking for the env specification * improved error reporting for lang definition files * ` ` syntax for regular expressions that permits backreferences and conditionals * explicit naming for subexpressions syntax * added a program, check-regexp, for checking regular expressions on the command line * fix html tag definitions * fix ruby regexp definition * --doc option and references for docbook output * xhtml output with non fixed font Version 2.6 * language definition for makefiles * language definition for css files * language definition for m4 files * fixed some problems in xml.lang * fixed some problems in sh.lang * the ctags found during configure is correctly used in makefiles * --quiet option showing no progress information (thanks to C. Michael Pilato) * handle direct color specifications in double quotes in style files * in style files can specify formatting options for more than one element on the same line * accept css specifications as style specifications (limited support) * handle background color for some output formats (e.g., xhtml) * in style files the background color (for the entire output) can be specified * fixed a problem in configure script on some BSD systems (thanks to Thomas Klausner)
2008-03-13 17:45:33 +01:00
USE_LIBTOOL= YES
Update to 2.5: Version 2.5 * fixed lang.map for php files * fixed url.lang * --debug-langdef can be interactive * nohilite.lang that does not perform any highlighting, but only formats the input file into the output format (dealing with output format special characters) * default.lang to which source-highlight falls back when no input language is specified or available * infer script languages * --header and --footer options do not require --doc option * --statistics print elapsed time * highlight cls, dtx and sty LaTeX files * language definition for Tcl * language definition for Sql * language definition for bibtex * infer language of script files Version 2.4 * language definition for C# (thanks to Hemmi Shigeru) * language definition for XML (thanks to Andy Buckley) * language definition for shell scripts (thanks to Dirk Jagdmann) * fixed language definition for HTML (tags with numbers are highlighted, e.g., <h1>) * updated language definition for logtalk (thanks to Paulo Moura) * produces the list of elements of a language definition file (--show-lang-elements) * output format definition for HTML where fonts by default are not fixed width. * bug fix in url regular expressions * bug fix with nonsensitive keywords (thanks to Andrea Ercolino) * improved documentation concerning installation of Boost regex library Version 2.3 * the regex automaton is printed on the standard output (instead of the standard error) * language definition for postscript * DocBook output format * fixed bug in .map files with \r characters * fixed expression for email Version 2.2 * fixed a bug that sigsegv when more than one input file is provided * fixed a compilation error with gcc 4.0 * generate references using ctags * fixed a bug with LaTeX output of " with some inputencs and with latexcolor * handle direct color specifications independently from HTML * fixed conversion of hexadecimal characters in output language definitions * fixed compilation error with regex 1.33 * include man page * language definition for diff output * fixed bugs in generation of the regular expression automaton * extended documentation with some tutorials on input language definitions * generate more compact output (reduced size) * in LaTeX output longtable is not used anymore
2007-02-22 21:35:34 +01:00
CONFIGURE_ENV+= CTAGS=${LOCALBASE}/bin/exctags
Update to 2.5: Version 2.5 * fixed lang.map for php files * fixed url.lang * --debug-langdef can be interactive * nohilite.lang that does not perform any highlighting, but only formats the input file into the output format (dealing with output format special characters) * default.lang to which source-highlight falls back when no input language is specified or available * infer script languages * --header and --footer options do not require --doc option * --statistics print elapsed time * highlight cls, dtx and sty LaTeX files * language definition for Tcl * language definition for Sql * language definition for bibtex * infer language of script files Version 2.4 * language definition for C# (thanks to Hemmi Shigeru) * language definition for XML (thanks to Andy Buckley) * language definition for shell scripts (thanks to Dirk Jagdmann) * fixed language definition for HTML (tags with numbers are highlighted, e.g., <h1>) * updated language definition for logtalk (thanks to Paulo Moura) * produces the list of elements of a language definition file (--show-lang-elements) * output format definition for HTML where fonts by default are not fixed width. * bug fix in url regular expressions * bug fix with nonsensitive keywords (thanks to Andrea Ercolino) * improved documentation concerning installation of Boost regex library Version 2.3 * the regex automaton is printed on the standard output (instead of the standard error) * language definition for postscript * DocBook output format * fixed bug in .map files with \r characters * fixed expression for email Version 2.2 * fixed a bug that sigsegv when more than one input file is provided * fixed a compilation error with gcc 4.0 * generate references using ctags * fixed a bug with LaTeX output of " with some inputencs and with latexcolor * handle direct color specifications independently from HTML * fixed conversion of hexadecimal characters in output language definitions * fixed compilation error with regex 1.33 * include man page * language definition for diff output * fixed bugs in generation of the regular expression automaton * extended documentation with some tutorials on input language definitions * generate more compact output (reduced size) * in LaTeX output longtable is not used anymore
2007-02-22 21:35:34 +01:00
INFO_FILES= YES
Update to version 2.1.2. Add build dependencies on GNU make and GNU sed for 'test' target's benefit. Support for input chroot, via make variable SOURCE_HIGHLIGHT_INPUT_CHROOT, deactivated otherwise the build is broken. XXX Is 'TOOLS_PLATFORM.gsed= # empty' the proper way to override a the platform sed tool ? Relinquish stewardship. Changes since last packaged version (1.11): Version 2.1.2 * fixed conversion of hexadecimal characters in output language definitions * fixed compilation error with regex 1.33 * include man page * fixed a bug with LaTeX output of " with some inputencs Version 2.1.1 * fixed a bug that sigsegv when more than one input file is provided * fixed a compilation error with gcc 4.0 Version 2.1 * Included obsolete man page. * output language format specifications are read at run-time so that new output languages can be easily added dynamically (without recompiling the sources) by using a simple syntax. * "fixed" and "notfixed" styles can be specified. * fixed the handling of end-of-line (processed only once) * LaTeX output * TeXinfo output * debug of a language definition * tags.j2h files are now called style files. * renamed --tags-file option in --style-file * allows to specify a prefix for the generated line number anchors * --header and --footer do not imply --doc * language definition for LogTalk and LaTeX Version 2.0 * Language specifications are read at run-time, so that new languages can be easily added dynamically (without recompiling the sources) by using a simple syntax. * "nonsensitive" for simple definitions * cgi version not built automatically * failsafe option to simply output the input file when no language definition is found * functionalities with less improved. Version 1.11.1 * fixed compilations problems on some Unix compilers
2005-10-10 11:05:59 +02:00
# this is only really needed for the 'test' target
USE_TOOLS+= gmake gsed
TEST_TARGET= check
CONFIGURE_ARGS+= --with-boost-regex
Update to version 2.1.2. Add build dependencies on GNU make and GNU sed for 'test' target's benefit. Support for input chroot, via make variable SOURCE_HIGHLIGHT_INPUT_CHROOT, deactivated otherwise the build is broken. XXX Is 'TOOLS_PLATFORM.gsed= # empty' the proper way to override a the platform sed tool ? Relinquish stewardship. Changes since last packaged version (1.11): Version 2.1.2 * fixed conversion of hexadecimal characters in output language definitions * fixed compilation error with regex 1.33 * include man page * fixed a bug with LaTeX output of " with some inputencs Version 2.1.1 * fixed a bug that sigsegv when more than one input file is provided * fixed a compilation error with gcc 4.0 Version 2.1 * Included obsolete man page. * output language format specifications are read at run-time so that new output languages can be easily added dynamically (without recompiling the sources) by using a simple syntax. * "fixed" and "notfixed" styles can be specified. * fixed the handling of end-of-line (processed only once) * LaTeX output * TeXinfo output * debug of a language definition * tags.j2h files are now called style files. * renamed --tags-file option in --style-file * allows to specify a prefix for the generated line number anchors * --header and --footer do not imply --doc * language definition for LogTalk and LaTeX Version 2.0 * Language specifications are read at run-time, so that new languages can be easily added dynamically (without recompiling the sources) by using a simple syntax. * "nonsensitive" for simple definitions * cgi version not built automatically * failsafe option to simply output the input file when no language definition is found * functionalities with less improved. Version 1.11.1 * fixed compilations problems on some Unix compilers
2005-10-10 11:05:59 +02:00
BUILDLINK_TRANSFORM+= l:boost_regex:boost_regex-mt
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "NetBSD"
Update to version 2.1.2. Add build dependencies on GNU make and GNU sed for 'test' target's benefit. Support for input chroot, via make variable SOURCE_HIGHLIGHT_INPUT_CHROOT, deactivated otherwise the build is broken. XXX Is 'TOOLS_PLATFORM.gsed= # empty' the proper way to override a the platform sed tool ? Relinquish stewardship. Changes since last packaged version (1.11): Version 2.1.2 * fixed conversion of hexadecimal characters in output language definitions * fixed compilation error with regex 1.33 * include man page * fixed a bug with LaTeX output of " with some inputencs Version 2.1.1 * fixed a bug that sigsegv when more than one input file is provided * fixed a compilation error with gcc 4.0 Version 2.1 * Included obsolete man page. * output language format specifications are read at run-time so that new output languages can be easily added dynamically (without recompiling the sources) by using a simple syntax. * "fixed" and "notfixed" styles can be specified. * fixed the handling of end-of-line (processed only once) * LaTeX output * TeXinfo output * debug of a language definition * tags.j2h files are now called style files. * renamed --tags-file option in --style-file * allows to specify a prefix for the generated line number anchors * --header and --footer do not imply --doc * language definition for LogTalk and LaTeX Version 2.0 * Language specifications are read at run-time, so that new languages can be easily added dynamically (without recompiling the sources) by using a simple syntax. * "nonsensitive" for simple definitions * cgi version not built automatically * failsafe option to simply output the input file when no language definition is found * functionalities with less improved. Version 1.11.1 * fixed compilations problems on some Unix compilers
2005-10-10 11:05:59 +02:00
# We really need GNU sed not NetBSD's GNuish sed
TOOLS_PLATFORM.gsed= # empty
.endif
Update to version 2.1.2. Add build dependencies on GNU make and GNU sed for 'test' target's benefit. Support for input chroot, via make variable SOURCE_HIGHLIGHT_INPUT_CHROOT, deactivated otherwise the build is broken. XXX Is 'TOOLS_PLATFORM.gsed= # empty' the proper way to override a the platform sed tool ? Relinquish stewardship. Changes since last packaged version (1.11): Version 2.1.2 * fixed conversion of hexadecimal characters in output language definitions * fixed compilation error with regex 1.33 * include man page * fixed a bug with LaTeX output of " with some inputencs Version 2.1.1 * fixed a bug that sigsegv when more than one input file is provided * fixed a compilation error with gcc 4.0 Version 2.1 * Included obsolete man page. * output language format specifications are read at run-time so that new output languages can be easily added dynamically (without recompiling the sources) by using a simple syntax. * "fixed" and "notfixed" styles can be specified. * fixed the handling of end-of-line (processed only once) * LaTeX output * TeXinfo output * debug of a language definition * tags.j2h files are now called style files. * renamed --tags-file option in --style-file * allows to specify a prefix for the generated line number anchors * --header and --footer do not imply --doc * language definition for LogTalk and LaTeX Version 2.0 * Language specifications are read at run-time, so that new languages can be easily added dynamically (without recompiling the sources) by using a simple syntax. * "nonsensitive" for simple definitions * cgi version not built automatically * failsafe option to simply output the input file when no language definition is found * functionalities with less improved. Version 1.11.1 * fixed compilations problems on some Unix compilers
2005-10-10 11:05:59 +02:00
.include "../../devel/boost-libs/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"