gnucash: fix update-gnucash-gconf script so that it works on NixOS
Current versions of gconftool-2 don't support the --config-source option anymore -- that path must be passed in $GCONF_CONFIG_SOURCE instead. svn path=/nixpkgs/trunk/; revision=27729
This commit is contained in:
parent
69dca5f4aa
commit
2685bfc32b
@ -23,9 +23,7 @@ stdenv.mkDerivation {
|
|||||||
gettext intltool perl guile slibGuile swig isocodes bzip2 makeWrapper
|
gettext intltool perl guile slibGuile swig isocodes bzip2 makeWrapper
|
||||||
];
|
];
|
||||||
|
|
||||||
NIX_LDFLAGS = "-rpath=${libgnomeui}/lib/libglade/2.0 -rpath=${libbonoboui}/lib/libglade/2.0 -rpath=${guile}/lib";
|
configureFlags = "CFLAGS=-O3 CXXFLAGS=-O3 --disable-dbi";
|
||||||
|
|
||||||
configureFlags = "CPPFLAGS=-DNDEBUG CFLAGS=-O2 CXXFLAGS=-O2 --disable-dbi";
|
|
||||||
/* More flags to figure out:
|
/* More flags to figure out:
|
||||||
|
|
||||||
--enable-gtkmm enable gtkmm gui
|
--enable-gtkmm enable gtkmm gui
|
||||||
@ -35,17 +33,26 @@ stdenv.mkDerivation {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
|
sed -i $out/bin/update-gnucash-gconf \
|
||||||
|
-e 's|--config-source=[^ ]* --install-schema-file|--makefile-install-rule|'
|
||||||
for prog in "$out/bin/"*
|
for prog in "$out/bin/"*
|
||||||
do
|
do
|
||||||
wrapProgram "$prog" \
|
wrapProgram "$prog" \
|
||||||
--set SCHEME_LIBRARY_PATH "$SCHEME_LIBRARY_PATH" \
|
--set SCHEME_LIBRARY_PATH "$SCHEME_LIBRARY_PATH" \
|
||||||
--prefix GUILE_LOAD_PATH ":" "$GUILE_LOAD_PATH" \
|
--prefix GUILE_LOAD_PATH ":" "$GUILE_LOAD_PATH" \
|
||||||
--prefix PATH ":" "${gconf}/bin"
|
--prefix LD_LIBRARY_PATH ":" "${libgnomeui}/lib/libglade/2.0" \
|
||||||
|
--prefix LD_LIBRARY_PATH ":" "${libbonoboui}/lib/libglade/2.0" \
|
||||||
|
--set GCONF_CONFIG_SOURCE 'xml::~/.gconf' \
|
||||||
|
--prefix PATH ":" "${gconf}/bin" \
|
||||||
|
--suffix PATH ":" "$out/bin"
|
||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
# The following settings fix failures in the test suite. It's not required otherwise.
|
||||||
|
NIX_LDFLAGS = "-rpath=${guile}/lib";
|
||||||
preCheck = "export GNC_DOT_DIR=$PWD/dot-gnucash";
|
preCheck = "export GNC_DOT_DIR=$PWD/dot-gnucash";
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user