me
/
guix
Archived
1
0
Fork 0

gnu: geany: Un-unbundle scintilla

* gnu/packages/text-editors.scm (geany)[source]: Do not un-bundle scintilla.
[arguments]: Remove phase using our shared library.  Use bundled one instead.
master
Nicolas Goaziou 2020-06-01 23:35:26 +02:00
parent f3ed529739
commit 9e03ddc517
No known key found for this signature in database
GPG Key ID: DA00B4F048E92F2D
1 changed files with 11 additions and 28 deletions

View File

@ -796,17 +796,13 @@ and multiple fonts.")
(package (package
(name "geany") (name "geany")
(version "1.36") (version "1.36")
(source (origin (source
(method url-fetch) (origin
(uri (string-append "https://download.geany.org/" (method url-fetch)
"geany-" version ".tar.bz2")) (uri (string-append "https://download.geany.org/"
(sha256 "geany-" version ".tar.bz2"))
(base32 (sha256
"0gnm17cr4rf3pmkf0axz4a0fxwnvp55ji0q0lzy88yqbshyxv14i")) (base32 "0gnm17cr4rf3pmkf0axz4a0fxwnvp55ji0q0lzy88yqbshyxv14i"))))
(modules '((guix build utils)))
(snippet '(begin
(delete-file-recursively "scintilla")
#t))))
(build-system gnu-build-system) (build-system gnu-build-system)
(native-inputs (native-inputs
`(("autoconf" ,autoconf) `(("autoconf" ,autoconf)
@ -819,7 +815,10 @@ and multiple fonts.")
("python-docutils" ,python-docutils))) ;for rst2html ("python-docutils" ,python-docutils))) ;for rst2html
(inputs (inputs
`(("gtk+" ,gtk+) `(("gtk+" ,gtk+)
("scintilla" ,scintilla))) ;; FIXME: Geany bundles a 3.X release of Scintilla. It is not
;; currently possible to replace it with our Scintilla package.
;; ("scintilla" ,scintilla)
))
(arguments (arguments
`(#:imported-modules ((guix build glib-or-gtk-build-system) `(#:imported-modules ((guix build glib-or-gtk-build-system)
,@%gnu-build-system-modules) ,@%gnu-build-system-modules)
@ -828,22 +827,6 @@ and multiple fonts.")
(guix build utils)) (guix build utils))
#:phases #:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-after 'unpack 'use-scintilla-shared-library
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "configure.ac"
(("scintilla/Makefile") "")
(("scintilla/include/Makefile") ""))
(substitute* "Makefile.am"
(("scintilla ") ""))
(substitute* "src/Makefile.am"
(("\\$\\(top_builddir\\)/scintilla/libscintilla.la") "")
(("geany_LDFLAGS =" all) (string-append all " -lscintilla")))
(substitute* "doc/Makefile.am"
(("\\$\\(INSTALL_DATA\\) \\$\\(top_srcdir\\)/scintilla/License.txt \\$\\(DOCDIR\\)/ScintillaLicense.txt") ""))
(substitute* "tests/Makefile.am"
(("AM_LDFLAGS =" all) (string-append all " -lscintilla")))
(for-each delete-file (list "autogen.sh" "configure" "Makefile.in"))
#t))
(add-after 'install 'glib-or-gtk-wrap (add-after 'install 'glib-or-gtk-wrap
(assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-wrap))))) (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-wrap)))))
(home-page "https://www.geany.org") (home-page "https://www.geany.org")