tree: update to version 2.2.1. (#13614)

This commit is contained in:
OscarL
2026-01-11 22:41:57 -03:00
committed by GitHub
parent 722c2f9a9b
commit c34e360b16
3 changed files with 44 additions and 80 deletions

View File

@@ -1,40 +0,0 @@
From c44e177a02ccfe9dfbdfc830aed8837afa2ad6b1 Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Thu, 24 Apr 2014 16:37:07 +0000
Subject: Haiku patch
diff --git a/Makefile b/Makefile
index 842281e..f13abd6 100644
--- a/Makefile
+++ b/Makefile
@@ -30,12 +30,12 @@ OBJS=tree.o unix.o html.o xml.o json.o hash.o color.o file.o
# Uncomment options below for your particular OS:
# Linux defaults:
-CFLAGS=-ggdb -pedantic -Wall -DLINUX -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
+#CFLAGS=-ggdb -pedantic -Wall -DLINUX -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
#CFLAGS=-O4 -Wall -DLINUX -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
#LDFLAGS=-s
# Uncomment for FreeBSD:
-#CFLAGS=-O2 -Wall -fomit-frame-pointer
+CFLAGS=-O2 -Wall -fomit-frame-pointer
#LDFLAGS=-s
#OBJS+=strverscmp.o
@@ -68,6 +68,11 @@ CFLAGS=-ggdb -pedantic -Wall -DLINUX -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=6
#MANDIR=/usr/share/man/man1
#OBJS+=strverscmp.o
+# Uncomment for Haiku:
+CFLAGS=-O2 -Wall -fomit-frame-pointer
+LDFLAGS=
+OBJS+=strverscmp.o
+
# Uncomment for HP/UX:
#CC=cc
#CFLAGS=-O2 -DAportable -Wall
--
2.19.1

View File

@@ -1,40 +0,0 @@
SUMMARY="Lists directories and files recursively"
DESCRIPTION="Lists directories recursively, and produces an indented listing \
of files."
HOMEPAGE="http://mama.indstate.edu/users/ice/tree/"
COPYRIGHT="1996-2011 Steve Baker"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="http://mama.indstate.edu/users/ice/tree/src/tree-$portVersion.tgz"
CHECKSUM_SHA256="715d5d4b434321ce74706d0dd067505bb60c5ea83b5f0b3655dae40aa6f9b7c2"
PATCHES="tree-$portVersion.patchset"
ARCHITECTURES="all"
SECONDARY_ARCHITECTURES="?x86_gcc2 ?x86"
PROVIDES="
tree$secondaryArchSuffix = $portVersion
cmd:tree$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
"
BUILD()
{
make
}
INSTALL()
{
make install MANDIR=$manDir/man1 prefix=$prefix
}

View File

@@ -0,0 +1,44 @@
SUMMARY="Lists directories and files recursively"
DESCRIPTION="Lists directories recursively, and produces an indented listing of files."
HOMEPAGE="https://oldmanprogrammer.net/source.php?dir=projects/tree"
COPYRIGHT="1996-2024 Steve Baker"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="https://oldmanprogrammer.net/tar/tree/tree-$portVersion.tgz"
CHECKSUM_SHA256="68ac45dc78c0c311ada06200ffc3c285e74223ba208061f8d15ffac25e44b2ec"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
tree$secondaryArchSuffix = $portVersion
cmd:tree = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
"
if [ "$targetArchitecture" = x86_gcc2 ]; then
REPLACES="
tree
"
fi
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
"
BUILD()
{
make
}
INSTALL()
{
make install MANDIR=$manDir PREFIX=$prefix
}