pkgsrc-WIP-changes archive

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

cfiles update



Module Name:	pkgsrc-wip
Committed By:	Nikita Ronja <nikita%NetBSD.org@localhost>
Pushed By:	nikita
Date:		Sun Apr 21 17:07:29 2024 +0200
Changeset:	f35cf1698772fb39f7a3fd824d00b4c780397c09

Modified Files:
	cfiles/Makefile
	cfiles/PLIST
	cfiles/distinfo
Added Files:
	cfiles/TODO

Log Message:
cfiles update

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

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

diffstat:
 cfiles/Makefile | 29 +++++++++++++++++------------
 cfiles/PLIST    |  4 ++++
 cfiles/TODO     |  1 +
 cfiles/distinfo |  6 +++---
 4 files changed, 25 insertions(+), 15 deletions(-)

diffs:
diff --git a/cfiles/Makefile b/cfiles/Makefile
index a072838785..be455364e0 100644
--- a/cfiles/Makefile
+++ b/cfiles/Makefile
@@ -1,7 +1,7 @@
 # $NetBSD$
 
 GITHUB_PROJECT=	cfiles
-DISTNAME=	v1.3
+DISTNAME=	v1.8
 PKGNAME=	${GITHUB_PROJECT}-${DISTNAME}
 CATEGORIES=	sysutils
 MASTER_SITES=	${MASTER_SITE_GITHUB:=mananapr/}
@@ -15,31 +15,36 @@ LICENSE=	mit
 DEPENDS=	fzf-[0-9]*:../../sysutils/fzf
 
 USE_LANGUAGES=	c
+USE_TOOLS+=	bash:run
 
-WRKSRC=	${WRKDIR}/cfiles-1.3
+WRKSRC=	${WRKDIR}/cfiles-1.8
 
 INSTALLATION_DIRS=	bin ${PKGMANDIR}/man1
 
-SUBST_CLASSES+=		gcc
-SUBST_STAGE.gcc=	pre-configure
-SUBST_FILES.gcc+=	Makefile
-SUBST_SED.gcc+=		-e 's|CC = gcc|CC = cc|g'
+REPLACE_BASH+=		scripts/clearimg
+REPLACE_BASH+=		scripts/clearimg_uberzug
+REPLACE_BASH+=		scripts/displayimg
+REPLACE_BASH+=		scripts/displayimg_uberzug
 
 SUBST_CLASSES+=		ncurses
 SUBST_STAGE.ncurses=	pre-configure
 SUBST_MESSAGE.ncurses=	Link with the proper curses type
 SUBST_FILES.ncurses=	Makefile
-SUBST_SED.ncurses=	-e 's|LIBS =  -lncursesw|LIBS = -l${BUILDLINK_LIBNAME.curses}|g'
+SUBST_SED.ncurses=	-e 's|LIBS += $(NCURSES_LIBS)|LIBS += -l${BUILDLINK_LIBNAME.curses}|g'
+SUBST_SED.ncurses+=	-e 's,^CFLAGS,,g'
 
-SUBST_CLASSES+=		install
-SUBST_STAGE.install=	pre-configure
-SUBST_FILES.install=	Makefile
-SUBST_SED.install+=	-e 's|DEST = /usr/local|DEST = ${DESTDIR}${PREFIX}|g'
-SUBST_SED.install+=	-e 's|cp -v|${INSTALL_PROGRAM}|g'
+SUBST_CLASSES+=		gcc
+SUBST_STAGE.gcc=	pre-configure
+SUBST_FILES.gcc+=	Makefile
+SUBST_SED.gcc+=		-e 's|CC = gcc|CC = cc|g'
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/cfiles ${DESTDIR}${PREFIX}/bin
 	${INSTALL_MAN} ${WRKSRC}/cfiles.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+	${MKDIR} ${DESTDIR}${PREFIX}/share/cfiles/scripts
+.for i in clearimg displayimg displayimg_uberzug clearimg_uberzug
+	${INSTALL} ${WRKSRC}/scripts/${i} ${DESTDIR}${PREFIX}/share/cfiles/scripts/${i}
+.endfor
 
 .include "../../mk/curses.buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff --git a/cfiles/PLIST b/cfiles/PLIST
index e50cf6449b..c39d74a8ff 100644
--- a/cfiles/PLIST
+++ b/cfiles/PLIST
@@ -1,3 +1,7 @@
 @comment $NetBSD$
 bin/cfiles
 man/man1/cfiles.1
+share/cfiles/scripts/clearimg
+share/cfiles/scripts/clearimg_uberzug
+share/cfiles/scripts/displayimg
+share/cfiles/scripts/displayimg_uberzug
diff --git a/cfiles/TODO b/cfiles/TODO
new file mode 100644
index 0000000000..a427f6a327
--- /dev/null
+++ b/cfiles/TODO
@@ -0,0 +1 @@
+does it need ncurses instead of curses?
diff --git a/cfiles/distinfo b/cfiles/distinfo
index caa20dac12..ea18fcafe4 100644
--- a/cfiles/distinfo
+++ b/cfiles/distinfo
@@ -1,6 +1,6 @@
 $NetBSD$
 
-RMD160 (cfiles/v1.3.tar.gz) = 91b07847eba9e74f37f66a38595474cda8e89167
-SHA512 (cfiles/v1.3.tar.gz) = 0f36f7dca89bd71465e6d25569911fb6322bc139f132a559fda0c31b96caf3f2854d7a071bc8e5d8c0535c72cadc748f9775c4ca5d19f86921a43fc9a3f1136c
-Size (cfiles/v1.3.tar.gz) = 277136 bytes
+BLAKE2s (cfiles/v1.8.tar.gz) = 4e61f41fe5c8be2fb343664ed9da5d70c20f0aef2bd8bc4a99d035ce0e102a1d
+SHA512 (cfiles/v1.8.tar.gz) = 14880c71bcc6dc0b6433be722bdd75d30859556fae30754c668a9dacf8a1b8e4758cca3572de034a1e8fb4e947d38739351969139fe72f59a7af3dcb158aaa86
+Size (cfiles/v1.8.tar.gz) = 237966 bytes
 SHA1 (patch-aa) = 5e5b838261ffdd04c5ac0b4bf9486646b553396b


Home | Main Index | Thread Index | Old Index