Merge pull request #301232 from rnhmjoj/pr-podofo
This commit is contained in:
commit
1660bcfff7
|
@ -53,10 +53,6 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
"-DCMAKE_BUILD_WITH_INSTALL_NAME_DIR=ON"
|
"-DCMAKE_BUILD_WITH_INSTALL_NAME_DIR=ON"
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = ''
|
|
||||||
moveToOutput lib "$lib"
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = "https://github.com/podofo/podofo";
|
homepage = "https://github.com/podofo/podofo";
|
||||||
description = "A library to work with the PDF file format";
|
description = "A library to work with the PDF file format";
|
||||||
|
|
|
@ -24,8 +24,13 @@ stdenv.mkDerivation rec {
|
||||||
"-DCMAKE_BUILD_WITH_INSTALL_NAME_DIR=ON"
|
"-DCMAKE_BUILD_WITH_INSTALL_NAME_DIR=ON"
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = ''
|
postPatch = ''
|
||||||
moveToOutput lib "$lib"
|
# Use GNU directories to fix multiple outputs
|
||||||
|
failNoMatches='t yes; b no; :yes h; :no p; $ {x; /./{x;q}; q1}'
|
||||||
|
sed -ni src/podofo/CMakeLists.txt \
|
||||||
|
-e 's/LIBDIRNAME/CMAKE_INSTALL_LIBDIR/' -e "$failNoMatches"
|
||||||
|
sed -ni src/podofo/libpodofo.pc.in \
|
||||||
|
-e 's/^libdir=.*/libdir=@CMAKE_INSTALL_LIBDIR@/' -e "$failNoMatches"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user