forked from mirrors/nixpkgs
sigil: 0.7.4 > 0.9.6
This commit is contained in:
parent
f8560212ca
commit
0efd18746a
|
@ -1,67 +1,42 @@
|
||||||
{ stdenv, fetchurl, unzip, cmake, pkgconfig, makeWrapper
|
{ stdenv, fetchFromGitHub, cmake, pkgconfig, makeWrapper
|
||||||
, hunspell, minizip, boost, xercesc
|
, boost, xercesc
|
||||||
, qtbase, qttools, qtwebkit, qtxmlpatterns
|
, qtbase, qttools, qtwebkit, qtxmlpatterns
|
||||||
|
, python3, python3Packages
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
|
||||||
version = "0.7.4";
|
|
||||||
|
|
||||||
in
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "sigil-${version}";
|
name = "sigil-${version}";
|
||||||
|
version = "0.9.6";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "https://sigil.googlecode.com/files/Sigil-${version}-Code.zip";
|
sha256 = "0hihd5f3avpdvxwp5j80qdg74zbw7p20y6j9q8cw7wd0bak58h9c";
|
||||||
sha256 = "68c7ca15ea8611921af0c435369563f55c6afd2ef1fb0945cf6c4a47429b0fb5";
|
rev = version;
|
||||||
|
repo = "Sigil";
|
||||||
|
owner = "Sigil-Ebook";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pythonPath = with python3Packages; [ lxml ];
|
||||||
|
|
||||||
|
propagatedBuildInputs = with python3Packages; [ lxml ];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
unzip cmake pkgconfig
|
cmake pkgconfig
|
||||||
hunspell minizip boost xercesc qtbase qttools qtwebkit qtxmlpatterns
|
boost xercesc qtbase qttools qtwebkit qtxmlpatterns
|
||||||
|
python3 python3Packages.lxml makeWrapper
|
||||||
];
|
];
|
||||||
|
|
||||||
# XXX: the compiler seems to treat the .h file inappropriately:
|
preFixup = ''
|
||||||
#
|
wrapProgram "$out/bin/sigil" \
|
||||||
# COMMAND ${CMAKE_CXX_COMPILER} ${compile_flags} \
|
--prefix PYTHONPATH : $PYTHONPATH:$(toPythonPath ${python3Packages.lxml})
|
||||||
# ${CMAKE_CURRENT_SOURCE_DIR}/${header_name}.h \
|
|
||||||
# -o ${header_name}.h.gch
|
|
||||||
#
|
|
||||||
# but using -c or -x c++-header seems to work:
|
|
||||||
#
|
|
||||||
# COMMAND ${CMAKE_CXX_COMPILER} ${compile_flags} \
|
|
||||||
# -c ${CMAKE_CURRENT_SOURCE_DIR}/${header_name}.h \
|
|
||||||
# -o ${header_name}.h.gch
|
|
||||||
#
|
|
||||||
# COMMAND ${CMAKE_CXX_COMPILER} ${compile_flags} \
|
|
||||||
# -x c++-header ${CMAKE_CURRENT_SOURCE_DIR}/${header_name}.h \
|
|
||||||
# -o ${header_name}.h.gch
|
|
||||||
#
|
|
||||||
# Might be related to:
|
|
||||||
#
|
|
||||||
# http://permalink.gmane.org/gmane.comp.gcc.bugs/361195
|
|
||||||
buildCommand = ''
|
|
||||||
mkdir -pv $out
|
|
||||||
mkdir -pv ${name}/src ${name}/build ${name}/run
|
|
||||||
cd ${name}/src
|
|
||||||
unzip -n ${src}
|
|
||||||
sed -i \
|
|
||||||
-e 's|\(COMMAND\) \([^ ]\+\) \([^ ]\+\) \(.*\)|\1 \2 \3 -c \4|' \
|
|
||||||
cmake_extras/CustomPCH.cmake
|
|
||||||
cd ../build
|
|
||||||
cmake -G "Unix Makefiles" \
|
|
||||||
-DCMAKE_INSTALL_PREFIX=$out \
|
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
|
||||||
-DCMAKE_SKIP_BUILD_RPATH=ON \
|
|
||||||
../src
|
|
||||||
make
|
|
||||||
make install
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Free, open source, multi-platform ebook (ePub) editor";
|
description = "Free, open source, multi-platform ebook (ePub) editor";
|
||||||
homepage = https://code.google.com/p/sigil/;
|
homepage = https://github.com/Sigil-Ebook/Sigil/;
|
||||||
license = stdenv.lib.licenses.gpl3;
|
license = stdenv.lib.licenses.gpl3;
|
||||||
inherit version;
|
inherit version;
|
||||||
|
maintainers = with stdenv.lib.maintainers; [ ramkromberg ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue