Creating a new port

Gaspard Bucher gaspard at teti.ch
Tue Oct 7 05:50:48 PDT 2008


Hello !

I would like to create a port to ease installation of zena (a ruby on  
rails based CMS, http://zenadmin.org). The idea is to

1. write the dependencies in a Portfile

build-essential apache2 mysql-server libmagick9-dev gs-gpl libssl-dev  
gettext libgettext-ruby libreadline5 libreadline5-dev zlib1g-dev  
libncurses5 libncurses5-dev temcap-compat unzip liburi-perl jpeg tiff  
ruby rb-rubygems

2. trigger a script to install ruby gems, some with specified versions

gem install gettext --version 1.90.0
gem install RedCloth --version 3.0.4
gem install rake mongrel mongrel_cluster rmagick tzinfo RedCloth  
syntax mongrel_upload_progress uuidtools daemons ruby-debug
gem install --source http://www.loonsoft.com/recaptcha/pkg/ recaptcha

3. find a way to fetch zena sources somewhere in /opt/... (idealy with  
svn/git so it is easy to update the code)

4. install a script to start/stop/update zena


Is all this a really bad idea because there are other (simpler) ways  
to achieve this ?

What do you think ?

Gaspard


More information about the macports-dev mailing list