Add highlight.
highlight is a customizable source code highlighter. It supports a
myriad of output formats, and an even greater myriad of recognized
source code formats, and even supports themes.
highlight can output to HTML, XHTML, RTF, LaTeX and TeX, and can
markup many input formats, including:
Ada 95, Agda, AMPL, Aspect, Assembler, Amtrix, Avenue, (G)AWK, Bash,
BlitzBasic, BMS, C, C++, C#, ClearBasic, Clipper, COBOL, CSS, DOS-Batch,
Eiffel, Euphoria, Express, Fortran, Haskell, HTML, HTTPD, IDL, INI,
Jasmin, Java, JavaScript, LaTeX, LDIF, Lotus Script, Lua, Make, Maya,
Matlab, Modelica, Modula 3, (Object) Pascal, Paradox, PATROL, Perl, PHP,
Pike, PL/1, PL/SQL, POV Ray, Progress, Python, Rexx, Ruby, Small, Spin,
Sybase, VHDL, Visual Basic, and XML.
phew!
2003-08-11 01:39:33 +02:00
|
|
|
# New ports collection makefile for: highlight
|
|
|
|
# Date created: 05 August 2003
|
|
|
|
# Whom: Adam Weinberger <adamw@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= highlight
|
2009-10-21 07:35:40 +02:00
|
|
|
PORTVERSION= 2.13
|
2004-06-21 03:23:00 +02:00
|
|
|
PORTEPOCH= 1
|
Add highlight.
highlight is a customizable source code highlighter. It supports a
myriad of output formats, and an even greater myriad of recognized
source code formats, and even supports themes.
highlight can output to HTML, XHTML, RTF, LaTeX and TeX, and can
markup many input formats, including:
Ada 95, Agda, AMPL, Aspect, Assembler, Amtrix, Avenue, (G)AWK, Bash,
BlitzBasic, BMS, C, C++, C#, ClearBasic, Clipper, COBOL, CSS, DOS-Batch,
Eiffel, Euphoria, Express, Fortran, Haskell, HTML, HTTPD, IDL, INI,
Jasmin, Java, JavaScript, LaTeX, LDIF, Lotus Script, Lua, Make, Maya,
Matlab, Modelica, Modula 3, (Object) Pascal, Paradox, PATROL, Perl, PHP,
Pike, PL/1, PL/SQL, POV Ray, Progress, Python, Rexx, Ruby, Small, Spin,
Sybase, VHDL, Visual Basic, and XML.
phew!
2003-08-11 01:39:33 +02:00
|
|
|
CATEGORIES= textproc
|
|
|
|
MASTER_SITES= http://www.andre-simon.de/zip/
|
|
|
|
|
2009-08-07 17:52:40 +02:00
|
|
|
MAINTAINER= yzlin@FreeBSD.org
|
Add highlight.
highlight is a customizable source code highlighter. It supports a
myriad of output formats, and an even greater myriad of recognized
source code formats, and even supports themes.
highlight can output to HTML, XHTML, RTF, LaTeX and TeX, and can
markup many input formats, including:
Ada 95, Agda, AMPL, Aspect, Assembler, Amtrix, Avenue, (G)AWK, Bash,
BlitzBasic, BMS, C, C++, C#, ClearBasic, Clipper, COBOL, CSS, DOS-Batch,
Eiffel, Euphoria, Express, Fortran, Haskell, HTML, HTTPD, IDL, INI,
Jasmin, Java, JavaScript, LaTeX, LDIF, Lotus Script, Lua, Make, Maya,
Matlab, Modelica, Modula 3, (Object) Pascal, Paradox, PATROL, Perl, PHP,
Pike, PL/1, PL/SQL, POV Ray, Progress, Python, Rexx, Ruby, Small, Spin,
Sybase, VHDL, Visual Basic, and XML.
phew!
2003-08-11 01:39:33 +02:00
|
|
|
COMMENT= Customizable syntax highlighter
|
|
|
|
|
2003-12-04 15:41:45 +01:00
|
|
|
USE_GMAKE= yes
|
|
|
|
MAKEFILE= makefile
|
2004-11-04 22:59:30 +01:00
|
|
|
MAKE_ARGS= CXX="${CXX}" \
|
2003-12-22 12:32:41 +01:00
|
|
|
CFLAGS="${CXXFLAGS} ${CPPFLAGS} -DHAVE_DECL_GETOPT" \
|
|
|
|
LDFLAGS="${LDFLAGS}"
|
Add highlight.
highlight is a customizable source code highlighter. It supports a
myriad of output formats, and an even greater myriad of recognized
source code formats, and even supports themes.
highlight can output to HTML, XHTML, RTF, LaTeX and TeX, and can
markup many input formats, including:
Ada 95, Agda, AMPL, Aspect, Assembler, Amtrix, Avenue, (G)AWK, Bash,
BlitzBasic, BMS, C, C++, C#, ClearBasic, Clipper, COBOL, CSS, DOS-Batch,
Eiffel, Euphoria, Express, Fortran, Haskell, HTML, HTTPD, IDL, INI,
Jasmin, Java, JavaScript, LaTeX, LDIF, Lotus Script, Lua, Make, Maya,
Matlab, Modelica, Modula 3, (Object) Pascal, Paradox, PATROL, Perl, PHP,
Pike, PL/1, PL/SQL, POV Ray, Progress, Python, Rexx, Ruby, Small, Spin,
Sybase, VHDL, Visual Basic, and XML.
phew!
2003-08-11 01:39:33 +02:00
|
|
|
|
2004-06-21 03:18:30 +02:00
|
|
|
PLIST_FILES= bin/highlight
|
|
|
|
|
Add highlight.
highlight is a customizable source code highlighter. It supports a
myriad of output formats, and an even greater myriad of recognized
source code formats, and even supports themes.
highlight can output to HTML, XHTML, RTF, LaTeX and TeX, and can
markup many input formats, including:
Ada 95, Agda, AMPL, Aspect, Assembler, Amtrix, Avenue, (G)AWK, Bash,
BlitzBasic, BMS, C, C++, C#, ClearBasic, Clipper, COBOL, CSS, DOS-Batch,
Eiffel, Euphoria, Express, Fortran, Haskell, HTML, HTTPD, IDL, INI,
Jasmin, Java, JavaScript, LaTeX, LDIF, Lotus Script, Lua, Make, Maya,
Matlab, Modelica, Modula 3, (Object) Pascal, Paradox, PATROL, Perl, PHP,
Pike, PL/1, PL/SQL, POV Ray, Progress, Python, Rexx, Ruby, Small, Spin,
Sybase, VHDL, Visual Basic, and XML.
phew!
2003-08-11 01:39:33 +02:00
|
|
|
MAN1= ${PORTNAME}.1
|
|
|
|
MANCOMPRESSED= yes
|
|
|
|
|
2004-06-21 03:18:30 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2009-08-07 17:52:40 +02:00
|
|
|
PORTDOCS= ChangeLog INSTALL README README_DE \
|
2008-12-17 16:57:13 +01:00
|
|
|
README_LANGLIST README_REGEX TODO
|
|
|
|
|
2004-06-21 03:18:30 +02:00
|
|
|
.endif
|
|
|
|
|
2007-10-10 02:05:19 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
Add highlight.
highlight is a customizable source code highlighter. It supports a
myriad of output formats, and an even greater myriad of recognized
source code formats, and even supports themes.
highlight can output to HTML, XHTML, RTF, LaTeX and TeX, and can
markup many input formats, including:
Ada 95, Agda, AMPL, Aspect, Assembler, Amtrix, Avenue, (G)AWK, Bash,
BlitzBasic, BMS, C, C++, C#, ClearBasic, Clipper, COBOL, CSS, DOS-Batch,
Eiffel, Euphoria, Express, Fortran, Haskell, HTML, HTTPD, IDL, INI,
Jasmin, Java, JavaScript, LaTeX, LDIF, Lotus Script, Lua, Make, Maya,
Matlab, Modelica, Modula 3, (Object) Pascal, Paradox, PATROL, Perl, PHP,
Pike, PL/1, PL/SQL, POV Ray, Progress, Python, Rexx, Ruby, Small, Spin,
Sybase, VHDL, Visual Basic, and XML.
phew!
2003-08-11 01:39:33 +02:00
|
|
|
post-patch:
|
2009-03-30 23:48:30 +02:00
|
|
|
@${REINPLACE_CMD} \
|
|
|
|
-e 's|^PREFIX =|PREFIX ?=|' \
|
|
|
|
-e 's|^conf_dir =.*|conf_dir = $${PREFIX}/etc/highlight/|' \
|
|
|
|
${WRKSRC}/${MAKEFILE}
|
|
|
|
@${REINPLACE_CMD} -e 's|^CXX=|CXX?=|' ${WRKSRC}/src/${MAKEFILE}
|
Add highlight.
highlight is a customizable source code highlighter. It supports a
myriad of output formats, and an even greater myriad of recognized
source code formats, and even supports themes.
highlight can output to HTML, XHTML, RTF, LaTeX and TeX, and can
markup many input formats, including:
Ada 95, Agda, AMPL, Aspect, Assembler, Amtrix, Avenue, (G)AWK, Bash,
BlitzBasic, BMS, C, C++, C#, ClearBasic, Clipper, COBOL, CSS, DOS-Batch,
Eiffel, Euphoria, Express, Fortran, Haskell, HTML, HTTPD, IDL, INI,
Jasmin, Java, JavaScript, LaTeX, LDIF, Lotus Script, Lua, Make, Maya,
Matlab, Modelica, Modula 3, (Object) Pascal, Paradox, PATROL, Perl, PHP,
Pike, PL/1, PL/SQL, POV Ray, Progress, Python, Rexx, Ruby, Small, Spin,
Sybase, VHDL, Visual Basic, and XML.
phew!
2003-08-11 01:39:33 +02:00
|
|
|
|
|
|
|
do-install:
|
2008-03-31 23:40:34 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} ${PREFIX}/bin
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/man/${MAN1}.gz ${MANPREFIX}/man/man1
|
|
|
|
@${MKDIR} ${ETCDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/filetypes.conf ${ETCDIR}
|
2009-08-07 17:52:40 +02:00
|
|
|
.for d in langDefs themes
|
2009-05-15 15:26:58 +02:00
|
|
|
@${MKDIR} ${DATADIR}/$d
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/$d/* ${DATADIR}/$d
|
|
|
|
.endfor
|
Add highlight.
highlight is a customizable source code highlighter. It supports a
myriad of output formats, and an even greater myriad of recognized
source code formats, and even supports themes.
highlight can output to HTML, XHTML, RTF, LaTeX and TeX, and can
markup many input formats, including:
Ada 95, Agda, AMPL, Aspect, Assembler, Amtrix, Avenue, (G)AWK, Bash,
BlitzBasic, BMS, C, C++, C#, ClearBasic, Clipper, COBOL, CSS, DOS-Batch,
Eiffel, Euphoria, Express, Fortran, Haskell, HTML, HTTPD, IDL, INI,
Jasmin, Java, JavaScript, LaTeX, LDIF, Lotus Script, Lua, Make, Maya,
Matlab, Modelica, Modula 3, (Object) Pascal, Paradox, PATROL, Perl, PHP,
Pike, PL/1, PL/SQL, POV Ray, Progress, Python, Rexx, Ruby, Small, Spin,
Sybase, VHDL, Visual Basic, and XML.
phew!
2003-08-11 01:39:33 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2003-12-04 15:41:45 +01:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
2008-12-17 16:57:13 +01:00
|
|
|
${INSTALL_MAN} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
|
|
|
|
.endif
|
|
|
|
.if !defined(NOPORTEXAMPLES)
|
2003-12-04 15:41:45 +01:00
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
2008-12-17 16:57:13 +01:00
|
|
|
(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} \* ${EXAMPLESDIR})
|
2003-12-04 15:41:45 +01:00
|
|
|
.endif
|
Add highlight.
highlight is a customizable source code highlighter. It supports a
myriad of output formats, and an even greater myriad of recognized
source code formats, and even supports themes.
highlight can output to HTML, XHTML, RTF, LaTeX and TeX, and can
markup many input formats, including:
Ada 95, Agda, AMPL, Aspect, Assembler, Amtrix, Avenue, (G)AWK, Bash,
BlitzBasic, BMS, C, C++, C#, ClearBasic, Clipper, COBOL, CSS, DOS-Batch,
Eiffel, Euphoria, Express, Fortran, Haskell, HTML, HTTPD, IDL, INI,
Jasmin, Java, JavaScript, LaTeX, LDIF, Lotus Script, Lua, Make, Maya,
Matlab, Modelica, Modula 3, (Object) Pascal, Paradox, PATROL, Perl, PHP,
Pike, PL/1, PL/SQL, POV Ray, Progress, Python, Rexx, Ruby, Small, Spin,
Sybase, VHDL, Visual Basic, and XML.
phew!
2003-08-11 01:39:33 +02:00
|
|
|
|
2004-06-21 03:18:30 +02:00
|
|
|
post-install:
|
2008-03-31 23:40:34 +02:00
|
|
|
.for dir in ${ETCDIR} ${DATADIR} ${EXAMPLESDIR}
|
2004-06-21 03:18:30 +02:00
|
|
|
@${FIND} ${dir} ! -type d | \
|
|
|
|
${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
|
|
|
|
@${FIND} ${dir} -type d | ${SORT} -r | \
|
|
|
|
${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
|
|
|
|
.endfor
|
|
|
|
|
2007-10-10 02:05:19 +02:00
|
|
|
.include <bsd.port.post.mk>
|