scribus: 1.6.4 -> 1.7.0 & refactor (#420682)
This commit is contained in:
commit
efa963dbff
@ -4,14 +4,27 @@
|
|||||||
cmake,
|
cmake,
|
||||||
cups,
|
cups,
|
||||||
fetchurl,
|
fetchurl,
|
||||||
|
fetchpatch,
|
||||||
fontconfig,
|
fontconfig,
|
||||||
freetype,
|
freetype,
|
||||||
|
graphicsmagick,
|
||||||
harfbuzzFull,
|
harfbuzzFull,
|
||||||
hunspell,
|
hunspell,
|
||||||
lcms2,
|
lcms2,
|
||||||
|
libcdr,
|
||||||
|
libfreehand,
|
||||||
libjpeg,
|
libjpeg,
|
||||||
|
libjxl,
|
||||||
|
libmspub,
|
||||||
|
libpagemaker,
|
||||||
|
libqxp,
|
||||||
|
librevenge,
|
||||||
|
libsysprof-capture,
|
||||||
libtiff,
|
libtiff,
|
||||||
|
libvisio,
|
||||||
|
libwpg,
|
||||||
libxml2,
|
libxml2,
|
||||||
|
libzmf,
|
||||||
pixman,
|
pixman,
|
||||||
pkg-config,
|
pkg-config,
|
||||||
podofo_0_10,
|
podofo_0_10,
|
||||||
@ -20,7 +33,7 @@
|
|||||||
python3,
|
python3,
|
||||||
lib,
|
lib,
|
||||||
stdenv,
|
stdenv,
|
||||||
qt5,
|
qt6,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
@ -32,17 +45,17 @@ in
|
|||||||
stdenv.mkDerivation (finalAttrs: {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "scribus";
|
pname = "scribus";
|
||||||
|
|
||||||
version = "1.6.4";
|
version = "1.7.0";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://sourceforge/scribus/scribus-devel/scribus-${finalAttrs.version}.tar.xz";
|
url = "mirror://sourceforge/scribus/scribus-devel/scribus-${finalAttrs.version}.tar.xz";
|
||||||
hash = "sha256-UzvnrwOs+qc27F96P8JWKr0gD+9coqfN7gK19E1hgp4=";
|
hash = "sha256-+lnWIh/3z/qTcjV5l+hlcBYuHhiRNza3F2/RD0jCQ/Y=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
cmake
|
cmake
|
||||||
pkg-config
|
pkg-config
|
||||||
qt5.wrapQtAppsHook
|
qt6.wrapQtAppsHook
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
@ -51,37 +64,63 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
cups
|
cups
|
||||||
fontconfig
|
fontconfig
|
||||||
freetype
|
freetype
|
||||||
|
graphicsmagick
|
||||||
harfbuzzFull
|
harfbuzzFull
|
||||||
hunspell
|
hunspell
|
||||||
lcms2
|
lcms2
|
||||||
|
libcdr
|
||||||
|
libfreehand
|
||||||
libjpeg
|
libjpeg
|
||||||
|
libjxl
|
||||||
|
libpagemaker
|
||||||
|
libqxp
|
||||||
|
librevenge
|
||||||
|
libsysprof-capture
|
||||||
libtiff
|
libtiff
|
||||||
|
libvisio
|
||||||
|
libwpg
|
||||||
libxml2
|
libxml2
|
||||||
|
libzmf
|
||||||
pixman
|
pixman
|
||||||
podofo_0_10
|
podofo_0_10
|
||||||
poppler
|
poppler
|
||||||
poppler_data
|
poppler_data
|
||||||
pythonEnv
|
pythonEnv
|
||||||
qt5.qtbase
|
qt6.qt5compat
|
||||||
qt5.qtimageformats
|
qt6.qtbase
|
||||||
qt5.qttools
|
qt6.qtdeclarative
|
||||||
|
qt6.qtimageformats
|
||||||
|
qt6.qtsvg
|
||||||
|
qt6.qttools
|
||||||
|
] ++ lib.optionals libmspub.meta.available [ libmspub ];
|
||||||
|
|
||||||
|
cmakeFlags = [ (lib.cmakeBool "WANT_GRAPHICSMAGICK" true) ];
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://aur.archlinux.org/cgit/aur.git/plain/fix_build_with_qt_6.9.0.patch?h=scribus-unstable";
|
||||||
|
hash = "sha256-hzd9XpoVVqbwvZ40QPGBqqWkIFXug/tSojf/Ikc4nn4=";
|
||||||
|
})
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://aur.archlinux.org/cgit/aur.git/plain/fix_build_with_poppler_25.02.0.patch?h=scribus-unstable";
|
||||||
|
hash = "sha256-t9xJA6KGMGAdUFyjI8OlTNilewyMr1FFM7vjHOM15Xg=";
|
||||||
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = {
|
||||||
maintainers = with maintainers; [
|
maintainers = with lib.maintainers; [ arthsmn ];
|
||||||
arthsmn
|
|
||||||
];
|
|
||||||
description = "Desktop Publishing (DTP) and Layout program";
|
description = "Desktop Publishing (DTP) and Layout program";
|
||||||
mainProgram = "scribus";
|
mainProgram = "scribus";
|
||||||
homepage = "https://www.scribus.net";
|
homepage = "https://www.scribus.net";
|
||||||
# There are a lot of licenses...
|
# There are a lot of licenses...
|
||||||
# https://github.com/scribusproject/scribus/blob/20508d69ca4fc7030477db8dee79fd1e012b52d2/COPYING#L15-L19
|
# https://github.com/scribusproject/scribus/blob/20508d69ca4fc7030477db8dee79fd1e012b52d2/COPYING#L15-L19
|
||||||
license = with licenses; [
|
license = with lib.licenses; [
|
||||||
bsd3
|
bsd3
|
||||||
gpl2Plus
|
gpl2Plus
|
||||||
mit
|
mit
|
||||||
publicDomain
|
publicDomain
|
||||||
];
|
];
|
||||||
|
platforms = lib.platforms.all;
|
||||||
broken = stdenv.hostPlatform.isDarwin;
|
broken = stdenv.hostPlatform.isDarwin;
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
58
pkgs/by-name/li/libfreehand/package.nix
Normal file
58
pkgs/by-name/li/libfreehand/package.nix
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
stdenv,
|
||||||
|
fetchzip,
|
||||||
|
fetchpatch,
|
||||||
|
perl,
|
||||||
|
pkg-config,
|
||||||
|
boost,
|
||||||
|
cppunit,
|
||||||
|
doxygen,
|
||||||
|
gperf,
|
||||||
|
icu,
|
||||||
|
lcms2,
|
||||||
|
librevenge,
|
||||||
|
zlib,
|
||||||
|
}:
|
||||||
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
|
pname = "libfreehand";
|
||||||
|
version = "0.1.2";
|
||||||
|
|
||||||
|
src = fetchzip {
|
||||||
|
url = "https://dev-www.libreoffice.org/src/libfreehand/libfreehand-${finalAttrs.version}.tar.xz";
|
||||||
|
hash = "sha256-0icEGnTtYveP24FbYjRB7tFW/TquSOszbqZspHAhQ7I=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
perl
|
||||||
|
pkg-config
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
boost
|
||||||
|
cppunit
|
||||||
|
doxygen
|
||||||
|
gperf
|
||||||
|
icu
|
||||||
|
lcms2
|
||||||
|
librevenge
|
||||||
|
zlib
|
||||||
|
];
|
||||||
|
|
||||||
|
configureFlags = [ "--disable-werror" ];
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://gitlab.archlinux.org/archlinux/packaging/packages/libfreehand/-/raw/main/libfreehand-0.1.2-icu-fix.patch?ref_type=heads";
|
||||||
|
hash = "sha256-SRkcF+FRkFdueLSTOMYWo6+CCl05f0OBP6G5VrXRyCw=";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Adobe Freehand import library";
|
||||||
|
homepage = "https://wiki.documentfoundation.org/DLP/Libraries/libfreehand";
|
||||||
|
license = lib.licenses.mpl20;
|
||||||
|
maintainers = with lib.maintainers; [ arthsmn ];
|
||||||
|
platforms = lib.platforms.all;
|
||||||
|
};
|
||||||
|
})
|
49
pkgs/by-name/li/libmspub/package.nix
Normal file
49
pkgs/by-name/li/libmspub/package.nix
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
stdenv,
|
||||||
|
fetchzip,
|
||||||
|
fetchpatch,
|
||||||
|
pkg-config,
|
||||||
|
boost,
|
||||||
|
doxygen,
|
||||||
|
icu,
|
||||||
|
librevenge,
|
||||||
|
zlib,
|
||||||
|
}:
|
||||||
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
|
pname = "libmspub";
|
||||||
|
version = "0.1.4";
|
||||||
|
|
||||||
|
src = fetchzip {
|
||||||
|
url = "https://dev-www.libreoffice.org/src/libmspub/libmspub-${finalAttrs.version}.tar.xz";
|
||||||
|
hash = "sha256-/6e9IGcTIZTlnsakOaSjTn3DsO9ZNQigdCCbMbrBTQE=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ pkg-config ];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
boost
|
||||||
|
doxygen
|
||||||
|
icu
|
||||||
|
librevenge
|
||||||
|
zlib
|
||||||
|
];
|
||||||
|
|
||||||
|
configureFlags = [ "--with-docs" ];
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://gitlab.archlinux.org/archlinux/packaging/packages/libmspub/-/raw/main/buildfix.diff?ref_type=heads";
|
||||||
|
hash = "sha256-evxEoQ0a6YHoymR+SEJwqfr7rkWp3JnsWOD1tfYfZOw=";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Microsoft Publisher import library";
|
||||||
|
homepage = "https://wiki.documentfoundation.org/DLP/Libraries/libmspub";
|
||||||
|
license = lib.licenses.mpl20;
|
||||||
|
maintainers = with lib.maintainers; [ arthsmn ];
|
||||||
|
platforms = lib.platforms.all;
|
||||||
|
broken = stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64;
|
||||||
|
};
|
||||||
|
})
|
42
pkgs/by-name/li/libpagemaker/package.nix
Normal file
42
pkgs/by-name/li/libpagemaker/package.nix
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
stdenv,
|
||||||
|
fetchzip,
|
||||||
|
fetchpatch,
|
||||||
|
pkg-config,
|
||||||
|
boost,
|
||||||
|
doxygen,
|
||||||
|
librevenge,
|
||||||
|
}:
|
||||||
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
|
pname = "libpagemaker";
|
||||||
|
version = "0.0.4";
|
||||||
|
|
||||||
|
src = fetchzip {
|
||||||
|
url = "https://dev-www.libreoffice.org/src/libpagemaker/libpagemaker-${finalAttrs.version}.tar.xz";
|
||||||
|
hash = "sha256-fAtCNbP0fI2LxTOPPh5zbdF50wWhsrfSoNFPVU9tBas=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ pkg-config ];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
boost
|
||||||
|
doxygen
|
||||||
|
librevenge
|
||||||
|
];
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://gitlab.archlinux.org/archlinux/packaging/packages/libpagemaker/-/raw/main/libpagemaker-0.0.4-const-ref-exception.patch?ref_type=heads";
|
||||||
|
hash = "sha256-yZbiLAZHgzygGetiuoKiQS010pRfZTi2CbAAxQdCZbs=";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Adobe PageMaker import library";
|
||||||
|
homepage = "https://wiki.documentfoundation.org/DLP/Libraries/libpagemaker";
|
||||||
|
license = lib.licenses.mpl20;
|
||||||
|
maintainers = with lib.maintainers; [ arthsmn ];
|
||||||
|
platforms = lib.platforms.all;
|
||||||
|
};
|
||||||
|
})
|
38
pkgs/by-name/li/libqxp/package.nix
Normal file
38
pkgs/by-name/li/libqxp/package.nix
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
stdenv,
|
||||||
|
fetchzip,
|
||||||
|
pkg-config,
|
||||||
|
boost,
|
||||||
|
cppunit,
|
||||||
|
doxygen,
|
||||||
|
icu,
|
||||||
|
librevenge,
|
||||||
|
}:
|
||||||
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
|
pname = "libqxp";
|
||||||
|
version = "0.0.2";
|
||||||
|
|
||||||
|
src = fetchzip {
|
||||||
|
url = "https://dev-www.libreoffice.org/src/libqxp/libqxp-${finalAttrs.version}.tar.xz";
|
||||||
|
hash = "sha256-5AcZDdmowFbsl9xJ/CPXAUL5zSNu90HgX3V0V8Pt/Rw=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ pkg-config ];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
boost
|
||||||
|
cppunit
|
||||||
|
doxygen
|
||||||
|
icu
|
||||||
|
librevenge
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "QuarkXPress import library";
|
||||||
|
homepage = "https://wiki.documentfoundation.org/DLP/Libraries/libqxp";
|
||||||
|
license = lib.licenses.mpl20;
|
||||||
|
maintainers = with lib.maintainers; [ arthsmn ];
|
||||||
|
platforms = lib.platforms.all;
|
||||||
|
};
|
||||||
|
})
|
@ -13718,8 +13718,7 @@ with pkgs;
|
|||||||
|
|
||||||
scantailor-universal = callPackage ../applications/graphics/scantailor/universal.nix { };
|
scantailor-universal = callPackage ../applications/graphics/scantailor/universal.nix { };
|
||||||
|
|
||||||
scribus_1_5 = libsForQt5.callPackage ../applications/office/scribus/default.nix { };
|
scribus = callPackage ../applications/office/scribus/default.nix { };
|
||||||
scribus = scribus_1_5;
|
|
||||||
|
|
||||||
seafile-client = libsForQt5.callPackage ../applications/networking/seafile-client { };
|
seafile-client = libsForQt5.callPackage ../applications/networking/seafile-client { };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user