File: dont-lint-on-build

package info (click to toggle)
haml-elisp 1%3A3.2.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 136 kB
  • sloc: lisp: 715; makefile: 41
file content (37 lines) | stat: -rw-r--r-- 1,317 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Author: Gunnar Wolf <gwolf@debian.org>
Last-Update: 2025-11-19 11:05:03 GMT-6
Forwarded: not-needed
Description: Avoid network access and requiring packge-lint at build time
 The upstream-shipped Makefile requires package-lint (which emits several
 deprecation warnings). In order to satisfy the linter requirement, the
 package is downloaded from MELPA.
 .
 I am patching out both the call to the linter and the line pushing the
 MELPA URL to the package-archives.

Index: haml-elisp-3.2.1/Makefile
===================================================================
--- haml-elisp-3.2.1.orig/Makefile
+++ haml-elisp-3.2.1/Makefile
@@ -1,11 +1,10 @@
 EMACS ?= emacs
 
 # A space-separated list of required package names
-NEEDED_PACKAGES = package-lint
+NEEDED_PACKAGES = #package-lint
 
 INIT_PACKAGES="(progn \
   (require 'package) \
-  (push '(\"melpa\" . \"https://melpa.org/packages/\") package-archives) \
   (package-initialize) \
   (dolist (pkg '(${NEEDED_PACKAGES})) \
     (unless (package-installed-p pkg) \
@@ -14,7 +13,7 @@ INIT_PACKAGES="(progn \
       (package-install pkg))) \
   )"
 
-all: compile package-lint clean-elc
+all: compile clean-elc
 
 package-lint:
 	${EMACS} -Q --eval ${INIT_PACKAGES} --eval '(setq package-lint-main-file "haml-mode.el")' -batch -f package-lint-batch-and-exit *.el