# $Id: Portfile 83385 2011-08-31 01:52:26Z dports@macports.org $

PortSystem          1.0

name                drush
version             2.1
categories          www php
platforms           darwin
maintainers         acm.org:c_dantonio
license             GPL-2

description         The DRUpal SHell
long_description    drush is a command line shell and Unix scripting interface for Drupal, a veritable Swiss Army \
                    knife designed to make life easier for those of us who spend some of our working hours hacking \
                    away at the command prompt.

homepage            http://drupal.org/project/drush
distname            drush-All-Versions-${version}
master_sites        http://ftp.drupal.org/files/projects/ \
                    http://ftp.osuosl.org/pub/drupal/files/projects/
checksums           md5     dd4b55c7d1e98f35c51c69788d6dffee \
                    sha1    d49d05baa26d8ce7aa7f0250c6f0e01ba2f5aebb \
                    rmd160  5d78cd177ae53d4844ca8f6cdb427ec286393881
depends_lib         port:php52

variant drupal5 conflicts drupal6 description "use with Drupal 5 port" {
  depends_lib-append      port:drupal5
}

variant drupal6 conflicts drupal5 description "use with Drupal 6 port" {
  depends_lib-append      port:drupal6
}

worksrcdir          drush
use_configure       no
build { }

destroot {
  copy ${worksrcpath} ${destroot}${prefix}/libexec/drush
  ln -s ${prefix}/libexec/drush/drush ${destroot}${prefix}/bin/drush
}

livecheck.type      regex
livecheck.regex     drush-All-Versions-(\[0-9.\]+)\\.tar
