diff --git a/Leiningen/Leiningen.nuspec b/Leiningen/Leiningen.nuspec new file mode 100644 index 0000000..5360337 --- /dev/null +++ b/Leiningen/Leiningen.nuspec @@ -0,0 +1,40 @@ + + + + Lein + Leiningen - Clojure Project Automation + 2.2.0 + Phil Hagelberg, Alex Osborne, Dan Larkin, and contributors + Ethan J Brown + Leiningen is for automating Clojure projects without setting your hair on fire. + Leiningen is for automating Clojure projects without setting your hair on fire. + +It offers various project-related tasks and can: + +* create new projects +* fetch dependencies for your project +* run tests +* run a fully-configured REPL +* compile Java sources (if any) +* run the project (if the project isn't a library) +* generate a maven-style "pom" file for the project for interop +* compile and package projects for deployment +* publish libraries to repositories such as Clojars +* run custom automation tasks written in Clojure (leiningen plug-ins) + +If you come from the Java world, Leiningen could be thought of as "Maven meets Ant without the pain". For Ruby and Python folks, Leiningen combines RubyGems/Bundler/Rake and pip/Fabric in a single tool. + https://github.com/technomancy/leiningen + java clojure lein leiningen REPL clojars package manager + https://github.com/technomancy/leiningen#license + false + https://github.com/Iristyle/ChocolateyPackages/raw/master/Leiningen/clojure_logo.png + + + + + + + + + + diff --git a/Leiningen/clojure_logo.png b/Leiningen/clojure_logo.png new file mode 100644 index 0000000..8f2ea43 Binary files /dev/null and b/Leiningen/clojure_logo.png differ diff --git a/Leiningen/leiningen_logo.png b/Leiningen/leiningen_logo.png new file mode 100644 index 0000000..98a9c7b Binary files /dev/null and b/Leiningen/leiningen_logo.png differ diff --git a/Leiningen/tools/chocolateyInstall.ps1 b/Leiningen/tools/chocolateyInstall.ps1 new file mode 100644 index 0000000..0312de5 --- /dev/null +++ b/Leiningen/tools/chocolateyInstall.ps1 @@ -0,0 +1,28 @@ +$package = 'Leiningen' +$version = '2.2.0' + +try { + $url = "https://raw.github.com/technomancy/leiningen/$version/bin/lein.bat" + + $batDir = Join-Path $Env:ChocolateyInstall 'bin' + $lein = Join-Path $batDir 'lein.bat' + + Write-Host "Downloading from $url" + + $client = New-Object Net.WebClient + $client.DownloadFile($url, $lein) + + Write-Host "Download from $url complete" + + Write-Host "Executing bootstrap script from $batDir" + + # $batDir is already in PATH + lein self-install + lein + lein version + + Write-ChocolateySuccess $package +} catch { + Write-ChocolateyFailure $package "$($_.Exception.Message)" + throw +} diff --git a/Leiningen/tools/chocolateyUninstall.ps1 b/Leiningen/tools/chocolateyUninstall.ps1 new file mode 100644 index 0000000..32a52c7 --- /dev/null +++ b/Leiningen/tools/chocolateyUninstall.ps1 @@ -0,0 +1,22 @@ +$package = 'Leiningen' +$version = '2.2.0' + +try { + $installDir = Join-Path $Env:USERPROFILE '.lein' + if (Test-Path $installDir) + { + Remove-Item $installDir -Recurse -ErrorAction SilentlyContinue + } + + $batDir = Join-Path $Env:ChocolateyInstall 'bin' + $lein = Join-Path $batDir 'lein.bat' + if (Test-Path $lein) + { + Remove-Item $lein -ErrorAction SilentlyContinue + } + + Write-ChocolateySuccess $package +} catch { + Write-ChocolateyFailure $package "$($_.Exception.Message)" + throw +}