Anyone interested in a Package Manager in Ruby?

Hmm.

Homebrew is the easiest and most flexible way to install the
UNIX tools Apple didn't include with OS X.

Haven't yet, but what Homebrew does seems super trivial. Just like stow,
or?

Perhaps I am missing something.

Packages are installed into their own isolated prefixes and
then symlinked into /usr/local.

Well, my scripts do that since 5 years ... it's what Gobolinux does
too, except that it symlinks into /System/Links/* ... even in a chrooted
compile environment, unless I misremember.

Homebrew formula are simple Ruby scripts:

There is where my scripts would differ probably. My dataset is in yaml
files right now. But you can generate ruby standalone classes or
standalone shell scripts too. (And eventually valid formats for ebuild,
PKGBUILD etc... as well, but it is all not 100% complete)

Last but not least, the ruby scripts here should work anywhere, no
matter the OS. If ruby runs, the scripts should work too.

I used the word "Package Manager" but the scripts are really more like a
set of tools. I.e. it should be possible to eventually compile a LFS
(Linux from Scratch) with them too (once ruby works on the system, that
is, without ruby apparently the scripts can not work)

···

--
Posted via http://www.ruby-forum.com/.

nixpkgs (www.nixos.org) should also be known by you.
a) ruby is supported pretty well :slight_smile:
b) it has many nice features such as atomic upgrades, distributed
    building etc.

Thus before you write a new tool check it out and give it a try. Don't
think there are that many OSX users yet - but the backbone of the
system is pretty stable.

Marc Weber

Marc Heiler wrote in post #1011032:

Homebrew is the easiest and most flexible way to install the
UNIX tools Apple didn't include with OS X.

Haven't yet, but what Homebrew does seems super trivial. Just like
stow, right, but written in ruby? And constrained to Apple.

My understanding (not having tried it myself) is that Homebrew scripts
build the application using configure / make / make install, as your
scripts do. Since OSX is BSD-derived, I'd expect such scripts to work on
other platforms with minimal changes - or at least for you to be able to
write homebrew scripts to build applications on other platforms.

If you want something truly cross-platform, then look at pkgsrc (the
NetBSD package system). Stuff in pkgsrc builds on all sorts of things,
including Linux. However, it's not written in ruby - it's
Makefile-based.

···

--
Posted via http://www.ruby-forum.com/.

Heretix was a linux distribution which aimed at using Ruby instead of
traditional sh/dash scripts or other GNU tools.

I don't know how far along the package management was, but that was a
goal along with a rewrite of init scripts.

The package management was to be inspired by GoboLinux, with packages in
individual subdirectories and with automated symlink maintenance.

http://www.h-e-r-e-t-i-x.org
http://wayback.archive.org/web/*/www.h-e-r-e-t-i-x.org

The project died in early 2007. If there is enough interest, I could
dig up my contact information for the authors.

I use gentoo prefix

also use macports( formerly darwin ports)

before that fink.

I on occasion will compile by hand.

I hear brew is nice. how much control does it give you? Can I compile
zsh without perl pcre support or ruby without emacs etc.