Skip to content

Commit

Permalink
git-tui: new port
Browse files Browse the repository at this point in the history
  • Loading branch information
barracuda156 authored and herbygillot committed May 12, 2024
1 parent 2acfcd3 commit 89441dd
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 0 deletions.
30 changes: 30 additions & 0 deletions devel/git-tui/Portfile
@@ -0,0 +1,30 @@
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem 1.0
PortGroup cmake 1.1
PortGroup github 1.0

github.setup ArthurSonzogni git-tui 1.2.0 v
categories devel sysutils
license MIT
maintainers {@barracuda156 gmail.com:vital.had} openmaintainer
description Terminal interfaces for git
long_description Collection of human-friendly terminal interfaces for git.
checksums rmd160 a031c97e8dbdd294d197189c3240c8a84b96b79d \
sha256 51fc9f55846fddb544f247e4154970c75d794a8523b240a914018eb59143bb91 \
size 2516163
github.tarball_from archive

depends_lib-append port:FTXUI \
port:subprocess

depends_run-append bin:bin:git

patchfiles-append patch-CmakeLists.diff

configure.args-append \
-DFTXUI_BUILD_EXAMPLES=OFF \
-DFTXUI_BUILD_TESTS=OFF \
-DFTXUI_ENABLE_INSTALL=ON

compiler.cxx_standard 2017
39 changes: 39 additions & 0 deletions devel/git-tui/files/patch-CmakeLists.diff
@@ -0,0 +1,39 @@
--- CMakeLists.txt 2024-02-24 17:55:34
+++ CMakeLists.txt 2024-05-12 04:07:45
@@ -4,19 +4,10 @@
VERSION 1.2.0
)

-# --- Dependencies--------------------------------------------------------------
-include(cmake/find_or_fetch_package.cmake)
+find_package(ftxui)

-find_or_fetch_package(ftxui v5.0.0
- https://github.com/ArthurSonzogni/ftxui
- cdf28903a7781f97ba94d30b79c3a4b0c97ccce7
-)
+find_package(subprocess)

-find_or_fetch_package(subprocess v0.4.0
- https://github.com/benman64/subprocess
- e1cae5e86e5d089e65e906f7c13917b7bbb75d04
-)
-
# ------------------------------------------------------------------------------

add_executable(git-tui
@@ -42,10 +33,10 @@
)

target_link_libraries(git-tui
- PRIVATE subprocess
- PRIVATE ftxui::screen
- PRIVATE ftxui::dom
- PRIVATE ftxui::component
+ PUBLIC subprocess
+ PUBLIC ftxui::screen
+ PUBLIC ftxui::dom
+ PUBLIC ftxui::component
)

if (MSVC)

0 comments on commit 89441dd

Please sign in to comment.