alpha-quadrant/app-admin/drush/drush-4.5.ebuild

37 lines
853 B
Bash
Raw Normal View History

2011-08-29 16:02:40 +02:00
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="4"
DESCRIPTION="Drush is a command line shell and scripting interface for Drupal"
HOMEPAGE="http://drupal.org/project/drush"
SRC_URI="http://ftp.drupal.org/files/projects/${PN}-7.x-${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="examples"
DEPEND="dev-lang/php[cli,simplexml] dev-php/pear"
RDEPEND="${DEPEND}"
S="${WORKDIR}/${PN}"
src_install() {
local docs="README.txt docs"
insinto /usr/share/drush
doins -r .
exeinto /usr/share/drush
doexe drush
dosym /usr/share/drush/drush /usr/bin/drush
dodoc -r ${docs}
2012-02-22 12:45:03 +01:00
use examples || docs="${docs} examples"
2011-08-29 16:02:40 +02:00
# cleanup
2012-02-22 12:45:03 +01:00
for i in ${docs} LICENSE.txt drush.bat includes/.gitignore tests ; do
2011-08-29 16:02:40 +02:00
rm -rf "${D}/usr/share/drush/${i}"
done
}