Configure DevDocs on EC2
sudo yum update | |
sudo yum install gobject-introspection-devel gtk3-devel gstreamer1-devel \ | |
libsoup-devel json-glib-devel gcc-c++ patch readline-devel openssl-devel \ | |
bison bzip2 sqlite-devel git flex intltool python2-devel libxslt-devel \ | |
docbook-xsl python-markdown | |
curl -O ftp://mirror.switch.ch/pool/4/mirror/scientificlinux/7rolling/x86_64/os/Packages/libyaml-devel-0.1.4-11.el7_0.x86_64.rpm | |
curl -O ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/home:/TheIndifferent:/rhel7-icewm/rhel7-shared/noarch/itstool-2.0.2-2.1.noarch.rpm | |
sudo rpm -ivh libyaml-devel-0.1.4-11.el7_0.x86_64.rpm itstool-2.0.2-2.1.noarch.rpm | |
sudo su - root # otherwise repos can't be reached?? http://stackoverflow.com/questions/28802298 | |
yum-config-manager --enable rhui-REGION-rhel-server-extras | |
yum-config-manager --enable rhui-REGION-rhel-server-optional | |
yum-config-manager --enable rhui-REGION-rhel-server-supplementary | |
yum install cheese-libs-devel clutter-devel clutter-gst2-devel clutter-gtk-devel \ | |
evince-devel geocode-glib-devel gom-devel grilo-devel gtk2-devel \ | |
gtksourceview3-devel libappstream-glib-devel libchamplain-devel \ | |
libgdata-devel libgweather-devel libgxps-devel libnotify-devel libpeas-devel \ | |
librsvg2-devel libsecret-devel libzapojit-devel poppler-glib-devel \ | |
vte291-devel vte3-devel webkitgtk3-devel | |
exit | |
mkdir jhbuild | |
cd jhbuild | |
git clone --depth=1 git://git.gnome.org/jhbuild | |
cd jhbuild | |
./autogen.sh --simple-install | |
make | |
make install | |
cd | |
mkdir .config | |
cat >.config/jhbuildrc <<EOF | |
modules = ['gobject-introspection'] | |
branches['gobject-introspection'] = ('https://github.com/ptomato/gobject-introspection', 'wip/ptomato/devdocs') | |
autogenargs = '--disable-gtk-doc' | |
skip = ['gtk-doc'] | |
EOF | |
jhbuild build | |
\curl -sSL https://get.rvm.io | bash -s stable | |
source ~/.profile | |
rvm requirements run | |
rvm install 2.3.0 | |
rvm use 2.3.0 --default | |
gem install bundle | |
git clone https://github.com/ptomato/devdocs -b gir-redux | |
cd devdocs | |
echo "gem 'therubyracer', platforms: 'ruby'" >>Gemfile | |
bundle install | |
jhbuild shell | |
thor gir:generate_all | |
for docset in appstreamglib10 atk10 cairo10 cally10 champlain012 cheese30 \ | |
clutter10 cluttergst20 cogl10 cogl20 coglpango10 coglpango20 css \ | |
evincedocument30 evinceview30 gck1 gcrui3 gdata00 gdk20 gdk30 \ | |
gdkpixbuf20 geocodeglib10 gio20 girepository20 glib20 gmodule20 goa10 \ | |
gobject20 gom10 grl02 grlnet02 grlpls02 gssdp10 gst10 gstallocators10 \ | |
gstapp10 gstaudio10 gstbase10 gstcheck10 gstcontroller10 gstfft10 \ | |
gstnet10 gstpbutils10 gstriff10 gstrtp10 gstrtsp10 gstsdp10 gsttag10 \ | |
gstvideo10 gtk20 gtk30 gtkclutter10 gtksource30 gupnp10 gweather30 \ | |
gxps01 javascript json10 notify07 pango10 peas10 peasgtk10 poppler018 \ | |
rest07 restextras07 rsvg20 secret1 soup24 soupgnome24 vte290 vte291 \ | |
webkit230 webkit2webextension30 webkit30 zpj00; do | |
thor docs:generate $docset --force | |
done | |
rackup -o 172.31.36.209 -D |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment