diff --git a/textproc/ctpp2/Makefile b/textproc/ctpp2/Makefile index 19a53e0f4040..7ac2417152fd 100644 --- a/textproc/ctpp2/Makefile +++ b/textproc/ctpp2/Makefile @@ -1,46 +1,46 @@ PORTNAME= ctpp2 PORTVERSION= 2.8.3 -PORTREVISION= 8 +PORTREVISION= 9 CATEGORIES= textproc devel MASTER_SITES= http://ctpp.havoc.ru/download/ MAINTAINER= ports@FreeBSD.org COMMENT= C++ library to use templates in C/C++ projects, version 2 WWW= http://ctpp.havoc.ru/ USES= cmake compiler:c++11-lang gettext USE_CXXSTD= c++14 USE_LDCONFIG= yes CMAKE_ARGS= -DICONV_INCLUDE=${ICONV_INCLUDE_PATH} PLIST_SUB+= PORTVERSION=${PORTVERSION} PORTDOCS= template_language.html OPTIONS_DEFINE= DEBUG DISCARD_ILSEQ DOCS MD5 OPTIMIZATION TRANSLITERATE OPTIONS_DEFAULT= DISCARD_ILSEQ MD5 OPTIMIZATION TRANSLITERATE OPTIONS_SUB= yes DEBUG_DESC= Enable debug output DISCARD_ILSEQ_DESC= Discard illegal sequence and continue MD5_DESC= Enable md5 support OPTIMIZATION_DESC= Enable optimization TRANSLITERATE_DESC= Enable transliteration in the conversion DEBUG_CMAKE_ON= -DDEBUG_MODE=ON DEBUG_CMAKE_OFF= -DDEBUG_MODE=OFF DISCARD_ILSEQ_CMAKE_ON= -DICONV_DISCARD_ILSEQ=ON DISCARD_ILSEQ_CMAKE_OFF= -DICONV_DISCARD_ILSEQ=OFF DOCS_BUILD_DEPENDS= rst2html:textproc/py-docutils DOCS_CMAKE_ON= -DENABLE_DOCS=ON DOCS_CMAKE_OFF= -DENABLE_DOCS=OFF MD5_CMAKE_ON= -DMD5_SUPPORT=ON MD5_CMAKE_OFF= -DMD5_SUPPORT=OFF OPTIMIZATION_CMAKE_ON= -DENABLE_OPTIMIZATION=ON OPTIMIZATION_CMAKE_OFF= -DENABLE_OPTIMIZATION=OFF TRANSLITERATE_USES= iconv:translit TRANSLITERATE_USES_OFF= iconv TRANSLITERATE_CMAKE_ON= -DICONV_TRANSLITERATE=ON TRANSLITERATE_CMAKE_OFF= -DICONV_TRANSLITERATE=OFF .include diff --git a/textproc/ctpp2/files/patch-CMakeLists.txt b/textproc/ctpp2/files/patch-CMakeLists.txt index 378a5bbf614b..0aa603eb59ce 100644 --- a/textproc/ctpp2/files/patch-CMakeLists.txt +++ b/textproc/ctpp2/files/patch-CMakeLists.txt @@ -1,44 +1,50 @@ ---- CMakeLists.txt.orig 2012-11-10 20:45:57.000000000 +0000 -+++ CMakeLists.txt 2013-10-17 11:18:51.783970185 +0000 -@@ -21,6 +21,7 @@ +--- CMakeLists.txt.orig 2012-11-10 20:45:57 UTC ++++ CMakeLists.txt +@@ -21,6 +21,7 @@ OPTION(ICONV_TRANSLITERATE "Enable transliteration in OPTION(ICONV_DISCARD_ILSEQ "Discard illegal sequence and continue (iconv) [default: ON]" ON) OPTION(ICONV_TRANSLITERATE "Enable transliteration in the conversion (iconv) [default: ON]" ON) +OPTION(ENABLE_DOCS "Enable docs [default: OFF]" OFF) # Build optimized code for following CPU (default i386) #SET(CPU_TUNE "i686") -@@ -660,6 +661,8 @@ +@@ -660,6 +661,8 @@ ENDIF (DIFF_EXECUTABLE) SET_TESTS_PROPERTIES(Calls_D PROPERTIES DEPENDS Calls_R) ENDIF (DIFF_EXECUTABLE) + +IF(ENABLE_DOCS MATCHES "ON") FIND_PROGRAM(RST2HTML_EXECUTABLE "rst2html" /usr/local/bin /usr/bin) IF (RST2HTML_EXECUTABLE) ADD_CUSTOM_COMMAND( -@@ -669,6 +672,7 @@ +@@ -669,6 +672,7 @@ ENDIF (RST2HTML_EXECUTABLE) ) ADD_CUSTOM_TARGET(doc ALL DEPENDS template_language.html) ENDIF (RST2HTML_EXECUTABLE) +ENDIF(ENABLE_DOCS MATCHES "ON") # Install Headers INSTALL(FILES include/CDT.hpp -@@ -814,13 +818,15 @@ +@@ -809,18 +813,20 @@ INSTALL(FILES + man/ctpp2i.1 + man/ctpp2json.1 + man/ctpp2vm.1 +- DESTINATION man/man1 ++ DESTINATION share/man/man1 + PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ) +IF(ENABLE_DOCS MATCHES "ON") IF(RST2HTML_EXECUTABLE) INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/template_language.html - DESTINATION share/doc + DESTINATION share/doc/ctpp2 PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ) ENDIF(RST2HTML_EXECUTABLE) +ENDIF(ENABLE_DOCS MATCHES "ON") ENDIF("${CMAKE_SYSTEM_NAME}" MATCHES "Windows") diff --git a/textproc/ctpp2/pkg-plist b/textproc/ctpp2/pkg-plist index 098791af4405..8b0f369a2323 100644 --- a/textproc/ctpp2/pkg-plist +++ b/textproc/ctpp2/pkg-plist @@ -1,76 +1,76 @@ bin/ctpp2-config bin/ctpp2c bin/ctpp2i bin/ctpp2json bin/ctpp2vm include/ctpp2/CDT.hpp include/ctpp2/CDTSortRoutines.hpp include/ctpp2/CTPP2BitIndex.hpp include/ctpp2/CTPP2CharIterator.hpp include/ctpp2/CTPP2Compiler.hpp include/ctpp2/CTPP2DTOA.hpp include/ctpp2/CTPP2Exception.hpp include/ctpp2/CTPP2Error.hpp include/ctpp2/CTPP2ErrorCodes.h include/ctpp2/CTPP2FileLogger.hpp include/ctpp2/CTPP2FileOutputCollector.hpp include/ctpp2/CTPP2FileSourceLoader.hpp include/ctpp2/CTPP2GetText.hpp include/ctpp2/CTPP2GlobalDefines.h include/ctpp2/CTPP2HashTable.hpp include/ctpp2/CTPP2JSONFileParser.hpp include/ctpp2/CTPP2JSONParser.hpp include/ctpp2/CTPP2Logger.hpp include/ctpp2/CTPP2OutputCollector.hpp include/ctpp2/CTPP2Parser.hpp include/ctpp2/CTPP2ParserException.hpp include/ctpp2/CTPP2SimpleCompiler.hpp include/ctpp2/CTPP2SimpleVM.hpp include/ctpp2/CTPP2SourceLoader.hpp include/ctpp2/CTPP2Sprintf.hpp include/ctpp2/CTPP2StaticData.hpp include/ctpp2/CTPP2StaticText.hpp include/ctpp2/CTPP2StreamOutputCollector.hpp include/ctpp2/CTPP2StringBuffer.hpp include/ctpp2/CTPP2StringIconvOutputCollector.hpp include/ctpp2/CTPP2StringOutputCollector.hpp include/ctpp2/CTPP2SymbolTable.hpp include/ctpp2/CTPP2Syntax.h include/ctpp2/CTPP2SysHeaders.h include/ctpp2/CTPP2SysTypes.h include/ctpp2/CTPP2SyscallFactory.hpp include/ctpp2/CTPP2Types.h include/ctpp2/CTPP2Util.hpp include/ctpp2/CTPP2VM.hpp include/ctpp2/CTPP2VMArgStack.hpp include/ctpp2/CTPP2VMCodeStack.hpp include/ctpp2/CTPP2VMDebugInfo.hpp include/ctpp2/CTPP2VMDumper.hpp include/ctpp2/CTPP2VMException.hpp include/ctpp2/CTPP2VMExecutable.hpp include/ctpp2/CTPP2VMFileLoader.hpp include/ctpp2/CTPP2VMInstruction.hpp include/ctpp2/CTPP2VMLoader.hpp include/ctpp2/CTPP2VMMemoryCore.hpp include/ctpp2/CTPP2VMOpcodeCollector.hpp include/ctpp2/CTPP2VMOpcodes.h include/ctpp2/CTPP2VMSTDLib.hpp include/ctpp2/CTPP2VMStackException.hpp include/ctpp2/CTPP2VMSyscall.hpp include/ctpp2/STLException.hpp include/ctpp2/STLFunctional.hpp include/ctpp2/STLIosfwd.hpp include/ctpp2/STLMap.hpp include/ctpp2/STLOstream.hpp include/ctpp2/STLPair.hpp include/ctpp2/STLString.hpp include/ctpp2/STLVector.hpp lib/libctpp2-st.a lib/libctpp2.so lib/libctpp2.so.2 lib/libctpp2.so.%%PORTVERSION%% -man/man1/ctpp2c.1.gz -man/man1/ctpp2vm.1.gz -man/man1/ctpp2i.1.gz -man/man1/ctpp2json.1.gz -man/man1/ctpp2-config.1.gz +share/man/man1/ctpp2c.1.gz +share/man/man1/ctpp2vm.1.gz +share/man/man1/ctpp2i.1.gz +share/man/man1/ctpp2json.1.gz +share/man/man1/ctpp2-config.1.gz