2008-03-28 11:16:43 +00:00
|
|
|
args : with args;
|
|
|
|
rec {
|
|
|
|
src = fetchurl {
|
|
|
|
url = http://downloads.sourceforge.net/jfsrec/jfsrec-svn-7.tar.gz;
|
|
|
|
sha256 = "163z6ljr05vw2k5mj4fim2nlg4khjyibrii95370pvn474mg28vg";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [boost];
|
|
|
|
configureFlags = [];
|
|
|
|
|
2009-05-20 00:25:58 +01:00
|
|
|
doFixBoost = fullDepEntry (''
|
2008-03-28 11:16:43 +00:00
|
|
|
sed -e 's/-lboost_[a-z_]*/&-mt/g' -i src/Makefile.in
|
|
|
|
'') ["minInit" "doUnpack"];
|
|
|
|
|
2009-05-20 00:25:58 +01:00
|
|
|
doFixInc = fullDepEntry (''
|
2009-05-07 08:00:31 +01:00
|
|
|
sed -e '/[#]include [<]config.h[>]/a\#include <string.h>' -i src/unicode_to_utf8.cpp
|
|
|
|
cat src/unicode_to_utf8.cpp
|
|
|
|
'') ["minInit" "doUnpack"];
|
|
|
|
|
2008-03-28 11:16:43 +00:00
|
|
|
/* doConfigure should be specified separately */
|
2009-05-07 08:00:31 +01:00
|
|
|
phaseNames = ["doFixBoost" "doFixInc" "doConfigure" "doMakeInstall"];
|
2008-03-28 11:16:43 +00:00
|
|
|
|
|
|
|
name = "jfsrec-" + version;
|
|
|
|
meta = {
|
|
|
|
description = "JFS recovery tool";
|
|
|
|
};
|
|
|
|
}
|