diff options
| author | Ahmad Draidi <a.r.draidi@redscript.org> | 2025-05-31 18:10:16 +0400 |
|---|---|---|
| committer | Zheng Junjie <z572@z572.online> | 2025-06-08 11:00:19 +0800 |
| commit | a30f9507d0eb77f053b90d04d8918ee570d38abc (patch) | |
| tree | 96f02734164aec5c6dea105865f0b30c5394a945 /gnu | |
| parent | cb8727f593f2409fab5c23360960f87b7bc8e68c (diff) | |
gnu: Add ansifilter.
* gnu/packages/pretty-print.scm: (ansifilter): New variable.
Change-Id: I12e86080f5f39c52ea1def6084b9a5e6cc7af92c
Signed-off-by: Zheng Junjie <z572@z572.online>
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/pretty-print.scm | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/gnu/packages/pretty-print.scm b/gnu/packages/pretty-print.scm index 6209d8b3138..d9192e953cf 100644 --- a/gnu/packages/pretty-print.scm +++ b/gnu/packages/pretty-print.scm | |||
| @@ -124,6 +124,62 @@ produce a pretty-printed file. It also includes some extra abilities for | |||
| 124 | special cases, such as pretty-printing @samp{-help} output.") | 124 | special cases, such as pretty-printing @samp{-help} output.") |
| 125 | (license gpl3+))) | 125 | (license gpl3+))) |
| 126 | 126 | ||
| 127 | (define-public ansifilter | ||
| 128 | (package | ||
| 129 | (name "ansifilter") | ||
| 130 | (version "2.21") | ||
| 131 | (outputs (list "out" "gui")) | ||
| 132 | (source | ||
| 133 | (origin | ||
| 134 | (method git-fetch) | ||
| 135 | (uri (git-reference | ||
| 136 | (url "https://gitlab.com/saalen/ansifilter") | ||
| 137 | (commit version))) | ||
| 138 | (file-name (git-file-name name version)) | ||
| 139 | (sha256 | ||
| 140 | (base32 "1pvx4l0k8dw642yisf1wahdqcfw36ny6v3v1lcshvxiqxmwrna3d")))) | ||
| 141 | ;; Stick to makefile since CMakeLists.txt is broken upstream | ||
| 142 | (build-system gnu-build-system) | ||
| 143 | (arguments | ||
| 144 | (list | ||
| 145 | #:tests? #f ;no tests | ||
| 146 | #:phases | ||
| 147 | #~(modify-phases %standard-phases | ||
| 148 | (add-before 'configure 'patch-makefile | ||
| 149 | (lambda _ | ||
| 150 | ;; Fixes install failure with qtbase@6 | ||
| 151 | (substitute* "makefile" | ||
| 152 | (("[ ]*@echo[ ]*\n") | ||
| 153 | "\n")))) | ||
| 154 | (delete 'configure) ;no configure script | ||
| 155 | (add-after 'build 'build-gui | ||
| 156 | (lambda* (#:key parallel-build? #:allow-other-keys) | ||
| 157 | (invoke "make" | ||
| 158 | "-j" (if parallel-build? | ||
| 159 | (number->string (parallel-job-count)) | ||
| 160 | "1") | ||
| 161 | "gui"))) | ||
| 162 | (replace 'install | ||
| 163 | (lambda _ | ||
| 164 | (invoke "make" "install" | ||
| 165 | (string-append "PREFIX=" | ||
| 166 | #$output)))) | ||
| 167 | (add-after 'install 'install-gui | ||
| 168 | (lambda _ | ||
| 169 | (mkdir-p (string-append #$output:gui "/bin")) | ||
| 170 | (invoke "make" "install-gui" | ||
| 171 | (string-append "PREFIX=" | ||
| 172 | #$output:gui))))))) | ||
| 173 | (native-inputs (list qtbase)) | ||
| 174 | (inputs (list qtbase)) | ||
| 175 | (home-page "http://andre-simon.de/doku/ansifilter/en/ansifilter.html") | ||
| 176 | (synopsis "ANSI sequence filter") | ||
| 177 | (description | ||
| 178 | "Ansifilter handles text files containing ANSI terminal escape codes. | ||
| 179 | The command sequences may be stripped or be interpreted to generate formatted | ||
| 180 | output (HTML, RTF, TeX, LaTeX, BBCode, Pango).") | ||
| 181 | (license gpl3+))) | ||
| 182 | |||
| 127 | (define-public trueprint | 183 | (define-public trueprint |
| 128 | (package | 184 | (package |
| 129 | (name "trueprint") | 185 | (name "trueprint") |
