| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 |
|
| 21 | (define-module (gnu packages fribidi)
|
| 22 | #:use-module (guix packages)
|
| 23 | #:use-module (guix download)
|
| 24 | #:use-module (guix build-system gnu)
|
| 25 | #:use-module (guix licenses)
|
| 26 | #:use-module (gnu packages))
|
| 27 |
|
| 28 | (define-public fribidi
|
| 29 | (package
|
| 30 | (name "fribidi")
|
| 31 | (version "1.0.12")
|
| 32 | (source
|
| 33 | (origin
|
| 34 | (method url-fetch)
|
| 35 | (uri
|
| 36 | (string-append "https://github.com/fribidi/fribidi/releases"
|
| 37 | "/download/v" version "/fribidi-" version
|
| 38 | ".tar.xz"))
|
| 39 | (sha256
|
| 40 | (base32 "159l56c48rfcqa8mnxhnynngzlzmvr089ki7mjrppin8gzwk7lhc"))))
|
| 41 | (build-system gnu-build-system)
|
| 42 | (synopsis "Implementation of the Unicode bidirectional algorithm")
|
| 43 | (description
|
| 44 | "GNU FriBidi is an implementation of the Unicode Bidirectional
|
| 45 | Algorithm. This algorithm is used to properly display text in left-to-right
|
| 46 | or right-to-left ordering as necessary.")
|
| 47 | (home-page "https://github.com/fribidi/fribidi")
|
| 48 | (license lgpl2.1+)))
|
| 49 |
|
| 50 | (define-public bidiv
|
| 51 | (package
|
| 52 | (name "bidiv")
|
| 53 | (version "1.5")
|
| 54 | (source
|
| 55 | (origin
|
| 56 | (method url-fetch)
|
| 57 | (uri (string-append "mirror://debian/pool/main/b/bidiv/bidiv_"
|
| 58 | version ".orig.tar.gz"))
|
| 59 | (sha256
|
| 60 | (base32
|
| 61 | "05p5m2ihxbmc1qsgs8rjlww08fy9859fhl7xf196p8g5qygqd7cv"))
|
| 62 | (patches (search-patches "bidiv-update-fribidi.patch"))))
|
| 63 | (build-system gnu-build-system)
|
| 64 | (arguments
|
| 65 | `(#:phases
|
| 66 | (modify-phases %standard-phases
|
| 67 | (delete 'configure) |
| 68 | (add-after 'unpack 'misc-fixes
|
| 69 | (lambda _
|
| 70 | (substitute* "bidiv.c"
|
| 71 | (("FriBidiCharType") "FriBidiParType")
|
| 72 | (("&c") "(char *)&c"))
|
| 73 | #t))
|
| 74 | |
| 75 | (replace 'build
|
| 76 | (lambda* (#:key inputs #:allow-other-keys)
|
| 77 | (let ((fribidi (assoc-ref inputs "fribidi")))
|
| 78 | (invoke "gcc" "-o" "bidiv" "bidiv.c"
|
| 79 | |
| 80 | (string-append "-I" fribidi "/include/fribidi")
|
| 81 | |
| 82 | (string-append "-L" fribidi "/lib") "-lfribidi"))))
|
| 83 | (replace 'install
|
| 84 | (lambda* (#:key outputs #:allow-other-keys)
|
| 85 | (let* ((out (assoc-ref outputs "out"))
|
| 86 | (bin (string-append out "/bin"))
|
| 87 | (man (string-append out "/share/man/man1")))
|
| 88 | (install-file "bidiv" bin)
|
| 89 | (install-file "bidiv.1" man))
|
| 90 | #t)))
|
| 91 | #:tests? #f)) |
| 92 | (inputs
|
| 93 | (list fribidi))
|
| 94 | (home-page "https://tracker.debian.org/pkg/bidiv")
|
| 95 | (synopsis "BiDi viewer - command-line tool displaying logical Hebrew/Arabic")
|
| 96 | (description "bidiv is a simple utility for converting logical-Hebrew input
|
| 97 | to visual-Hebrew output. This is useful for reading Hebrew mail messages,
|
| 98 | viewing Hebrew texts, etc. It was written for Hebrew but Arabic (or other BiDi
|
| 99 | languages) should work equally well.")
|
| 100 | (properties
|
| 101 | '((release-monitoring-url . "https://deb.debian.org/debian/pool/main/b/bidiv")))
|
| 102 | (license gpl2+)))
|