Skip to content

Commit

Permalink
devel/ninja: Update to 1.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
BSDKaffee committed May 19, 2024
1 parent b3b1380 commit bb0835f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
20 changes: 15 additions & 5 deletions devel/ninja/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PORTNAME= ninja
PORTVERSION= 1.11.1
PORTVERSION= 1.12.0
DISTVERSIONPREFIX= v
PORTEPOCH= 2
CATEGORIES= devel
Expand All @@ -11,12 +11,10 @@ WWW= https://ninja-build.org/
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/COPYING

USES= python
USE_GITHUB= yes
GH_ACCOUNT= ninja-build

CONFLICTS= irc/ninja
USES= python

PORTSCOUT= limit:^1\.

PLIST_FILES= bin/ninja
Expand All @@ -28,12 +26,24 @@ OPTIONS_DEFAULT= BASH ZSH
BASH_PLIST_FILES= share/bash-completion/completions/ninja
ZSH_PLIST_FILES= share/zsh/site-functions/_ninja

# Set up the environment variables that ninja's configure.py recognizes and
# respect building with ccache.
NINJA_ENV= AR="${AR}" \
CFLAGS="${CFLAGS}" \
CXXFLAGS="${CXXFLAGS}" \
LDFLAGS="${LDFLAGS}"
.if defined(WITH_CCACHE_BUILD) && !defined(NO_CCACHE)
NINJA_ENV+= CXX="${CCACHE_BIN} ${CXX}"
.else
NINJA_ENV+= CXX="${CXX}"
.endif

post-patch:
@${REINPLACE_CMD} "s/'-g', //" ${WRKSRC}/configure.py

do-build:
@(cd ${WRKSRC} && \
CXX="${CXX}" CFLAGS="${CXXFLAGS}" ${PYTHON_CMD} configure.py --bootstrap)
${SETENVI} ${CONFIGURE_ENV} ${NINJA_ENV} ${PYTHON_CMD} configure.py --bootstrap --verbose)

do-install:
${INSTALL_PROGRAM} ${WRKSRC}/ninja ${STAGEDIR}${PREFIX}/bin
Expand Down
6 changes: 3 additions & 3 deletions devel/ninja/distinfo
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
TIMESTAMP = 1662060193
SHA256 (ninja-build-ninja-v1.11.1_GH0.tar.gz) = 31747ae633213f1eda3842686f83c2aa1412e0f5691d1c14dbbcc67fe7400cea
SIZE (ninja-build-ninja-v1.11.1_GH0.tar.gz) = 229479
TIMESTAMP = 1714464552
SHA256 (ninja-build-ninja-v1.12.0_GH0.tar.gz) = 8b2c86cd483dc7fcb7975c5ec7329135d210099a89bc7db0590a07b0bbfe49a5
SIZE (ninja-build-ninja-v1.12.0_GH0.tar.gz) = 240291

0 comments on commit bb0835f

Please sign in to comment.