unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Edgar Lux <edgarlux@mailfence.com>
To: Help Gnu Emacs <help-gnu-emacs@gnu.org>
Cc: Matus Goljer <matus.goljer@gmail.com>,
	Vedang Manerikar <ved.manerikar@gmail.com>
Subject: Re: Compiling software with Cask without internet
Date: Sun, 29 Oct 2023 17:40:56 +0100 (CET)	[thread overview]
Message-ID: <1184064867.127488.1698597656105@fidget.co-bxl> (raw)
In-Reply-To: <1568883276.264618.1695729003077@fidget.co-bxl>

[-- Attachment #1: Type: text/plain, Size: 2630 bytes --]

I was able to install PDF-tools from sources in Linux. I hope that this is useful to someone:

This replaces the /Installation Instructions for ~epdfinfo~/ in the README.org
1. Get the sources and requirements for:
   s.el f.el dash.el shut-up ert-runner.el undercover.el ecukes el-mock.el commander.el espuds ansi.el tablist cask
2. Download the pdf-tools repo
3. Download the attached patch
4. Open the patch and change /home/edgar/.emacs.d/my-site-lisp by the place where you keep your emacs packages
5. Download and setup Cask (inside the directory that you used in the previous step, or change the path in the patch also)
6. Apply the attached patch that you just modified
7. Compile in the pdf-tools directory (run make)
8. Copy server/epdfinfo to lisp/
9. Load pdf-tools as usual, but from the load-path in step 4 (either with :load-path in use-package or whatever other means; <your-packages>/pdf-tools/lisp should be in your load-path).
10. From the /Installing pdf-tools elisp code/ in the README.org, skip the regular procedure, only do:

    To complete the installation process, you need to activate the package by putting the code below somewhere in your ~.emacs~.  Alternatively, and if you care about startup time, you may want to use the loader version instead.
    #+begin_src elisp
      (pdf-tools-install)  ; Standard activation command
      (pdf-loader-install) ; On demand loading, leads to faster startup time
    #+end_src

Do NOT use 

    (add-hook 'doc-view-mode-hook 'doc-view-set-slice-from-bounding-box).

Good luck. If it works for you, great!


On Sep 26, 2023 at 1:50 PM, Edgar Lux <edgarlux@mailfence.com> wrote:Hello,

Does anybody know how I can install software with Cask without internet? (is
there a way to download the sources and use them without internet?) At the
moment, I noticed that pdf-tools (https://github.com/vedang/pdf-tools) does
this:

    (source gnu)
    (source melpa)

and that there is no way to proceed when commenting those out or plainly
unplugging the Internet. Furthermore, many of the dependencies are interlinked
(ert-runner.el undercover.el ecukes el-mock.el commander.el espuds ansi.el;
most of them coming from https://github.com/rejeep/). For example, undercover
depends on ert-runner, which depends on ecukes, which depends on espuds, which
depends on ert-runner. I tried hacking the Makefile by adding

    CASK = EMACSLOADPATH="paths to all those packages after git
clone:$EMACSLOADPATH" cask

but that did not work. Thank you.

-- 
Sent with https://mailfence.com  
Secure and private email

-- 
Sent with https://mailfence.com  
Secure and private email

[-- Attachment #2: File Attachment: 0001-Squashed-commit-of-the-following.patch.gz --]
[-- Type: application/gzip, Size: 1227 bytes --]

      reply	other threads:[~2023-10-29 16:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-26 11:50 Compiling software with Cask without internet Edgar Lux
2023-10-29 16:40 ` Edgar Lux [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1184064867.127488.1698597656105@fidget.co-bxl \
    --to=edgarlux@mailfence.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=matus.goljer@gmail.com \
    --cc=ved.manerikar@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).