summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/pretty-print.scm56
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
124special cases, such as pretty-printing @samp{-help} output.") 124special 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.
179The command sequences may be stripped or be interpreted to generate formatted
180output (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")