mirror of
https://github.com/pentoo/pentoo-overlay
synced 2025-12-15 21:02:30 +01:00
beef: doesn't quite work, but it's a lot closer
This commit is contained in:
parent
633dbf098a
commit
a7d179bc8f
2 changed files with 6 additions and 15 deletions
|
|
@ -19,7 +19,7 @@ LICENSE="AGPL-3"
|
|||
#WIP
|
||||
#KEYWORDS="~amd64 ~x86"
|
||||
|
||||
IUSE="qrcode dns geoip notifications +msf +sqlite"
|
||||
IUSE="qrcode dns geoip notifications +msf +sqlite test"
|
||||
|
||||
#ruby_add_rdepend "
|
||||
|
||||
|
|
@ -66,14 +66,9 @@ BDEPEND="${RDEPEND}
|
|||
#dns? ( =dev-ruby/rubydns-0.7.3 )
|
||||
#qr? ( qr4r )
|
||||
|
||||
all_ruby_unpack() {
|
||||
default_src_unpack
|
||||
mv "beef-${P}" "${P}"
|
||||
}
|
||||
|
||||
#S="${WORKDIR}/all/beef-${P}/"
|
||||
|
||||
all_ruby_prepare() {
|
||||
src_prepare() {
|
||||
# epatch "${FILESDIR}/0.4.6_unbundler.patch"
|
||||
# rm {Gemfile*,.gitignore,install*,update-beef}
|
||||
rm {.gitignore,install*,update-beef}
|
||||
|
|
@ -115,15 +110,11 @@ all_ruby_prepare() {
|
|||
sed -i -e "/require 'msgpack'/d" core/loader.rb || die
|
||||
|
||||
default
|
||||
GEM_HOME="${T}" BUNDLE_GEMFILE=Gemfile ruby -S bundle install --local || die
|
||||
GEM_HOME="${T}" BUNDLE_GEMFILE=Gemfile ruby -S bundle check || die
|
||||
}
|
||||
|
||||
each_ruby_prepare() {
|
||||
addpredict "$(ruby_fakegem_gemsdir)/bundler.lock"
|
||||
BUNDLE_GEMFILE=Gemfile ${RUBY} -S bundle install --local || die
|
||||
BUNDLE_GEMFILE=Gemfile ${RUBY} -S bundle check || die
|
||||
}
|
||||
|
||||
each_ruby_install() {
|
||||
src_install() {
|
||||
dodir /usr/$(get_libdir)/${PN}
|
||||
cp -R * "${ED}"/usr/$(get_libdir)/${PN} || die "Copy files failed"
|
||||
dobin "${FILESDIR}/beef"
|
||||
|
|
|
|||
|
|
@ -36,5 +36,5 @@ if [ "$?" != "0" ]; then
|
|||
fi
|
||||
|
||||
#ready to go
|
||||
BUNDLE_GEMFILE=~/.beef/Gemfile ${ruby} -S bundle exec /usr/lib/beef/$(basename $0) "$@"
|
||||
BUNDLE_GEMFILE=~/.beef/Gemfile ruby -S bundle exec /usr/lib/beef/$(basename $0) "$@"
|
||||
#profit
|
||||
|
|
|
|||
Loading…
Reference in a new issue