From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jesse Gibbons Subject: Re: CV Assistant Date: Sat, 24 Aug 2019 21:00:50 -0600 Message-ID: References: <6b32a02c340e05d8b4ffdc3b915b86e062eeb67e.camel@disroot.org> <87wofdds57.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:38706) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i1im4-000704-RZ for help-guix@gnu.org; Sat, 24 Aug 2019 23:01:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i1im0-0008I7-Le for help-guix@gnu.org; Sat, 24 Aug 2019 23:01:00 -0400 Received: from mail-pg1-x535.google.com ([2607:f8b0:4864:20::535]:42694) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i1im0-0008H3-Ee for help-guix@gnu.org; Sat, 24 Aug 2019 23:00:56 -0400 Received: by mail-pg1-x535.google.com with SMTP id p3so8232415pgb.9 for ; Sat, 24 Aug 2019 20:00:54 -0700 (PDT) In-Reply-To: <87wofdds57.fsf@nicolasgoaziou.fr> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Nicolas Goaziou , Raghav Gururajan Cc: help-guix On Fri, 2019-08-16 at 17:52 +0200, Nicolas Goaziou wrote: > Hello, > > Raghav Gururajan writes: > > > I sat to do it several times but could not start it due to the > > situation I am in. I am curious to learn packaging in guix and I am > > confident that I will be doing it someday. It just not the right > > time > > (hectic situation). > > In order to get you, or someone else, started, here is a draft for > the > package: > > (define-public cvassistant > (package > (name "cvassistant") > (version "3.1.0") > (source (origin > (method url-fetch) > (uri (string-append > "mirror://sourceforge/cvassistant/" > "cvassistant-" version "- > src.tar.bz2")) > (sha256 > (base32 > "1y2680bazyiwm50gdhdd4982ckbjscrkbw2mngyk7yw708iadv > r7")))) > (build-system gnu-build-system) > (arguments > `(#:phases > (modify-phases %standard-phases > (add-after 'unpack 'remove-donation-banner > ;; Remove dialog box with a donation link, as suggested > by > ;; the INSTALL file. > (lambda _ > (substitute* "controllers/mainwindow.cpp" > (("#(define NO_DONATION_PROMPT)" _ line) line)) > #t)) > (add-after 'unpack 'fix-quazip-directory > ;; Without it, build process fails with "fatal error: > ;; quazip/quazipfile.h: No such file or directory". > ;; > ;; FIXME: insufficient! It fails later with "ld: cannot > ;; find -lquazip-qt5". > (lambda _ > (substitute* "models/resumedocument.h" > (("quazip(/quazipfile\\.h)" _ suffix) > (string-append "quazip5" suffix))) > #t)) > (replace 'configure > (lambda _ (invoke "qmake")))))) > (inputs > `(("qtbase" ,qtbase) > ("quazip" ,quazip) > ("zlib" ,zlib))) > (home-page "https://cvassistant.sourceforge.io/") > (synopsis "Job application organizer") > (description "Whether you're looking for a job or trying to > help > a friend to find one, CVAssistant is a tool for you. It helps you > by > preparing resumes and cover letters and organizing your job > application process. It: > @itemize > @item Stores all your skills and experiences. > @item Creates resumes tailored for each job you apply. > @item Creates cover letters summarized to match each job > advertisement. > @item Keeps a history of job applications so you are ready when you > receive a phone call. > @item Writes resumes in your language. All languages are > supported! > @end itemize") > (license license:gpl3+))) > > Unfortunately, it fails to build with "ld: cannot find -lquazip-qt5". > This is probably related to this part of the definition: > > (add-after 'unpack 'fix-quazip-directory > ;; Without it, build process fails with "fatal error: > ;; quazip/quazipfile.h: No such file or directory". > ;; > ;; FIXME: insufficient! It fails later with "ld: cannot > ;; find -lquazip-qt5". > (lambda _ > (substitute* "models/resumedocument.h" > (("quazip(/quazipfile\\.h)" _ suffix) > (string-append "quazip5" suffix))) > #t)) > > I'm quite certain this is not too hard to solve. You may want to > investigate a bit further, or ask for help through IRC, etc. > > HTH, > > Regards, > I looked into this. the quazip package produces libraries called quazip5, not quazip-qt5. make expects quazip-qt5 because of a line in CVAssistant.pro: LIBS += -lquazip-qt5 Replace this line and we can move to the next problem in building cvassistant. -- -Jesse