Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Add new formula unar #15322

Merged
merged 0 commits into from Nov 27, 2012
Merged

Add new formula unar #15322

merged 0 commits into from Nov 27, 2012

Conversation

jaimeMF
Copy link
Contributor

@jaimeMF jaimeMF commented Oct 5, 2012

This formula installs unar and lsar, the first one can extract archives with diferent formats and the last one list the contents of an archive.

system "rm -r #{tempDirectory}"
#Copy man pages
system "cd ./Extra;mkdir #{share};mkdir #{man};mkdir #{man1}; mv ./lsar.1 #{man1}/lsar.1; mv ./unar.1 #{man1}/unar.1"
end
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't chain commands in shell invocations, and calls to things like mv, cd, mkdir, etc. should be done using the included FileUtils methods rather than shelling out. e.g.:

cd 'foo' do
  # do some things
end

cd 'bar' do
  # do other things
end

@jacknagel
Copy link
Contributor

Indents should be 2sp.

@Sharpie
Copy link
Contributor

Sharpie commented Oct 6, 2012

Needs a depends_on :xcode if calling xcodebuild.

@adamv
Copy link
Contributor

adamv commented Oct 9, 2012

Please squash to a single commit for review, thanks.

url 'http://theunarchiver.googlecode.com/files/unar1.2_src.zip'
version '1.2'
sha1 '6fcc27f6d37dc254b8c473b7616049083c566f4a'
depends_on :xcode => :xcodebuild
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just depends_on :xcode, no => :xcodebuild.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, should I made a new commit?

@jaimeMF
Copy link
Contributor Author

jaimeMF commented Oct 13, 2012

I have made a single commit

@jaimeMF
Copy link
Contributor Author

jaimeMF commented Nov 11, 2012

It has passed a month, so I'm trying to bump
@adamv, @Sharpie, @jacknagel

@jaimeMF jaimeMF merged commit f899878 into Homebrew:master Nov 27, 2012
@jaimeMF jaimeMF mentioned this pull request Nov 27, 2012
@jaimeMF jaimeMF deleted the unarFormula branch January 5, 2013 12:03
@Homebrew Homebrew locked and limited conversation to collaborators Feb 16, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants