diff options
| author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2019-08-13 12:44:06 +0200 |
|---|---|---|
| committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2019-08-13 12:44:06 +0200 |
| commit | 77bdfe2f138e7c074c2eb94de3a44561da39d966 (patch) | |
| tree | 47f37a39f01d921a84ab1e7b4c67119485039a88 | |
| parent | f9ccde24606fdb9ea10235e50e5898781eb913ff (diff) | |
gnu: scribus: Update to 1.5.5.
* gnu/packages/scribus.scm (scribus): Update to 1.5.5.
[source]: Remove unnecessary patches and snippet.
[description]: Change freetype to FreeType.
* gnu/packages/patches/scribus-poppler.patch: Remove file.
* gnu/local.mk: Apply removal.
| -rw-r--r-- | gnu/local.mk | 1 | ||||
| -rw-r--r-- | gnu/packages/patches/scribus-poppler.patch | 72 | ||||
| -rw-r--r-- | gnu/packages/scribus.scm | 80 |
3 files changed, 14 insertions, 139 deletions
diff --git a/gnu/local.mk b/gnu/local.mk index fa5753e511a..cbc741ac575 100644 --- a/gnu/local.mk +++ b/gnu/local.mk | |||
| @@ -1293,7 +1293,6 @@ dist_patch_DATA = \ | |||
| 1293 | %D%/packages/patches/scheme48-tests.patch \ | 1293 | %D%/packages/patches/scheme48-tests.patch \ |
| 1294 | %D%/packages/patches/scotch-build-parallelism.patch \ | 1294 | %D%/packages/patches/scotch-build-parallelism.patch \ |
| 1295 | %D%/packages/patches/scotch-integer-declarations.patch \ | 1295 | %D%/packages/patches/scotch-integer-declarations.patch \ |
| 1296 | %D%/packages/patches/scribus-poppler.patch \ | ||
| 1297 | %D%/packages/patches/sdl-libx11-1.6.patch \ | 1296 | %D%/packages/patches/sdl-libx11-1.6.patch \ |
| 1298 | %D%/packages/patches/seq24-rename-mutex.patch \ | 1297 | %D%/packages/patches/seq24-rename-mutex.patch \ |
| 1299 | %D%/packages/patches/sharutils-CVE-2018-1000097.patch \ | 1298 | %D%/packages/patches/sharutils-CVE-2018-1000097.patch \ |
diff --git a/gnu/packages/patches/scribus-poppler.patch b/gnu/packages/patches/scribus-poppler.patch deleted file mode 100644 index 9b969e4cb6a..00000000000 --- a/gnu/packages/patches/scribus-poppler.patch +++ /dev/null | |||
| @@ -1,72 +0,0 @@ | |||
| 1 | Fix build with recent Poppler. | ||
| 2 | |||
| 3 | From d867ec3c386baaed1b8e076dd70b278863411480 Mon Sep 17 00:00:00 2001 | ||
| 4 | From: Jean Ghali <jghali@libertysurf.fr> | ||
| 5 | Date: Mon, 30 Apr 2018 09:19:33 +0000 | ||
| 6 | Subject: [PATCH] =?UTF-8?q?#15289:=20FTBFS=201.5.4=20with=20error:=20inval?= | ||
| 7 | =?UTF-8?q?id=20conversion=20from=20=E2=80=98const=20GooString*=E2=80=99?= | ||
| 8 | =?UTF-8?q?=20to=20=E2=80=98GooString*=E2=80=99?= | ||
| 9 | MIME-Version: 1.0 | ||
| 10 | Content-Type: text/plain; charset=UTF-8 | ||
| 11 | Content-Transfer-Encoding: 8bit | ||
| 12 | |||
| 13 | git-svn-id: svn://scribus.net/trunk/Scribus@22498 11d20701-8431-0410-a711-e3c959e3b870 | ||
| 14 | --- | ||
| 15 | scribus/plugins/import/pdf/importpdf.cpp | 2 +- | ||
| 16 | scribus/plugins/import/pdf/importpdf.h | 2 +- | ||
| 17 | scribus/plugins/import/pdf/slaoutput.cpp | 2 +- | ||
| 18 | scribus/plugins/import/pdf/slaoutput.h | 2 +- | ||
| 19 | 4 files changed, 4 insertions(+), 4 deletions(-) | ||
| 20 | |||
| 21 | diff --git a/scribus/plugins/import/pdf/importpdf.cpp b/scribus/plugins/import/pdf/importpdf.cpp | ||
| 22 | index c1802861aa..d4c5a9ba49 100644 | ||
| 23 | --- a/scribus/plugins/import/pdf/importpdf.cpp | ||
| 24 | +++ b/scribus/plugins/import/pdf/importpdf.cpp | ||
| 25 | @@ -1081,7 +1081,7 @@ QRectF PdfPlug::getCBox(int box, int pgNum) | ||
| 26 | return cRect; | ||
| 27 | } | ||
| 28 | |||
| 29 | -QString PdfPlug::UnicodeParsedString(GooString *s1) | ||
| 30 | +QString PdfPlug::UnicodeParsedString(const GooString *s1) | ||
| 31 | { | ||
| 32 | if ( !s1 || s1->getLength() == 0 ) | ||
| 33 | return QString(); | ||
| 34 | diff --git a/scribus/plugins/import/pdf/importpdf.h b/scribus/plugins/import/pdf/importpdf.h | ||
| 35 | index c8c5efcd0d..5249562692 100644 | ||
| 36 | --- a/scribus/plugins/import/pdf/importpdf.h | ||
| 37 | +++ b/scribus/plugins/import/pdf/importpdf.h | ||
| 38 | @@ -81,7 +81,7 @@ class PdfPlug : public QObject | ||
| 39 | private: | ||
| 40 | bool convert(const QString& fn); | ||
| 41 | QRectF getCBox(int box, int pgNum); | ||
| 42 | - QString UnicodeParsedString(GooString *s1); | ||
| 43 | + QString UnicodeParsedString(const GooString *s1); | ||
| 44 | |||
| 45 | QList<PageItem*> Elements; | ||
| 46 | double baseX, baseY; | ||
| 47 | diff --git a/scribus/plugins/import/pdf/slaoutput.cpp b/scribus/plugins/import/pdf/slaoutput.cpp | ||
| 48 | index be1815dc29..17b6357246 100644 | ||
| 49 | --- a/scribus/plugins/import/pdf/slaoutput.cpp | ||
| 50 | +++ b/scribus/plugins/import/pdf/slaoutput.cpp | ||
| 51 | @@ -4252,7 +4252,7 @@ void SlaOutputDev::pushGroup(QString maskName, GBool forSoftMask, GBool alpha, b | ||
| 52 | m_groupStack.push(gElements); | ||
| 53 | } | ||
| 54 | |||
| 55 | -QString SlaOutputDev::UnicodeParsedString(GooString *s1) | ||
| 56 | +QString SlaOutputDev::UnicodeParsedString(const GooString *s1) | ||
| 57 | { | ||
| 58 | if ( !s1 || s1->getLength() == 0 ) | ||
| 59 | return QString(); | ||
| 60 | diff --git a/scribus/plugins/import/pdf/slaoutput.h b/scribus/plugins/import/pdf/slaoutput.h | ||
| 61 | index 20e8b2d311..6698c030e0 100644 | ||
| 62 | --- a/scribus/plugins/import/pdf/slaoutput.h | ||
| 63 | +++ b/scribus/plugins/import/pdf/slaoutput.h | ||
| 64 | @@ -266,7 +266,7 @@ class SlaOutputDev : public OutputDev | ||
| 65 | int getBlendMode(GfxState *state); | ||
| 66 | void applyMask(PageItem *ite); | ||
| 67 | void pushGroup(QString maskName = "", GBool forSoftMask = gFalse, GBool alpha = gFalse, bool inverted = false); | ||
| 68 | - QString UnicodeParsedString(GooString *s1); | ||
| 69 | + QString UnicodeParsedString(const GooString *s1); | ||
| 70 | bool checkClip(); | ||
| 71 | bool pathIsClosed; | ||
| 72 | QString CurrColorFill; | ||
diff --git a/gnu/packages/scribus.scm b/gnu/packages/scribus.scm index 20795da2753..25122c10ae2 100644 --- a/gnu/packages/scribus.scm +++ b/gnu/packages/scribus.scm | |||
| @@ -47,7 +47,7 @@ | |||
| 47 | (define-public scribus | 47 | (define-public scribus |
| 48 | (package | 48 | (package |
| 49 | (name "scribus") | 49 | (name "scribus") |
| 50 | (version "1.5.4") | 50 | (version "1.5.5") |
| 51 | (source | 51 | (source |
| 52 | (origin | 52 | (origin |
| 53 | (method url-fetch) | 53 | (method url-fetch) |
| @@ -55,60 +55,7 @@ | |||
| 55 | version "/scribus-" version ".tar.xz")) | 55 | version "/scribus-" version ".tar.xz")) |
| 56 | (sha256 | 56 | (sha256 |
| 57 | (base32 | 57 | (base32 |
| 58 | "00ys0p6h3iq77kh72dkl0qrf7qvznq18qdrgiq10gfxja1995034")) | 58 | "0w9zzsiaq3f7vpxybk01c9z2b4qqg67mzpyfb2gjchz8dhdb423r")))) |
| 59 | (patches (append | ||
| 60 | ;; Scribus relies heavily on Poppler internals, which have | ||
| 61 | ;; changed a lot since the latest Scribus release (2018-04). | ||
| 62 | ;; Thus, we require a bunch of patches to stay compatible. | ||
| 63 | (search-patches "scribus-poppler.patch") | ||
| 64 | (list (origin | ||
| 65 | (method url-fetch) | ||
| 66 | (uri (string-append | ||
| 67 | "https://github.com/scribusproject/scribus/commit/" | ||
| 68 | "7d4ceeb5cac32287769e3c0238699e0b3e56c24d.patch")) | ||
| 69 | (file-name "scribus-poppler-0.64.patch") | ||
| 70 | (sha256 | ||
| 71 | (base32 | ||
| 72 | "1kr27bfzkpabrh42nsrrvlqyycdg9isbavpaa5spgmrhidcg02xj"))) | ||
| 73 | (origin | ||
| 74 | (method url-fetch) | ||
| 75 | (uri (string-append | ||
| 76 | "https://github.com/scribusproject/scribus/commit/" | ||
| 77 | "76561c1a55cd07c268f8f2b2fea888532933700b.patch")) | ||
| 78 | (file-name "scribus-poppler-config.patch") | ||
| 79 | (sha256 | ||
| 80 | (base32 | ||
| 81 | "01k18xjj82c3ndzp89dlpfhhdccc8z0acf8b04r592jyr5y9rc19"))) | ||
| 82 | (origin | ||
| 83 | (method url-fetch) | ||
| 84 | (uri (string-append | ||
| 85 | "https://github.com/scribusproject/scribus/commit/" | ||
| 86 | "8e05d26c19097ac2ad5b4ebbf40a3771ee6faf9c.patch")) | ||
| 87 | (file-name "scribus-poppler-0.69.patch") | ||
| 88 | (sha256 | ||
| 89 | (base32 | ||
| 90 | "1avdmsj5l543j0irq18nxgiw99n395jj56ih5dsal59fn0wbqk42"))) | ||
| 91 | (origin | ||
| 92 | (method url-fetch) | ||
| 93 | (uri (string-append "https://git.archlinux.org/svntogit/" | ||
| 94 | "community.git/plain/trunk/scribus-" | ||
| 95 | "poppler-0.70.patch?h=packages/scribus&id=" | ||
| 96 | "8ef43ee2fceb0753ed5a76bb0a11c84775898ffc")) | ||
| 97 | (file-name "scribus-poppler-0.70.patch") | ||
| 98 | (sha256 | ||
| 99 | (base32 | ||
| 100 | "0dw7ix3jaj0y1q97cmmqwb2qgdx760yhxx86wa8rnx0xhfi5x6qr")))))) | ||
| 101 | (modules '((guix build utils))) | ||
| 102 | (snippet | ||
| 103 | '(begin | ||
| 104 | (for-each (lambda (file) | ||
| 105 | (substitute* file | ||
| 106 | ;; These are required for compatibility with Poppler 0.71. | ||
| 107 | (("GBool") "bool") (("gTrue") "true") (("gFalse") "false") | ||
| 108 | ;; ...and this for Poppler 0.72. | ||
| 109 | (("getCString") "c_str"))) | ||
| 110 | (find-files "scribus/plugins/import/pdf")) | ||
| 111 | #t)))) | ||
| 112 | (build-system cmake-build-system) | 59 | (build-system cmake-build-system) |
| 113 | (arguments | 60 | (arguments |
| 114 | `(#:tests? #f ;no test target | 61 | `(#:tests? #f ;no test target |
| @@ -118,9 +65,9 @@ | |||
| 118 | (modify-phases %standard-phases | 65 | (modify-phases %standard-phases |
| 119 | (add-after 'install 'wrap-program | 66 | (add-after 'install 'wrap-program |
| 120 | (lambda* (#:key inputs outputs #:allow-other-keys) | 67 | (lambda* (#:key inputs outputs #:allow-other-keys) |
| 121 | ;; Fix "ImportError: No module named _sysconfigdata_nd" where | 68 | ;; Fix "ImportError: No module named _sysconfigdata_nd" |
| 122 | ;; Scribus checks PATH and eventually runs system's Python | 69 | ;; runtime error where Scribus checks PATH and eventually |
| 123 | ;; instead of package's. | 70 | ;; runs system's Python instead of package's. |
| 124 | (let* ((out (assoc-ref outputs "out")) | 71 | (let* ((out (assoc-ref outputs "out")) |
| 125 | (py2 (assoc-ref inputs "python"))) | 72 | (py2 (assoc-ref inputs "python"))) |
| 126 | (wrap-program (string-append out "/bin/scribus") | 73 | (wrap-program (string-append out "/bin/scribus") |
| @@ -161,12 +108,13 @@ | |||
| 161 | (home-page "https://www.scribus.net") | 108 | (home-page "https://www.scribus.net") |
| 162 | (synopsis "Desktop publishing and page layout program") | 109 | (synopsis "Desktop publishing and page layout program") |
| 163 | (description | 110 | (description |
| 164 | "Scribus is a @dfn{desktop publishing} (DTP) application and can be used | 111 | "Scribus is a @dfn{desktop publishing} (DTP) application and can |
| 165 | for many tasks; from brochure design to newspapers, magazines, newsletters and | 112 | be used for many tasks; from brochure design to newspapers, magazines, |
| 166 | posters to technical documentation. Scribus supports professional DTP | 113 | newsletters and posters to technical documentation. Scribus supports |
| 167 | features, such as CMYK color and a color management system to soft proof | 114 | professional DTP features, such as CMYK color and a color management |
| 168 | images for high quality color printing, flexible PDF creation options, | 115 | system to soft proof images for high quality color printing, flexible |
| 169 | Encapsulated PostScript import/export and creation of four color separations, | 116 | PDF creation options, Encapsulated PostScript import/export and |
| 170 | import of EPS/PS and SVG as native vector graphics, Unicode text including | 117 | creation of four color separations, import of EPS/PS and SVG as native |
| 171 | right to left scripts such as Arabic and Hebrew via freetype.") | 118 | vector graphics, Unicode text including right to left scripts such as |
| 119 | Arabic and Hebrew via FreeType.") | ||
| 172 | (license license:gpl2+))) | 120 | (license license:gpl2+))) |
