pkgsrc-WIP-changes archive

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

laser: add 1.7.8



Module Name:	pkgsrc-wip
Committed By:	Bartosz Kuzma <bartosz.kuzma%gmail.com@localhost>
Pushed By:	bartosz.kuzma
Date:		Thu Nov 26 19:04:33 2026 +0100
Changeset:	d96e61435862cbffb7c813ef25114c1c2f1a9d0e

Modified Files:
	Makefile
Added Files:
	laser/DESCR
	laser/Makefile
	laser/PLIST
	laser/distinfo
	laser/patches/patch-CMakeLists.txt

Log Message:
laser: add 1.7.8

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

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

diffstat:
 Makefile                           |  1 +
 laser/DESCR                        |  1 +
 laser/Makefile                     | 20 ++++++++++++++++++++
 laser/PLIST                        |  6 ++++++
 laser/distinfo                     |  6 ++++++
 laser/patches/patch-CMakeLists.txt | 25 +++++++++++++++++++++++++
 6 files changed, 59 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 7be11f9fb8..487f0110c8 100644
--- a/Makefile
+++ b/Makefile
@@ -2002,6 +2002,7 @@ SUBDIR+=	ladybird-git
 SUBDIR+=	lambertw
 SUBDIR+=	lander
 SUBDIR+=	lanq
+SUBDIR+=	laser
 SUBDIR+=	lasi
 SUBDIR+=	lazyjj
 SUBDIR+=	lbt
diff --git a/laser/DESCR b/laser/DESCR
new file mode 100644
index 0000000000..19cf9e5d40
--- /dev/null
+++ b/laser/DESCR
@@ -0,0 +1 @@
+(lsr) Basically `ls` but readable
diff --git a/laser/Makefile b/laser/Makefile
new file mode 100644
index 0000000000..218d678705
--- /dev/null
+++ b/laser/Makefile
@@ -0,0 +1,20 @@
+# $NetBSD$
+
+DISTNAME=	laser-1.7.8
+CATEGORIES=	sysutils
+MASTER_SITES=	${MASTER_SITE_GITHUB:=jmattaa/}
+GITHUB_TAG=	refs/tags/v${PKGVERSION_NOREV}
+
+MAINTAINER=	bartosz.kuzma%gmail.com@localhost
+HOMEPAGE=	https://github.com/jmattaa/laser/
+COMMENT=	Basically ls(1) but readable
+LICENSE=	mit
+
+WRKSRC=	${WRKDIR}/${DISTNAME}
+
+CMAKE_CONFIGURE_ARGS+=	-DLUA_SCRIPTS_INSTALL_PATH=${PREFIX}/share/laser
+
+.include "../../devel/cmake/build.mk"
+.include "../../devel/libgit2/buildlink3.mk"
+.include "../../lang/lua/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/laser/PLIST b/laser/PLIST
new file mode 100644
index 0000000000..f43382d9ec
--- /dev/null
+++ b/laser/PLIST
@@ -0,0 +1,6 @@
+@comment $NetBSD$
+bin/lsr
+share/laser/laser_default_colors.lua
+share/laser/laser_default_filters.lua
+share/laser/laser_default_utils.lua
+share/laser/lsr.lua
diff --git a/laser/distinfo b/laser/distinfo
new file mode 100644
index 0000000000..8ae93dce5d
--- /dev/null
+++ b/laser/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+BLAKE2s (laser-1.7.8.tar.gz) = 30a478a6d762d2baf084fdcae6ff0a51253f1acc5cd3d2677f30a8f861277a7a
+SHA512 (laser-1.7.8.tar.gz) = 25bdffce6e86fa708163ddc379f885d655a40ef02fb13155911d1f71394cd411a1243aacc84acd7c27c5f2fd82f8516721e52ade945ce5f443f3257688f7a722
+Size (laser-1.7.8.tar.gz) = 674312 bytes
+SHA1 (patch-CMakeLists.txt) = a73144f965c6015421016d2e8496d29f353547e3
diff --git a/laser/patches/patch-CMakeLists.txt b/laser/patches/patch-CMakeLists.txt
new file mode 100644
index 0000000000..b6f49437b5
--- /dev/null
+++ b/laser/patches/patch-CMakeLists.txt
@@ -0,0 +1,25 @@
+$NetBSD$
+
+Fix installation of lua scripts
+
+--- CMakeLists.txt.orig	2026-03-07 21:39:30.000000000 +0000
++++ CMakeLists.txt
+@@ -55,14 +55,12 @@ set(LUA_INSTALL_PATH "${CMAKE_INSTALL_PR
+ 
+ file(GLOB LUA_SCRIPTS "${CMAKE_CURRENT_SOURCE_DIR}/lua/*.lua")
+ 
+-add_custom_command(TARGET lsr POST_BUILD
+-    COMMENT "Copying Lua scripts to ${LUA_SCRIPTS_INSTALL_PATH}"
+-    COMMAND ${CMAKE_COMMAND} -E make_directory "${LUA_SCRIPTS_INSTALL_PATH}"
+-    COMMAND ${CMAKE_COMMAND} -E copy ${LUA_SCRIPTS} "${LUA_SCRIPTS_INSTALL_PATH}"
+-)
+-
+ install(TARGETS lsr DESTINATION bin)
+ 
++install(FILES ${LUA_SCRIPTS}
++    DESTINATION "${LUA_SCRIPTS_INSTALL_PATH}"
++)
++
+ if(NOT TARGET uninstall)
+     configure_file(
+         "${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in"


Home | Main Index | Thread Index | Old Index