Skip to content

Commit

Permalink
textproc/ctpp2: Moved man to share/man
Browse files Browse the repository at this point in the history
Approved by:    portmgr (blanket)
  • Loading branch information
5u623l20 committed Feb 25, 2024
1 parent 4f2999d commit af34333
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 12 deletions.
2 changes: 1 addition & 1 deletion textproc/ctpp2/Makefile
@@ -1,6 +1,6 @@
PORTNAME= ctpp2
PORTVERSION= 2.8.3
PORTREVISION= 8
PORTREVISION= 9
CATEGORIES= textproc devel
MASTER_SITES= http://ctpp.havoc.ru/download/

Expand Down
18 changes: 12 additions & 6 deletions textproc/ctpp2/files/patch-CMakeLists.txt
@@ -1,14 +1,14 @@
--- 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)

Expand All @@ -17,15 +17,21 @@
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)

Expand Down
10 changes: 5 additions & 5 deletions textproc/ctpp2/pkg-plist
Expand Up @@ -69,8 +69,8 @@ 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

0 comments on commit af34333

Please sign in to comment.