haskell-hledger: update post-install hooks for the new documentation scheme

This commit is contained in:
Peter Simons 2018-04-01 11:42:53 +02:00
parent d265fc7274
commit 6e3cb231e6

View File

@ -963,37 +963,37 @@ self: super: {
hledger = overrideCabal super.hledger (drv: {
postInstall = ''
for i in $(seq 1 9); do
for j in $data/share/${self.ghc.name}/*-${self.ghc.name}/*/*.$i $data/share/${self.ghc.name}/*-${self.ghc.name}/*/.otherdocs/*.$i; do
for j in embeddedfiles/*.$i; do
mkdir -p $out/share/man/man$i
cp $j $out/share/man/man$i/
cp -v $j $out/share/man/man$i/
done
done
mkdir -p $out/share/info
cp $data/share/${self.ghc.name}/*-${self.ghc.name}/*/*.info $out/share/info/
cp -v embeddedfiles/*.info* $out/share/info/
'';
});
hledger-ui = overrideCabal super.hledger-ui (drv: {
postInstall = ''
for i in $(seq 1 9); do
for j in $data/share/${self.ghc.name}/*-${self.ghc.name}/*/*.$i $data/share/${self.ghc.name}/*-${self.ghc.name}/*/.otherdocs/*.$i; do
for j in *.$i; do
mkdir -p $out/share/man/man$i
cp $j $out/share/man/man$i/
cp -v $j $out/share/man/man$i/
done
done
mkdir -p $out/share/info
cp $data/share/${self.ghc.name}/*-${self.ghc.name}/*/*.info $out/share/info/
cp -v *.info* $out/share/info/
'';
});
hledger-web = overrideCabal super.hledger-web (drv: {
postInstall = ''
for i in $(seq 1 9); do
for j in $data/share/${self.ghc.name}/*-${self.ghc.name}/*/*.$i $data/share/${self.ghc.name}/*-${self.ghc.name}/*/.otherdocs/*.$i; do
for j in *.$i; do
mkdir -p $out/share/man/man$i
cp $j $out/share/man/man$i/
cp -v $j $out/share/man/man$i/
done
done
mkdir -p $out/share/info
cp $data/share/${self.ghc.name}/*-${self.ghc.name}/*/*.info $out/share/info/
cp -v *.info* $out/share/info/
'';
});