libid3tag: move pkgconfig file into the nix-expression directory
[Bjørn Forsman: * use "mkdir -p" instead of "ensureDir" (deprecated) * place *.pc file in $out/lib/pkgconfig/ (instead of $out/share/pkgconfig/ which doesn't work) * prefix commit message with "libid3tag:" ]
This commit is contained in:
parent
9d3fbcd054
commit
97a1b91f1b
2 changed files with 17 additions and 18 deletions
|
@ -14,24 +14,12 @@ stdenv.mkDerivation rec {
|
|||
|
||||
patches = [ ./debian-patches.patch ];
|
||||
|
||||
postInstall = let pkgconfigFile = writeText "id3tag.pc" ''
|
||||
prefix=@out@
|
||||
exec_prefix=''${prefix}
|
||||
libdir=''${exec_prefix}/lib
|
||||
includedir=''${exec_prefix}/include
|
||||
|
||||
Name: libid3tag
|
||||
Description: ID3 tag manipulation library
|
||||
Version: ${version}
|
||||
|
||||
Libs: -L''${libdir} -lid3tag
|
||||
Cflags: -I''${includedir}
|
||||
'';
|
||||
in ''
|
||||
ensureDir $out/share/pkgconfig
|
||||
cp ${pkgconfigFile} $out/share/pkgconfig/id3tag.pc
|
||||
substituteInPlace $out/share/pkgconfig/id3tag.pc \
|
||||
--subst-var-by out $out
|
||||
postInstall = ''
|
||||
mkdir -p $out/lib/pkgconfig
|
||||
cp ${./id3tag.pc} $out/lib/pkgconfig/id3tag.pc
|
||||
substituteInPlace $out/lib/pkgconfig/id3tag.pc \
|
||||
--subst-var-by out $out \
|
||||
--subst-var-by version "${version}"
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
|
11
pkgs/development/libraries/libid3tag/id3tag.pc
Normal file
11
pkgs/development/libraries/libid3tag/id3tag.pc
Normal file
|
@ -0,0 +1,11 @@
|
|||
prefix=@out@
|
||||
exec_prefix=${prefix}
|
||||
libdir=${exec_prefix}/lib
|
||||
includedir=${exec_prefix}/include
|
||||
|
||||
Name: libid3tag
|
||||
Description: ID3 tag manipulation library
|
||||
Version: @version@
|
||||
|
||||
Libs: -L${libdir} -lid3tag
|
||||
Cflags: -I${includedir}
|
Loading…
Reference in a new issue