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
|
2005-06-22 02:18:46 +02:00
|
|
|
PORTVERSION= 2.2.10
|
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/
|
2003-12-04 15:41:45 +01:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION:R}-${PORTVERSION:E}
|
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
|
|
|
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
|
|
COMMENT= Customizable syntax highlighter
|
|
|
|
|
2003-12-04 15:41:45 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/${PORTNAME}
|
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-09-30 07:32:00 +02:00
|
|
|
USE_GCC= 3.4
|
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
|
|
|
USE_GETOPT_LONG= yes
|
|
|
|
USE_REINPLACE= yes
|
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}"
|
2003-12-04 15:41:45 +01:00
|
|
|
ALL_TARGET= ${PORTNAME}
|
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)
|
|
|
|
PORTDOCS= *
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.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:
|
2003-12-04 15:41:45 +01:00
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|/usr/share/highlight|${DATADIR}|' ${WRKSRC}/datadir.cpp
|
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:
|
2003-12-04 15:41:45 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/../man/${MAN1}.gz ${MANPREFIX}/man/man1
|
|
|
|
@${MKDIR} ${DATADIR}
|
2005-06-22 02:18:46 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/../extensions.conf ${DATADIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/../scriptre.conf ${DATADIR}
|
2003-12-04 15:41:45 +01:00
|
|
|
@${MKDIR} ${DATADIR}/helpmsg
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/../helpmsg/* ${DATADIR}/helpmsg
|
|
|
|
@${MKDIR} ${DATADIR}/langDefs
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/../langDefs/*.lang ${DATADIR}/langDefs
|
|
|
|
@${MKDIR} ${DATADIR}/themes
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/../themes/* ${DATADIR}/themes
|
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}
|
|
|
|
.for i in AUTHORS ChangeLog INSTALL README
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/../${i} ${DOCSDIR}
|
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
|
|
|
.endfor
|
2003-12-04 15:41:45 +01:00
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
2004-11-04 22:59:30 +01:00
|
|
|
${TAR} -C ${WRKSRC}/../examples -cf - . | \
|
2003-12-04 15:41:45 +01:00
|
|
|
${TAR} -C ${EXAMPLESDIR} --unlink -xf -
|
|
|
|
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}
|
|
|
|
.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:
|
|
|
|
.for dir in ${PREFIX}/share/${PORTNAME} ${PREFIX}/share/examples/${PORTNAME}
|
|
|
|
@${FIND} ${dir} ! -type d | \
|
|
|
|
${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
|
|
|
|
@${FIND} ${dir} -type d | ${SORT} -r | \
|
|
|
|
${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|