mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
devel/comlin: New port: Small self-contained alternative to readline and libedit
PR: 280602 Reported by: Daniel Engberg <diizzy@FreeBSD.org>
This commit is contained in:
parent
60a177caf1
commit
713a610437
5 changed files with 63 additions and 0 deletions
|
@ -454,6 +454,7 @@
|
|||
SUBDIR += color
|
||||
SUBDIR += colorgcc
|
||||
SUBDIR += colormake
|
||||
SUBDIR += comlin
|
||||
SUBDIR += commit-patch
|
||||
SUBDIR += commitizen
|
||||
SUBDIR += commoncpp
|
||||
|
|
27
devel/comlin/Makefile
Normal file
27
devel/comlin/Makefile
Normal file
|
@ -0,0 +1,27 @@
|
|||
PORTNAME= comlin # fork of github.com/antirez/linenoise (port devel/linenoise)
|
||||
DISTVERSION= g20240315
|
||||
CATEGORIES= devel
|
||||
|
||||
MAINTAINER= yuri@FreeBSD.org
|
||||
COMMENT= Small self-contained alternative to readline and libedit
|
||||
WWW= https://github.com/drobilla/comlin
|
||||
|
||||
LICENSE= BSD2CLAUSE
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||
|
||||
USES= meson
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= drobilla
|
||||
GH_TAGNAME= 4d13650
|
||||
|
||||
MESON_ARGS= -Ddocs=disabled
|
||||
|
||||
PLIST_FILES= include/comlin.h \
|
||||
lib/libcomlin.so \
|
||||
lib/libcomlin.so.0 \
|
||||
lib/libcomlin.so.0.0.1 \
|
||||
libdata/pkgconfig/comlin.pc
|
||||
|
||||
.include <bsd.port.mk>
|
3
devel/comlin/distinfo
Normal file
3
devel/comlin/distinfo
Normal file
|
@ -0,0 +1,3 @@
|
|||
TIMESTAMP = 1723344871
|
||||
SHA256 (drobilla-comlin-g20240315-4d13650_GH0.tar.gz) = 6d570794d707db5f317ac979f83ce90f3eeeb8b3815cc0751ca91ff0557d08af
|
||||
SIZE (drobilla-comlin-g20240315-4d13650_GH0.tar.gz) = 27762
|
21
devel/comlin/files/patch-meson.build
Normal file
21
devel/comlin/files/patch-meson.build
Normal file
|
@ -0,0 +1,21 @@
|
|||
--- meson.build.orig 2024-03-15 21:01:28 UTC
|
||||
+++ meson.build
|
||||
@@ -17,8 +17,7 @@ major_version = meson.project_version().split('.')[0]
|
||||
comlin_src_root = meson.current_source_dir()
|
||||
comlin_build_root = meson.current_build_dir()
|
||||
major_version = meson.project_version().split('.')[0]
|
||||
-version_suffix = '-@0@'.format(major_version)
|
||||
-versioned_name = 'comlin' + version_suffix
|
||||
+versioned_name = 'comlin'
|
||||
|
||||
#######################
|
||||
# Compilers and Flags #
|
||||
@@ -124,7 +123,7 @@ meson.override_dependency(versioned_name, comlin_dep)
|
||||
meson.override_dependency(versioned_name, comlin_dep)
|
||||
|
||||
# Install header to a versioned include directory
|
||||
-install_headers(c_headers, subdir: versioned_name / 'comlin')
|
||||
+install_headers(c_headers)
|
||||
|
||||
#########
|
||||
# Tests #
|
11
devel/comlin/pkg-descr
Normal file
11
devel/comlin/pkg-descr
Normal file
|
@ -0,0 +1,11 @@
|
|||
comlin is a minimal, zero-config, BSD licensed, readline replacement used
|
||||
in Redis, MongoDB, Android and many other projects.
|
||||
|
||||
Features:
|
||||
* Single and multi line editing mode with the usual key bindings implemented.
|
||||
* History handling.
|
||||
* Completion.
|
||||
* Hints (suggestions at the right of the prompt as you type).
|
||||
* Multiplexing mode, with prompt hiding/restoring for asynchronous output.
|
||||
* About ~850 lines (comments and spaces excluded) of BSD license source code.
|
||||
* Only uses a subset of VT100 escapes (ANSI.SYS compatible).
|
Loading…
Add table
Reference in a new issue