projects/guix·blob java-team · refs

82 lines · 3.4 KiB

1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2019 Nicolas Goaziou <[email protected]>
3;;; Copyright © 2019 Jesse Gibbons <[email protected]>
4;;;
5;;; This file is part of GNU Guix.
6;;;
7;;; GNU Guix is free software; you can redistribute it and/or modify it
8;;; under the terms of the GNU General Public License as published by
9;;; the Free Software Foundation; either version 3 of the License, or (at
10;;; your option) any later version.
11;;;
12;;; GNU Guix is distributed in the hope that it will be useful, but
13;;; WITHOUT ANY WARRANTY; without even the implied warranty of
14;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15;;; GNU General Public License for more details.
16;;;
17;;; You should have received a copy of the GNU General Public License
18;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
19
20(define-module (gnu packages cvassistant)
21 #:use-module (guix packages)
22 #:use-module (guix download)
23 #:use-module (guix build-system gnu)
24 #:use-module ((guix licenses) #:prefix license:)
25 #:use-module (gnu packages qt)
26 #:use-module (gnu packages compression))
27
28(define-public cvassistant
29 (package
30 (name "cvassistant")
31 (version "3.1.0")
32 (source (origin
33 (method url-fetch)
34 (uri (string-append "mirror://sourceforge/cvassistant/"
35 "cvassistant-" version "-src.tar.bz2"))
36 (sha256
37 (base32
38 "1y2680bazyiwm50gdhdd4982ckbjscrkbw2mngyk7yw708iadvr7"))))
39 (build-system gnu-build-system)
40 (arguments
41 `(#:phases
42 (modify-phases %standard-phases
43 (add-after 'unpack 'remove-donation-banner
44 ;; Remove dialog box with a donation link, as suggested by
45 ;; the INSTALL file.
46 (lambda _
47 (substitute* "controllers/mainwindow.cpp"
48 (("//(#define NO_DONATION_PROMPT)" _ line) line))))
49 (add-after 'unpack 'fix-quazip
50 (lambda* (#:key inputs #:allow-other-keys)
51 (let ((quazip
52 (search-input-directory inputs "/include/QuaZip-Qt5-1.5")))
53
54 (substitute* "CVAssistant.pro"
55 (("-lquazip-qt5")
56 (format #f "-lquazip1-qt5~%INCLUDEPATH += ~a~%" quazip))))))
57 (add-after 'fix-quazip 'fix-install-root
58 (lambda* (#:key outputs #:allow-other-keys)
59 (let ((out (assoc-ref outputs "out")))
60 (substitute* "CVAssistant.pro"
61 (("/usr/(bin|share/)" _ suffix)
62 (string-append out "/" suffix))))))
63 (replace 'configure
64 (lambda _ (invoke "qmake"))))))
65 (inputs
66 (list qtbase-5 quazip-5 zlib))
67 (home-page "https://cvassistant.sourceforge.io/")
68 (synopsis "Job application organizer")
69 (description "Whether you're looking for a job or trying to help
70 a friend to find one, CVAssistant is a tool for you. It helps you by
71 preparing resumes and cover letters and organizing your job
72 application process. It:
73 @itemize
74 @item Stores all your skills and experiences.
75 @item Creates resumes tailored for each job you apply.
76 @item Creates cover letters summarized to match each job
77 advertisement.
78 @item Keeps a history of job applications so you are ready when you
79 receive a phone call.
80 @item Writes resumes in your language. All languages are supported!
81 @end itemize")
82 (license license:gpl3+)))