e563b66bfb
Changelog picked from https://github.com/nifty-site-manager/nsm/releases: Nift (aka nsm) v2.0.1 * fixed bug when cloning a website repository from an empty directory (and any other similar bugs from using remove_path where remove_file is more appropriate, ie. when creating temporary text files) Nift (aka nsm) v2.0 * changed @inputcontent to @content() * changed @inputraw(file-path) to @input{raw}(file-path) * addded if-exists/raw option to @input(file-path) and @content() * added file/name options to @pathto * changed @userin(msg) to @in(msg) and @userfilein(msg) to @in{from-file}(msg) * added if-exists/inject/raw/content options to @script/@System * changed from using @[varname] and @{varname} to @[varname] and @<varname> when printing variables * changed to @funcname{options}(params) for function call syntax * changed from using * option to parse params to {!p} option to NOT parse function name, options and params * changed from using ^ option to not backup scripts to {!bs} option * added read_params * fixup up read_def and read_func_name * fixed multi-line comments
30 lines
869 B
Makefile
30 lines
869 B
Makefile
# $NetBSD: Makefile,v 1.7 2020/01/09 11:28:37 ng0 Exp $
|
|
|
|
DISTNAME= nsm-2.0.1
|
|
CATEGORIES= www
|
|
MASTER_SITES= ${MASTER_SITE_GITHUB:=nifty-site-manager/}
|
|
GITHUB_TAG= v${PKGVERSION_NOREV}
|
|
|
|
MAINTAINER= ng0@NetBSD.org
|
|
HOMEPAGE= https://www.nift.cc/
|
|
COMMENT= Cross-platform git- and LaTeX-like command-line website manager
|
|
LICENSE= mit
|
|
|
|
USE_LANGUAGES= c++
|
|
INSTALLATION_DIRS= bin
|
|
|
|
# Avoid building 2 binaries with the exact same content
|
|
# where we can symlink instead. This safes 50 percent
|
|
# of the binary size and some double computation.
|
|
# closed upstream ticket:
|
|
# https://github.com/nifty-site-manager/nsm/issues/2
|
|
SUBST_CLASSES+= nift
|
|
SUBST_STAGE.nift= pre-configure
|
|
SUBST_FILES.nift= Makefile
|
|
SUBST_SED.nift= -e '/nift/ s,^,\#,g'
|
|
|
|
post-install:
|
|
cd ${DESTDIR}${PREFIX}/bin && ${LN} -s nsm nift
|
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|