better prepare section to gentooify drush

This commit is contained in:
Micha Glave 2012-04-26 14:48:13 +02:00
parent d378aaf08d
commit 7000834185
2 changed files with 17 additions and 6 deletions

View File

@ -1,2 +1,2 @@
DIST drush-5.1.tar.gz 398390 RMD160 972ff3a2c8baa6513f7e9b889086861ff771511c SHA1 8575d6e38b7a78af4714d0509181b9b5d1b60246 SHA256 24c701e8e4da60261210227f5e3c666989ce79234b222a8b1f17de137e7efd67
EBUILD drush-5.1.ebuild 1161 RMD160 c69aa22fc0ef2fe9f355c06653e11dc00f9ebefb SHA1 a86c1d59bc25b79e3751736bf799cf8b5837cc87 SHA256 e0f14c3cfca69da483eac8491151a6ba9f4e429169aebfa98d491fcdd22774f2
EBUILD drush-5.1.ebuild 1286 RMD160 22347a07912b3d4cbc9c28ca35d3a2e1faf532c1 SHA1 8623d8bb390251bc487b0fafe61cd6024677a621 SHA256 fbe67c18bdca7599bd63ecd7a7e065956933742149afd724d1c7e05065a1b529

View File

@ -11,18 +11,29 @@ SRC_URI="http://ftp.drupal.org/files/projects/${PN}-7.x-${PV}.tar.gz -> ${P}.tar
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="examples"
IUSE="+examples"
DEPEND="dev-lang/php[cli,simplexml] dev-php/pear"
DEPEND="dev-lang/php[cli,simplexml]
dev-php/pear
dev-php/PEAR-Console_Getopt
dev-php/PEAR-Console_Table"
RDEPEND="${DEPEND}"
S="${WORKDIR}/${PN}"
src_prepare() {
sed -i -e "s!/share/doc/drush!/share/doc/${P}!" includes/environment.inc || die
sed -i -e "s!\.php'!.php.bz2'!" commands/core/docs.drush.inc || die
sed -i \
-e "s!\(/share/doc/\)drush!\1${P}!g" \
-e "s!README\.txt!\0.bz2!g" \
includes/bootstrap.inc || die
sed -i -e "s!\.php'!.php.bz2'!g" commands/core/docs.drush.inc || die
# preparing bashcomp
mkdir bashcomp && mv drush.complete.sh bashcomp/drush || die
mkdir bashcomp
sed \
-e "1,2d" \
-e "5,11d" \
drush.complete.sh > bashcomp/drush
# cleanup
rm drush.bat includes/.gitignore
}