mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-16 07:58:04 +00:00
sysutils/e2fsprogs: handle PORTREVISION==0 in *_DEPENDS
Else we would depend on, say, e2fsprogs-core-1.48.0_ (trailing underscore) character when PORTREVISION was zeroed or omitted. (Note that bsd.port.mk will default it to 0 value). Use make(1)'s varname:?trueval:falseval: expansion to guard the expansion. (_SUF1 is private in bsd.port.mk, let's avoid that). Reported by: Tomoaki AOKI PR: 276643
This commit is contained in:
parent
8fedb4423e
commit
855dce6bdd
@ -2,7 +2,7 @@ PORTNAME= e2fsprogs
|
||||
CATEGORIES= sysutils
|
||||
PORTVERSION= 1.47.0
|
||||
PORTREVISION= 1
|
||||
BUILD_DEPENDS= e2fsprogs-core=${PORTVERSION}_${PORTREVISION}:sysutils/e2fsprogs-core
|
||||
BUILD_DEPENDS= e2fsprogs-core=${PORTVERSION}${${PORTREVISION} > 0:?_${PORTREVISION}:}:sysutils/e2fsprogs-core
|
||||
RUN_DEPENDS= ${BUILD_DEPENDS}
|
||||
DISTFILES= # empty
|
||||
NO_BUILD= yes
|
||||
|
Loading…
Reference in New Issue
Block a user