Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add libCello to Homebrew #44

Closed
novabyte opened this issue Jul 25, 2013 · 14 comments
Closed

Add libCello to Homebrew #44

novabyte opened this issue Jul 25, 2013 · 14 comments

Comments

@novabyte
Copy link

I'm not sure if you'd like to add libCello to Homebrew but in case you do I thought I'd lend a hand.

require 'formula'

class Libcello < Formula
  homepage 'http://libcello.org/'
  url 'http://libcello.org/static/libCello-1.0.0.tar.gz'
  sha1 '005466d3dab88bf39e466bd12e9522a80aad617a'

  head 'https://github.com/orangeduck/libCello.git'

  def install
    system "make", "check"
    system "make", "install", "PREFIX=#{prefix}"
  end
end

The formula is currently waiting on changes from issue #24 before it will build successfully.

@nikreiman
Copy link

Nice, this would be great!

@orangeduck
Copy link
Owner

Hey - this would be great. You can probably update to the 1.0 link on the website. Thanks :)

@novabyte
Copy link
Author

@orangeduck Ok. I'll update the link to the 1.0 release and submit it to homebrew. :)

@radare
Copy link
Contributor

radare commented Jul 25, 2013

Just as a note: i have packaged and maintain the libcello package for voidlinux.

See: https://github.com/xtraeme/xbps-packages/blob/master/srcpkgs/libCello/template

@novabyte
Copy link
Author

@orangeduck ok. It's in the pull queue, hopefully it'll get reviewed and merged in a couple of days.

Homebrew/legacy-homebrew#21441

@novabyte
Copy link
Author

@orangeduck Looks like the Makefile and formula need some work before they'll accept the pull request.

Homebrew/legacy-homebrew#21441 (comment)

I'll make the tweaks in the morning unless you beat me to it.

@orangeduck
Copy link
Owner

Please go ahead. I'm pretty sick of build systems and Makefiles! Thanks.

@novabyte
Copy link
Author

Morning, looks like @radare beat me to the changes to the Makefile. See #47.

I'll update the formula in my branch of Homebrew. You'll need to update the libCello tar.gz to include the newest Makefile. Let me know when you have and I'll regenerate the sha1 in the formula.

@orangeduck
Copy link
Owner

Thanks. Have updated the tarball on the website.

@novabyte
Copy link
Author

@orangeduck Thanks. I've updated the pull request on Homebrew. Let's wait and see. :)

@orangeduck
Copy link
Owner

Hey I may have broken this by mistake in the latest update as I updated the tarball on the website. Forgot this would break the sha1 hash. I tried rolling back but I couldn't regenerate a new tarball with the old hash.

The updates I made are pretty minor so if you have a tarball with the old hash you could send it over. Otherwise updating the homebrew record is the other option.

@novabyte
Copy link
Author

@orangeduck No worries. I'll update the Homebrew formula. :)

@novabyte
Copy link
Author

@orangeduck I just got round to trying to updating the Homebrew formula.

I'm now getting this error when trying to build:

$> make install PREFIX=/usr/local/Cellar/libcello/1.0.0
gcc obj/Array.o obj/Bool.o obj/Char.o obj/Dictionary.o obj/Exception.o obj/File.o obj/Format.o obj/Function.o obj/Lambda.o obj/List.o obj/Map.o obj/Number.o obj/Pool.o obj/Prelude.o obj/Reference.o obj/String.o obj/Table.o obj/Thread.o obj/Tree.o obj/Type.o -shared -g -ggdb -o libCello.so
brew: superenv removed: -g -ggdb
cp -f libCello.a /usr/local/Cellar/libcello/1.0.0/lib/libCello.a
cp: /usr/local/Cellar/libcello/1.0.0/lib/libCello.a: No such file or directory
make: *** [install] Error 1

@orangeduck
Copy link
Owner

You definitely using the newest version? It should be performing the mkdir commands to ensure that directory exists first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants