pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

cask: some progress



Module Name:	pkgsrc-wip
Committed By:	Thomas Klausner <wiz%gatalith.at@localhost>
Pushed By:	wiz
Date:		Sat Jun 24 00:31:17 2023 +0200
Changeset:	6e7bf62fbbe79431c9047784c50826e2190c8dce

Modified Files:
	cask/DESCR
	cask/Makefile
	cask/PLIST
	cask/TODO
	cask/distinfo

Log Message:
cask: some progress

TODO:

Downloads files from ELPA and MELPA during build and install -
provide them instead, to avoid network traffic after fetch stage..

Installs a symlink to files in $HOME as bin/cask, so package
doesn't work outside the build environment.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=6e7bf62fbbe79431c9047784c50826e2190c8dce

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 cask/DESCR    | 12 ++++++++++--
 cask/Makefile | 10 ++++++++--
 cask/PLIST    |  4 +---
 cask/TODO     |  7 +++++--
 cask/distinfo |  6 +++---
 5 files changed, 27 insertions(+), 12 deletions(-)

diffs:
diff --git a/cask/DESCR b/cask/DESCR
index 30e41add36..4e8a604f5b 100644
--- a/cask/DESCR
+++ b/cask/DESCR
@@ -1,2 +1,10 @@
-TODO: Fill in a short description of the package.
-TODO: It should be between 3 and 20 lines.
+Cask can be likened to venv or maven for Emacs Lisp development,
+although, as with all things emacs, is decidedly less sophisticated
+(but no less arcane).
+
+Cask provisions dependencies within a sandbox via a user-defined
+"Cask" file analogous to requirements-dev.txt or pom.xml.
+
+Cask does not absolve you of having to learn emacs's command flags.
+Cask only constructs the sandbox, one for each version of emacs
+you choose to test.
diff --git a/cask/Makefile b/cask/Makefile
index 45ed3cb3db..9447810db3 100644
--- a/cask/Makefile
+++ b/cask/Makefile
@@ -1,6 +1,6 @@
 # $NetBSD$
 
-DISTNAME=	cask-0.8.8
+DISTNAME=	cask-0.9.0
 CATEGORIES=	editors devel
 MASTER_SITES=	${MASTER_SITE_GITHUB:=cask/}
 GITHUB_TAG=	v${PKGVERSION_NOREV}
@@ -13,7 +13,13 @@ LICENSE=	gnu-gpl-v3
 DEPENDS+=	emacs28-[0-9]*:../../editors/emacs28
 
 USE_LANGUAGES=	# none
-USE_TOOLS+=	bash gmake
+USE_TOOLS+=	bash:run gmake
+# hack to get this to install in the right location
+MAKE_FLAGS+=	XDG_DATA_HOME=${DESTDIR}${PREFIX}/bin
+
+INSTALLATION_DIRS+=	bin
+
+REPLACE_BASH+=	bin/cask
 
 .include "../../lang/python/tool.mk"
 .include "../../mk/bsd.pkg.mk"
diff --git a/cask/PLIST b/cask/PLIST
index 92ba51a2d7..7745a9b44d 100644
--- a/cask/PLIST
+++ b/cask/PLIST
@@ -1,4 +1,2 @@
 @comment $NetBSD$
-@comment TODO: to fill this file with the file listing:
-@comment TODO: 1. run "/usr/bin/make package"
-@comment TODO: 2. run "/usr/bin/make print-PLIST"
+bin/cask
diff --git a/cask/TODO b/cask/TODO
index 2cbf294c08..3e010856e6 100644
--- a/cask/TODO
+++ b/cask/TODO
@@ -1,2 +1,5 @@
-Fails to build
-https://github.com/cask/cask/issues/588
+Downloads files from ELPA and MELPA during build and install -
+provide them instead, to avoid network traffic after fetch stage..
+
+Installs a symlink to files in $HOME as bin/cask, so package
+doesn't work outside the build environment.
diff --git a/cask/distinfo b/cask/distinfo
index e96e40a488..ab3f92b97f 100644
--- a/cask/distinfo
+++ b/cask/distinfo
@@ -1,5 +1,5 @@
 $NetBSD$
 
-BLAKE2s (cask-0.8.8.tar.gz) = 599f4264ec464e6700a341305f05b98fb4dcd68373c0aad080d0cb76bbd0d34a
-SHA512 (cask-0.8.8.tar.gz) = 2708fa431dc17cb5d4fe56f0c73c3089a213d8ff0bca19091ab4ebf26c4e416c0a500a980daa424bf16b54d0e72b004762f5260329189eb4f8e803de38bc0ace
-Size (cask-0.8.8.tar.gz) = 348574 bytes
+BLAKE2s (cask-0.9.0.tar.gz) = fdfa6cc5c9af361f9a209376e9dd19d481ff447ad564439df7bd704325f7fc4e
+SHA512 (cask-0.9.0.tar.gz) = 9e1e9eb0146504fc3ff2dc5358edc59b8157948df4698c7fbec14c28720458cd28b0b9ef9dc34b23a615e5b0a8ef843f9a9bdd9f7030aef797fa3df7864ae46a
+Size (cask-0.9.0.tar.gz) = 280606 bytes


Home | Main Index | Thread Index | Old Index