Last active
August 29, 2015 13:57
-
-
Save phortx/9504396 to your computer and use it in GitHub Desktop.
Strange autoparts package errors
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright (c) 2013-2014 Irrational Industries Inc. d.b.a. Nitrous.IO | |
# This software is licensed under the [BSD 2-Clause license](https://raw.github.com/nitrous-io/autoparts/master/LICENSE). | |
module Autoparts | |
module Packages | |
class Vlc < Package | |
name 'vlc' | |
version '2.1.4' | |
description 'A free and open source multimedia player and framework' | |
category Category::UTILITIES | |
source_url 'http://download.videolan.org/pub/videolan/vlc/2.1.4/vlc-2.1.4.tar.xz' | |
source_sha1 '53896c88947803193a21fb4619f34034bad05920' | |
source_filetype 'tar.xz' | |
def compile | |
Dir.chdir(name_with_version) do | |
end | |
end | |
def install | |
Dir.chdir(name_with_version) do | |
end | |
end | |
end | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ parts install zsh | |
=> Extracting archive... | |
=> Installing... | |
=> Activating... | |
=> Installed zsh 5.0.5 | |
$ parts install vlc | |
=> Extracting archive... | |
=> Compiling... | |
parts: ERROR: No such file or directory @ dir_chdir - vlc-2.1.4 | |
Aborting! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright (c) 2013-2014 Irrational Industries Inc. d.b.a. Nitrous.IO | |
# This software is licensed under the [BSD 2-Clause license](https://raw.github.com/nitrous-io/autoparts/master/LICENSE). | |
module Autoparts | |
module Packages | |
class Zsh < Package | |
name 'zsh' | |
version '5.0.5' | |
description 'Zsh: A shell with lots of features' | |
category Category::SHELLS | |
source_url 'https://downloads.sourceforge.net/project/zsh/zsh/5.0.5/zsh-5.0.5.tar.bz2' | |
source_sha1 '75426146bce45ee176d9d50b32f1ced78418ae16' | |
source_filetype 'tar.gz' | |
def compile | |
Dir.chdir(name_with_version) do | |
end | |
end | |
def install | |
Dir.chdir(name_with_version) do | |
end | |
end | |
end | |
end | |
end |
I've opened a pull request for .tar.xz
support for autoparts ;)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Unfortunately we haven't handled the
tar.xz
extension yet ( we should 😢 ). You can check the source for https://github.com/nitrous-io/autoparts/blob/master/lib/autoparts/package.rb#L255 here. I guess that's probably why the package cant find any extracted folder.I agree that we lacks a lot of documentation on how to create new packages. We would love to chat more on how new packages can be created here https://www.nitrous.io/chat ( its our public hipchat room )