Gentoo Archives: gentoo-user

From: Peter Humphrey <peter@××××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Anyone using www-apps/jekyll?
Date: Thu, 28 Oct 2021 13:25:15
Message-Id: 3163589.aeNJFYEL58@wstn
In Reply to: Re: [gentoo-user] Anyone using www-apps/jekyll? by Alec Ten Harmsel
1 On Thursday, 28 October 2021 13:34:49 BST Alec Ten Harmsel wrote:
2
3 > I got jekyll installed via portage by adding:
4 >
5 > dev-ruby/* ~amd64
6 > www-apps/jekyll ~amd64
7 > www-apps/jekyll-* ~amd64
8 >
9 > to package.accept_keywords, and then running `emerge www-apps/jekyll'.
10 > This is on stable, with a tree that is a couple weeks old for what it's
11 > worth.
12
13 This system is ~amd64, so I didn't have to do that.
14
15 > Then `jekyll new testsite && bundle exec jekyll serve' works for me.
16
17 $ jekyll new myblog && bundle exec jekyll serve
18 ...
19 [A number of Bundler: Using... messages]
20 ...
21 New jekyll site installed in /home/prh/myblog.
22 Could not locate Gemfile or .bundle/ directory
23
24 # find / -xdev -iname gemfile
25 /usr/lib64/ruby/gems/3.0.0/gems/jekyll-seo-tag-2.7.1/Gemfile
26 /usr/lib64/ruby/gems/3.0.0/gems/bundler-2.2.29/lib/bundler/templates/Gemfile
27 /usr/lib64/ruby/gems/2.6.0/gems/bundler-2.2.29/lib/bundler/templates/Gemfile
28 /usr/lib64/ruby/gems/2.6.0/gems/jekyll-4.2.0/lib/theme_template/Gemfile
29 $ find . -xdev -iname gemfile
30 ./.local/share/gem/ruby/3.0.0/gems/jekyll-4.2.1/lib/theme_template/Gemfile
31 ./.local/share/gem/ruby/3.0.0/gems/mercenary-0.4.0/Gemfile
32 ./.local/share/gem/ruby/3.0.0/gems/terminal-table-2.0.0/Gemfile
33 ./.local/share/gem/ruby/3.0.0/gems/http_parser.rb-0.6.0/Gemfile
34 ./.local/share/gem/ruby/3.0.0/gems/bundler-2.2.30/lib/bundler/templates/Gemfile
35 ./.local/share/gem/ruby/3.0.0/gems/addressable-2.8.0/Gemfile
36 ./.local/share/gem/ruby/3.0.0/gems/forwardable-extended-2.6.0/Gemfile
37 ./.local/share/gem/ruby/3.0.0/gems/rb-inotify-0.10.1/Gemfile
38 ./.local/share/gem/ruby/3.0.0/gems/em-websocket-0.5.2/Gemfile
39 ./.local/share/gem/ruby/3.0.0/gems/sassc-2.4.0/Gemfile
40 ./.local/share/gem/ruby/3.0.0/gems/concurrent-ruby-1.1.9/Gemfile
41 ./.local/share/gem/ruby/3.0.0/gems/safe_yaml-1.0.5/Gemfile
42 ./.local/share/gem/ruby/3.0.0/gems/rb-fsevent-0.11.0/Gemfile
43 ./.local/share/gem/ruby/3.0.0/gems/bundler-2.2.29/lib/bundler/templates/Gemfile
44 ./.local/share/gem/ruby/3.0.0/gems/ffi-1.15.4/Gemfile
45 ./.local/share/gem/ruby/3.0.0/gems/colorator-1.1.0/Gemfile
46 ./.local/share/gem/ruby/3.0.0/gems/rouge-3.26.1/Gemfile
47 ./.local/share/gem/ruby/3.0.0/gems/public_suffix-4.0.6/Gemfile
48 ./.local/share/gem/ruby/3.0.0/gems/pathutil-0.16.2/Gemfile
49 ./myblog/Gemfile
50 $ grep -v \# myblog/Gemfile | grep -v ^$
51 source "https://rubygems.org"
52 gem "jekyll", "~> 4.2.0"
53 gem "minima", "~> 2.5"
54 group :jekyll_plugins do
55 gem "jekyll-feed", "~> 0.12"
56 end
57 platforms :mingw, :x64_mingw, :mswin, :jruby do
58 gem "tzinfo", "~> 1.2"
59 gem "tzinfo-data"
60 end
61 gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin]
62
63 (That last line relates to Windows and Jruby.) It still looks like a PATH
64 problem, but what do I know? :(
65
66 > You could also try using jekyll outside of portage:
67 >
68 > mkdir mysite && cd mysite
69 > bundle init
70 > bundle config set path 'vendor/bundle'
71 > bundle add jekyll
72 > bundle exec jekyll new --force .
73 > rm Gemfile.lock
74 > rm -rf ./vendor/bundle
75 > bundle config set path 'vendor/bundle'
76 > bundle install
77 > bundle exec jekyll serve
78 >
79 > And then continue following other jekyll instructions as needed. You'll have
80 > to use `bundle exec jekyll ...' to run jekyll - you won't be able to run
81 > jekyll directly.
82
83 Thanks Alec. I may have to try something like that, but I'd rather have it
84 installed by portage if I can.
85
86 Perhaps I'm just growing too old for this sort of thing...
87
88 --
89 Regards,
90 Peter.

Replies

Subject Author
Re: [gentoo-user] Anyone using www-apps/jekyll? Alec Ten Harmsel <alec@××××××××××××××.com>