Ticket #21712: Portfile

File Portfile, 1.4 KB (added by chuck@…, 15 years ago)
Line 
1# $Id$
2
3PortSystem          1.0
4
5name                drush
6version             2.1
7categories          www php
8platforms           darwin
9
10maintainers         chuck@acquia.com
11description         The DRUpal SHell
12long_description    drush is a command line shell and Unix scripting interface for Drupal, a veritable Swiss Army \
13                    knife designed to make life easier for those of us who spend some of our working hours hacking \
14                    away at the command prompt.
15
16homepage            http://drupal.org/project/drush
17distfiles           drush-All-Versions-$version.tar.gz
18master_sites        http://ftp.drupal.org/files/projects/ \
19                    http://ftp.osuosl.org/pub/drupal/files/projects/
20checksums           md5     dd4b55c7d1e98f35c51c69788d6dffee \
21                    sha1    d49d05baa26d8ce7aa7f0250c6f0e01ba2f5aebb \
22                    rmd160  5d78cd177ae53d4844ca8f6cdb427ec286393881
23depends_lib         port:php52
24
25variant drupal5 description "use with Drupal 5 port" {
26  depends_lib-append      port:drupal5
27}
28
29variant drupal6 description "use with Drupal 6 port" {
30  depends_lib-append      port:drupal6
31}
32
33worksrcdir          drush
34use_configure       no
35build { }
36
37destroot {
38  xinstall -d -m 0755 ${destroot}/${prefix}/libexec/drush
39  eval file copy [glob ${worksrcpath}/*] ${destroot}/${prefix}/libexec/drush
40  ln -s ${prefix}/libexec/drush/drush ${destroot}/${prefix}/bin/drush 
41}