1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-08 06:48:28 +00:00

devel/hyprlang: add new port

The hypr configuration language is an extremely efficient, yet easy to
work with, configuration language for linux applications.

It's user-friendly, easy to grasp, and easy to implement.

https://hyprland.org/hyprlang
This commit is contained in:
Jan Beich 2024-01-02 23:10:42 +01:00
parent d54bbf6ddf
commit 1c60f593c9
5 changed files with 58 additions and 0 deletions

View File

@ -960,6 +960,7 @@
SUBDIR += hwloc
SUBDIR += hwloc2
SUBDIR += hyperscan
SUBDIR += hyprlang
SUBDIR += ice
SUBDIR += ice37
SUBDIR += icestorm

25
devel/hyprlang/Makefile Normal file
View File

@ -0,0 +1,25 @@
PORTNAME= hyprlang
DISTVERSIONPREFIX= v
DISTVERSION= 0.2.1
CATEGORIES= devel
MAINTAINER= jbeich@FreeBSD.org
COMMENT= Library to parse hypr config files
WWW= https://hyprland.org/hyprlang
LICENSE= GPLv3+
LICENSE_FILE= ${WRKSRC}/LICENSE
BROKEN_armv7= https://github.com/hyprwm/hyprlang/issues/8
BROKEN_i386= https://github.com/hyprwm/hyprlang/issues/8
BROKEN_powerpc= https://github.com/hyprwm/hyprlang/issues/8
USES= cmake:testing compiler:c++11-lib
USE_GITHUB= yes
USE_LDCONFIG= yes
GH_ACCOUNT= hyprwm
PLIST_FILES= include/${PORTNAME}.hpp \
lib/lib${PORTNAME}.so \
share/pkgconfig/${PORTNAME}.pc
.include <bsd.port.mk>

3
devel/hyprlang/distinfo Normal file
View File

@ -0,0 +1,3 @@
TIMESTAMP = 1704233442
SHA256 (hyprwm-hyprlang-v0.2.1_GH0.tar.gz) = e41b265f09c1e84e03f052f584fcc086fe48ec5057191ef35917ce79e7dc4190
SIZE (hyprwm-hyprlang-v0.2.1_GH0.tar.gz) = 61006

View File

@ -0,0 +1,25 @@
https://github.com/hyprwm/hyprlang/issues/6
https://github.com/hyprwm/hyprlang/issues/7
--- CMakeLists.txt.orig 2024-01-02 22:10:42 UTC
+++ CMakeLists.txt
@@ -31,16 +31,16 @@ target_link_libraries(hyprlang_test PRIVATE hyprlang)
add_executable(hyprlang_test "tests/parse/main.cpp")
target_link_libraries(hyprlang_test PRIVATE hyprlang)
-add_test(NAME "Parsing" WORKING_DIRECTORY "../tests/" COMMAND hyprlang_test "parse")
+add_test(NAME "Parsing" WORKING_DIRECTORY "${PROJECT_SOURCE_DIR}/tests/" COMMAND hyprlang_test "parse")
add_dependencies(tests hyprlang_test)
add_executable(hyprlang_fuzz "tests/fuzz/main.cpp")
target_link_libraries(hyprlang_fuzz PRIVATE hyprlang)
-add_test(NAME "Fuzz" WORKING_DIRECTORY "../tests/" COMMAND hyprlang_fuzz "fuzz")
+add_test(NAME "Fuzz" WORKING_DIRECTORY "${PROJECT_SOURCE_DIR}/tests/" COMMAND hyprlang_fuzz "fuzz")
add_dependencies(tests hyprlang_fuzz)
# Installation
install(TARGETS hyprlang
PUBLIC_HEADER DESTINATION include
LIBRARY DESTINATION lib)
-install(FILES build/hyprlang.pc DESTINATION ${CMAKE_INSTALL_PREFIX}/share/pkgconfig)
+install(FILES ${CMAKE_BINARY_DIR}/hyprlang.pc DESTINATION ${CMAKE_INSTALL_PREFIX}/share/pkgconfig)

4
devel/hyprlang/pkg-descr Normal file
View File

@ -0,0 +1,4 @@
The hypr configuration language is an extremely efficient, yet easy to
work with, configuration language for linux applications.
It's user-friendly, easy to grasp, and easy to implement.