librelist archives

« back to archive

Build leiningen jar from scratch

Build leiningen jar from scratch

From:
Date:
2015-06-04 @ 08:25
Hello,

I cloned the repo of leiningen, but I don't see any informations related 
to the procedure to follow to build the leiningen jar.
I know that I can download the jar from the website, but I wanted to build
this from scratch to write a spec file for fedora (the leiningen package 
has been removed from the fedora distribution since fedora 21 due to 
dependencies problem).

Best regards,

YC

Re: [leiningen] Build leiningen jar from scratch

From:
Pietro F. Menna
Date:
2015-06-04 @ 21:19
Hi,

In order to build Leiningen you can follow the steps in
https://github.com/technomancy/leiningen/blob/master/CONTRIBUTING.md#bootstrapping
and uberjar section.

In short:

$ cd leiningen-core
$ lein bootstrap
$ cd ..
$ bin/lein compile

then:

$ bin/lein uberjar# The last line should contain the location of the standalone.
$ cp target/leiningen-2.5.2-SNAPSHOT-standalone.jar $HOME/.lein/self-installs
$ cp bin/lein $HOME/bin/lein-master


Regards,

Pietro

Em qui, 4 de jun de 2015 às 04:25, <ycollette.nospam@free.fr> escreveu:

> Hello,
>
> I cloned the repo of leiningen, but I don't see any informations related
> to the procedure to follow to build the leiningen jar.
> I know that I can download the jar from the website, but I wanted to build
> this from scratch to write a spec file for fedora (the leiningen package
> has been removed from the fedora distribution since fedora 21 due to
> dependencies problem).
>
> Best regards,
>
> YC
>

Re: [leiningen] Build leiningen jar from scratch

From:
Phil Hagelberg
Date:
2015-06-04 @ 08:34
ycollette.nospam@free.fr writes:

> I cloned the repo of leiningen, but I don't see any informations
> related to the procedure to follow to build the leiningen jar.  I know
> that I can download the jar from the website, but I wanted to build
> this from scratch to write a spec file for fedora (the leiningen
> package has been removed from the fedora distribution since fedora 21
> due to dependencies problem).

Take a look at the bin/release script; it does the job for our own
release process. You can get rid of the bits where it runs sed on the
project.clj, etc. files because these are already tagged in our repo.
For packaging in a distro you should use (and adapt) bin/lein-pkg
instead of bin/lein.

Hope that helps.

-Phil

Re: [leiningen] Build leiningen jar from scratch

From:
Date:
2015-06-04 @ 08:35
OK.
I haven't read this file. All the informations I need are here. Thanks.

YC

----- Mail original -----
De: "Michael Klishin" <michael@clojurewerkz.org>
À: "ycollette nospam" <ycollette.nospam@free.fr>, leiningen@librelist.org
Envoyé: Jeudi 4 Juin 2015 10:29:43
Objet: Re: [leiningen] Build leiningen jar from scratch

 On 4 June 2015 at 11:25:53, ycollette.nospam@free.fr 
(ycollette.nospam@free.fr) wrote:
> I cloned the repo of leiningen, but I don't see any informations  
> related to the procedure to follow to build the leiningen jar.  

Take a look at
https://github.com/technomancy/leiningen/blob/master/CONTRIBUTING.md
--  
MK