Skip to content

Instantly share code, notes, and snippets.

@bangpound
Created March 8, 2010 03:20
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save bangpound/324809 to your computer and use it in GitHub Desktop.
Save bangpound/324809 to your computer and use it in GitHub Desktop.
drush and drush_make Portfile for MacPorts
# $Id$
# Based on work of chuck@acquia.com that's in the MacPorts repository.
PortSystem 1.0
name drush
version 3.3
categories www php
platforms darwin
maintainers bangpound.org:bjd
license GPLv2
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-6.x-${version}
master_sites http://ftp.drupal.org/files/projects/ \
http://ftp.osuosl.org/pub/drupal/files/projects/
checksums md5 ed7ee13415548c643358a8a870534a5e
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
# $Id$
PortSystem 1.0
name drush_make
version 2.0-beta8
categories www php
platforms darwin
maintainers bangpound.org:bjd
license GPLv2
description Drush Make
long_description Drush make is an extension to drush that can create a ready-to-use drupal site, pulling \
sources from various locations. It does this by parsing a flat text file (similar to a drupal \
.info file) and downloading the sources it describes. In practical terms, this means that it \
is possible to distribute a complicated Drupal distribution as a single text file.
homepage http://drupal.org/project/drush_make
distname drush_make-6.x-${version}
master_sites http://ftp.drupal.org/files/projects/ \
http://ftp.osuosl.org/pub/drupal/files/projects/
checksums md5 75c2d4b1ae7f69f843d641723f4aae5a
depends_lib port:drush
worksrcdir drush_make
use_configure no
build { }
destroot {
file mkdir -p ${destroot}${prefix}/libexec/drush/commands
copy ${worksrcpath} ${destroot}${prefix}/libexec/drush/commands
}
@henrrrik
Copy link

I've updated the drush portfile for version 3.0: http://gist.github.com/376320

Should php52 really be a dependency? drush requires PHP, but it's included in OS X so it should run regardless of whether it has been installed via MacPorts.

@henrrrik
Copy link

I've updated http://gist.github.com/376320 for 3.1 (new version number + new md5 checksum). Testing it as I'm writing this, but MacPorts wants to upgrade EVERYTHING so it will take a while before I can verify that it works...

@henrrrik
Copy link

It didn't, the archive file name over at drupal.org has changed from drush-All-versions-${version}.tar.gz to drush-6.x-${version}.tar.gz. I'm assuming this is by mistake so I won't change anything for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment