mirror of
https://github.com/yann64/haikuports.git
synced 2026-03-19 01:46:00 +01:00
new ports: tio + its dependency inih (#7948)
* inih: new port, version r56 * tio: new port, version 2.5
This commit is contained in:
60
dev-libs/inih/inih-r56.recipe
Normal file
60
dev-libs/inih/inih-r56.recipe
Normal file
@@ -0,0 +1,60 @@
|
||||
SUMMARY="Simple .INI file parser in C, good for embedded systems"
|
||||
DESCRIPTION="a simple .INI file parser written in C. It's only a couple of pages of code, and it \
|
||||
was designed to be small and simple"
|
||||
HOMEPAGE="https://github.com/benhoyt/inih"
|
||||
COPYRIGHT="2009 Ben Hoyt"
|
||||
LICENSE="BSD (3-clause)"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/benhoyt/inih/archive/refs/tags/$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="4f2ba6bd122d30281a8c7a4d5723b7af90b56aa828c0e88256d7fceda03a491a"
|
||||
SOURCE_FILENAME="inih-$portVersion.tar.gz"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
inih$secondaryArchSuffix = $portVersion
|
||||
lib:libinih$secondaryArchSuffix = $portVersion
|
||||
lib:libINIReader$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
inih${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libinih$secondaryArchSuffix = $portVersion
|
||||
devel:libINIReader$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
REQUIRES_devel="
|
||||
inih$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:meson
|
||||
cmd:ninja
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
meson build --buildtype=release \
|
||||
--prefix=$prefix --datadir=$dataDir \
|
||||
--includedir=$includeDir --libdir=$libDir \
|
||||
--sysconfdir=$settingsDir
|
||||
ninja -C build
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
ninja -C build install
|
||||
|
||||
prepareInstalledDevelLibs libinih libINIReader
|
||||
fixPkgconfig
|
||||
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
}
|
||||
25
net-dialup/tio/patches/tio-2.5.patchset
Normal file
25
net-dialup/tio/patches/tio-2.5.patchset
Normal file
@@ -0,0 +1,25 @@
|
||||
From 5e0ca52c644ee63111efa5c0db514efbb0af3e52 Mon Sep 17 00:00:00 2001
|
||||
From: Peter van Dijk <peter@7bits.nl>
|
||||
Date: Fri, 10 Mar 2023 23:58:52 +0000
|
||||
Subject: use right /dev/ path on Haiku
|
||||
|
||||
merged upstream as https://github.com/tio/tio/pull/189 so this
|
||||
patch can be removed on the next tio release
|
||||
|
||||
diff --git a/src/tty.c b/src/tty.c
|
||||
index f5ffc35..406ab1d 100644
|
||||
--- a/src/tty.c
|
||||
+++ b/src/tty.c
|
||||
@@ -62,6 +62,9 @@
|
||||
#elif defined(__CYGWIN__)
|
||||
#define PATH_SERIAL_DEVICES "/dev/"
|
||||
#define PREFIX_TTY_DEVICES "ttyS"
|
||||
+#elif defined(__HAIKU__)
|
||||
+#define PATH_SERIAL_DEVICES "/dev/ports/"
|
||||
+#define PREFIX_TTY_DEVICES ""
|
||||
#else
|
||||
#define PATH_SERIAL_DEVICES "/dev/serial/by-id/"
|
||||
#define PREFIX_TTY_DEVICES ""
|
||||
--
|
||||
2.37.3
|
||||
|
||||
48
net-dialup/tio/tio-2.5.recipe
Normal file
48
net-dialup/tio/tio-2.5.recipe
Normal file
@@ -0,0 +1,48 @@
|
||||
SUMMARY="A simple serial device I/O tool"
|
||||
DESCRIPTION="tio is a simple serial device tool which features a straightforward command-line and \
|
||||
configuration file interface to easily connect to serial TTY devices for basic I/O operations."
|
||||
HOMEPAGE="https://tio.github.io/"
|
||||
COPYRIGHT="2014-2022 Martin Lund"
|
||||
LICENSE="GNU GPL v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/tio/tio/releases/download/v$portVersion/tio-$portVersion.tar.xz"
|
||||
CHECKSUM_SHA256="063952ee90a78cee180f6e660d6c73773dfc109efcdc151585accfe1500c44a7"
|
||||
SOURCE_FILENAME="tio-$portVersion.tar.xz"
|
||||
PATCHES="tio-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
tio$secondaryArchSuffix = $portVersion
|
||||
cmd:tio = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libinih$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libinih$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
bash_completion
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:meson
|
||||
cmd:ninja
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
LDFLAGS=-lnetwork meson build --buildtype=release \
|
||||
--prefix=$prefix --datadir=$dataDir \
|
||||
--includedir=$includeDir --sysconfdir=$settingsDir
|
||||
ninja -C build
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
ninja -C build install
|
||||
}
|
||||
Reference in New Issue
Block a user