Commit | Line | Data |
---|---|---|
a5f0ebf6 JG |
1 | ;;; GNU Guix --- Functional package management for GNU |
2 | ;;; Copyright © 2019 Nicolas Goaziou <mail@nicolasgoaziou.fr> | |
3 | ;;; Copyright © 2019 Jesse Gibbons <jgibbons2357+guix@gmail.com> | |
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 | #t)) | |
50 | (add-after 'unpack 'fix-quazip-directory | |
51 | (lambda _ | |
52 | (substitute* "models/resumedocument.h" | |
53 | (("quazip(/quazipfile\\.h)" _ suffix) | |
54 | (string-append "quazip5" suffix))) | |
55 | #t)) | |
56 | (add-after 'fix-quazip-directory 'fix-quazip-link | |
57 | (lambda _ | |
58 | (substitute* "CVAssistant.pro" | |
59 | (("lquazip-qt5") | |
60 | "lquazip5")) | |
61 | #t)) | |
62 | (add-after 'fix-quazip-directory 'fix-install-root | |
63 | (lambda* (#:key outputs #:allow-other-keys) | |
64 | (let ((out (assoc-ref outputs "out"))) | |
65 | (substitute* "CVAssistant.pro" | |
66 | (("/usr/(bin|share/)" _ suffix) | |
67 | (string-append out "/" suffix))) | |
68 | #t))) | |
69 | (replace 'configure | |
70 | (lambda _ (invoke "qmake")))))) | |
71 | (inputs | |
72 | `(("qtbase" ,qtbase) | |
73 | ("quazip" ,quazip) | |
74 | ("zlib" ,zlib))) | |
75 | (home-page "https://cvassistant.sourceforge.io/") | |
76 | (synopsis "Job application organizer") | |
77 | (description "Whether you're looking for a job or trying to help | |
78 | a friend to find one, CVAssistant is a tool for you. It helps you by | |
79 | preparing resumes and cover letters and organizing your job | |
80 | application process. It: | |
81 | @itemize | |
82 | @item Stores all your skills and experiences. | |
83 | @item Creates resumes tailored for each job you apply. | |
84 | @item Creates cover letters summarized to match each job | |
85 | advertisement. | |
86 | @item Keeps a history of job applications so you are ready when you | |
87 | receive a phone call. | |
88 | @item Writes resumes in your language. All languages are supported! | |
89 | @end itemize") | |
90 | (license license:gpl3+))) |