nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1diff -Naur teapot-2.3.0-old/CMakeLists.txt teapot-2.3.0-new/CMakeLists.txt
2--- teapot-2.3.0-old/CMakeLists.txt 1969-12-31 21:00:01.000000000 -0300
3+++ teapot-2.3.0-new/CMakeLists.txt 2021-11-25 18:16:06.594423660 -0300
4@@ -64,46 +64,6 @@
5 install(TARGETS fteapot DESTINATION bin)
6 endif ()
7
8-if (ENABLE_HELP)
9- add_custom_command(
10- OUTPUT teapot.tex teapot.lyx
11- MAIN_DEPENDENCY ${CMAKE_CURRENT_SOURCE_DIR}/doc/teapot.lyx
12- VERBATIM
13- COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/doc/teapot.lyx teapot.lyx
14- COMMAND lyx -e pdflatex -f main teapot.lyx
15- )
16- add_custom_command(
17- OUTPUT teapot.pdf teapot.aux.old teapot.log teapot.toc
18- MAIN_DEPENDENCY teapot.tex
19- VERBATIM
20- COMMAND pdflatex teapot.tex; diff -q teapot.aux.old teapot.aux && cp teapot.aux teapot.aux.old
21- COMMAND pdflatex teapot.tex; diff -q teapot.aux.old teapot.aux && cp teapot.aux teapot.aux.old
22- )
23- add_custom_command(OUTPUT teapot.pdf teapot.out MAIN_DEPENDENCY teapot.tex teapot.aux.old VERBATIM COMMAND pdflatex teapot.tex; diff -q teapot.aux.old teapot.aux && cp teapot.aux teapot.aux.old)
24- add_custom_command(
25- OUTPUT html/ html/index.html .latex2html-init
26- MAIN_DEPENDENCY teapot.tex
27- DEPENDS teapot.tex teapot.pdf ${CMAKE_CURRENT_SOURCE_DIR}/doc/.latex2html-init
28- VERBATIM
29- COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/doc/.latex2html-init .latex2html-init
30- COMMAND ${CMAKE_COMMAND} -E make_directory html
31- COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/doc/contents.png html/
32- COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/doc/next.png html/
33- COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/doc/next_g.png html/
34- COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/doc/prev.png html/
35- COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/doc/prev_g.png html/
36- COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/doc/up.png html/
37- COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/doc/up_g.png html/
38- COMMAND latex2html teapot.tex
39- )
40- add_custom_target(pdf DEPENDS teapot.pdf)
41- add_custom_target(html DEPENDS html/index.html)
42- add_custom_target(doc ALL DEPENDS teapot.pdf html/index.html)
43- install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html DESTINATION share/doc/teapot FILES_MATCHING PATTERN *.html PATTERN *.png)
44- install(FILES ${CMAKE_CURRENT_BINARY_DIR}/teapot.pdf DESTINATION share/doc/teapot)
45- set(HELPFILE "${CMAKE_INSTALL_PREFIX}/share/doc/teapot/index.html")
46-endif ()
47-
48 install(FILES COPYING README DESTINATION share/doc/teapot)
49 install(FILES teapot.1 DESTINATION share/man/man1)