git.iko.soy/typeable/nixpkgs
on master help sign in
openafs_1_8: Properly generate and split off developer documentation
commit54a69eb80480016341d4825f272b9017a3bd0ac1 authorMichael Raitza <michael.raitza@tu-dresden.de> dateFri 2 Oct 2020, 12:12 (6 years ago) parentf08099d
1 file changed+10−3
pkgs/servers/openafs/1.8/default.nix+10−3
pkgs/servers/openafs/1.8/default.nix+10−3
@@ -1,6 +1,7 @@
11{ stdenv, buildPackages, fetchurl, which, autoconf, automake, flex
22, yacc , glibc, perl, kerberos, libxslt, docbook_xsl, file
33, docbook_xml_dtd_43, libtool_2
4+, withDevdoc ? false, doxygen, dblatex # Extra developer documentation
45, ncurses # Extra ncurses utilities. Needed for debugging and monitoring.
56, tsmbac ? null # Tivoli Storage Manager Backup Client from IBM
67}:
@@ -15,13 +16,13 @@ in stdenv.mkDerivation {
1516
1617 depsBuildBuild = [ buildPackages.stdenv.cc ];
1718 nativeBuildInputs = [ autoconf automake flex libxslt libtool_2 perl
18− which yacc ];
19+ which yacc ] ++ optionals withDevdoc [ doxygen dblatex ];
1920
2021 buildInputs = [ kerberos ncurses ];
2122
2223 patches = [ ./bosserver.patch ./cross-build.patch ] ++ optional (tsmbac != null) ./tsmbac.patch;
2324
24− outputs = [ "out" "dev" "man" "doc" ];
25+ outputs = [ "out" "dev" "man" "doc" ] ++ optional withDevdoc "devdoc";
2526
2627 enableParallelBuilding = false;
2728
@@ -69,16 +70,22 @@ in stdenv.mkDerivation {
6970 for d in doc/xml/{AdminGuide,QuickStartUnix,UserGuide}; do
7071 make -C "''${d}" index.html
7172 done
73+ '' + optionalString withDevdoc ''
74+ make dox
7275 '';
7376
7477 postInstall = ''
7578 mkdir -p $doc/share/doc/openafs/{AdminGuide,QuickStartUnix,UserGuide}
76− cp -r doc/{pdf,protocol,txt} README LICENSE $doc/share/doc/openafs
79+ cp -r doc/txt README LICENSE $doc/share/doc/openafs
7780 for d in AdminGuide QuickStartUnix UserGuide ; do
7881 cp "doc/xml/''${d}"/*.html "$doc/share/doc/openafs/''${d}"
7982 done
8083
8184 rm -r $out/lib/openafs
85+ '' + optionalString withDevdoc ''
86+ mkdir -p $devdoc/share/devhelp/openafs/doxygen
87+ cp -r doc/{pdf,protocol} $devdoc/share/devhelp/openafs
88+ cp -r doc/doxygen/output/html $devdoc/share/devhelp/openafs/doxygen
8289 '';
8390
8491 # Avoid references to $TMPDIR by removing it and let patchelf cleanup the