Skip to content

Commit

Permalink
sysutils/tree: provide fallback download URL and other improvements
Browse files Browse the repository at this point in the history
- For some reason, upstream distfile site is currently inaccessible
  in certain parts of the world, e.g. Russia
- Pass build-related variables down to inner Makefile via MAKE_ARGS
  and remove the patch file (particularly, it was patching `install'
  target which is useless as the port is using its own)
- Adjust LICENSE (it's GPLv2 or later) and install documentation in
  the dedicated helper target (also install TODO file while here)

PR:	261547
  • Loading branch information
Alexey Dokuchaev authored and Alexey Dokuchaev committed Jan 29, 2022
1 parent 919fa2a commit 7fbb727
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 52 deletions.
12 changes: 7 additions & 5 deletions sysutils/tree/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,29 @@
PORTNAME= tree
PORTVERSION= 2.0.1
CATEGORIES= sysutils
MASTER_SITES= http://mama.indstate.edu/users/ice/tree/src/
MASTER_SITES= http://mama.indstate.edu/users/ice/tree/src/ \
https://fossies.org/linux/misc/

MAINTAINER= gb@unistra.fr
COMMENT= Display a tree-view of directories with optional color or HTML output

LICENSE= GPLv2
LICENSE= GPLv2+

MAKE_ENV+= MKDIR="${MKDIR}"
USES= gmake tar:tgz
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"

PLIST_FILES= bin/tree \
man/man1/tree.1.gz \
man/man1/tree.fr.1.gz

PORTDOCS= CHANGES README
PORTDOCS= CHANGES README TODO

OPTIONS_DEFINE= DOCS

do-install:
${INSTALL_PROGRAM} ${WRKSRC}/tree ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/doc/*.1 ${STAGEDIR}${MAN1PREFIX}/man/man1

do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}

Expand Down
47 changes: 0 additions & 47 deletions sysutils/tree/files/patch-Makefile

This file was deleted.

0 comments on commit 7fbb727

Please sign in to comment.