better examples handling
This commit is contained in:
parent
9ed0267095
commit
92d0331512
@ -1,2 +1,2 @@
|
||||
DIST drush-4.5.tar.gz 282760 RMD160 29566326577ebafb5321941c9abf92462bec7891 SHA1 81446d1bc61dc47a19050f809faa336633aeef17 SHA256 11a8ba3acbebf0be45407dee54a4c59cb9da7dfb461cf4ed9e27e78b2968fc99
|
||||
EBUILD drush-4.5.ebuild 853 RMD160 3a981df43a67dbf6552c192735a2039da6b2f038 SHA1 d678549822480b3ff2d8ca61ac4c6093aaaab749 SHA256 eb2e58dc1f72f228097d0d955140218360023edef67af1a0a00b842b9da83262
|
||||
EBUILD drush-4.5.ebuild 1030 RMD160 27fe98e8d12f10bea1db1e2cdb6399c2b80b99be SHA1 50af5887b566ffc5aa118a2e8314e940d3426549 SHA256 473cc0ab792ffd49bacf9ffecbcb4c44dba95b08953f6a53cd85cd5279b58814
|
||||
|
@ -17,20 +17,24 @@ DEPEND="dev-lang/php[cli,simplexml] dev-php/pear"
|
||||
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
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local docs="README.txt docs"
|
||||
|
||||
use examples && docs="${docs} examples"
|
||||
|
||||
insinto /usr/share/drush
|
||||
doins -r .
|
||||
exeinto /usr/share/drush
|
||||
doexe drush
|
||||
dosym /usr/share/drush/drush /usr/bin/drush
|
||||
dodoc -r ${docs}
|
||||
|
||||
use examples || docs="${docs} examples"
|
||||
|
||||
# cleanup
|
||||
for i in ${docs} LICENSE.txt drush.bat includes/.gitignore tests ; do
|
||||
for i in ${docs} LICENSE.txt drush.bat examples includes/.gitignore tests ; do
|
||||
rm -rf "${D}/usr/share/drush/${i}"
|
||||
done
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user