midori.scm 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. (define-module (rain midori)
  2. #:use-module ((guix licenses) #:prefix license:)
  3. #:use-module (guix packages)
  4. #:use-module (gnu packages)
  5. #:use-module (gnu packages gnome)
  6. #:use-module (gnu packages glib)
  7. #:use-module (gnu packages gtk)
  8. #:use-module (gnu packages gstreamer)
  9. #:use-module (gnu packages databases)
  10. #:use-module (gnu packages webkit)
  11. #:use-module (gnu packages xml)
  12. #:use-module (gnu packages gettext)
  13. #:use-module (gnu packages pkg-config)
  14. #:use-module (guix download)
  15. #:use-module (guix git-download)
  16. #:use-module (guix build-system cmake)
  17. )
  18. (define-public midori
  19. (package
  20. (name "midori")
  21. (version "0.5.11")
  22. (source (origin
  23. (method url-fetch)
  24. (uri (string-append "https://launchpad.net/midori/trunk/"
  25. version
  26. "/+download/midori-" version ".tar.bz2"))
  27. (sha256
  28. (base32
  29. "0gcwqkcyliqz10i33ww3wl02mmfnl7jzl2d493l4l53ipsb1l6cn"))))
  30. (build-system cmake-build-system)
  31. (arguments
  32. '(#:tests? #f ;; sadly they fail
  33. #:phases
  34. (alist-cons-after
  35. 'install 'wrap-programs
  36. (lambda* (#:key inputs outputs #:allow-other-keys)
  37. (let ((out (assoc-ref outputs "out")))
  38. (wrap-program "midori"
  39. `("LD_LIBRARY_PATH" ":" prefix (,(string-append out "lib64"))))))
  40. (modify-phases %standard-phases
  41. (delete 'validate-runpath))) ;; seems bad to remove it
  42. #:configure-flags (list "-DUSE_ZEITGEIST=off"
  43. "-DCMAKE_INSTALL_LIBDIR=lib")))
  44. ;;(string-append "-DCMAKE_INSTALL_RPATH="
  45. ;; (assoc-ref %outputs "out")
  46. ;; "/lib:"
  47. ;; (assoc-ref %outputs "out")
  48. ;; "/lib64"))))
  49. (native-inputs
  50. `(("pkg-config" ,pkg-config)
  51. ("vala" ,vala)
  52. ("gtk2" ,gtk+-2)
  53. ("webkitgtk/gtk+-2" ,webkitgtk/gtk+-2)
  54. ("gobject-introspection" ,gobject-introspection)
  55. ("glib" ,glib "bin")
  56. ("libxml2" ,libxml2)
  57. ("sqlite" ,sqlite)
  58. ("gcr" ,gcr)
  59. ("libsoup" ,libsoup)
  60. ("gettext" ,gnu-gettext)
  61. ("intltool" ,intltool)
  62. ("librsvg" ,librsvg)
  63. ("gstreamer" ,gstreamer)
  64. ("gst-plugins-base" ,gst-plugins-base)
  65. ("gst-plugins-good" ,gst-plugins-good)
  66. ;("gst-plugins-bad" ,gst-plugins-bad)
  67. ("gst-plugins-ugly" ,gst-plugins-ugly)))
  68. (propagated-inputs
  69. `(("glib-networking" ,glib-networking) ;; not working yet? installed seperately
  70. ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
  71. ("gstreamer" ,gstreamer)
  72. ("gst-plugins-base" ,gst-plugins-base)
  73. ("gst-plugins-good" ,gst-plugins-good)
  74. ;("gst-plugins-bad" ,gst-plugins-bad)
  75. ("gst-plugins-ugly" ,gst-plugins-ugly)
  76. ))
  77. (home-page "http://www.midori-browser.org/")
  78. (synopsis "Midori Web Browser")
  79. (description
  80. "Midori is a lightweight, fast, and free web browser. It aligns well with the Xfce philosophy of making the most out of available resources.")
  81. (license license:lgpl2.1+)))