pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www Add www/nsm version 1.15



details:   https://anonhg.NetBSD.org/pkgsrc/rev/09430ec46d42
branches:  trunk
changeset: 342616:09430ec46d42
user:      ng0 <ng0%pkgsrc.org@localhost>
date:      Tue Oct 22 10:34:34 2019 +0000

description:
Add www/nsm version 1.15

Nifty Site Manager ("nsm") is a cross-platform framework for managing
and generating websites. Some of its features are:
- it can manage and generate static and dynamic websites.
- it has support for pre/post build/serve scripts to integrate with
  cURL, databases, SASS, Grunt, GraphQL, Python Web Server, Live
  Server/Reload, and more.
- there is multithreading support
- it is language agnostic, you can use any language you want
  (markdown, LATEX, html, xml, css, javascript, php, MySQL, etc)
- it integrates flawlessly with various Javascript and PHP frameworks
- it integrates with Git to clone from and push to various platforms
  including AWS, BitBucket, GitHub, GitLab, Netlify, surge.sh, ZEIT Now, etc
- it has a templating system

diffstat:

 www/Makefile                   |    3 +-
 www/nsm/DESCR                  |   13 +++
 www/nsm/Makefile               |   18 +++++
 www/nsm/PLIST                  |    3 +
 www/nsm/distinfo               |    7 ++
 www/nsm/patches/patch-Makefile |  143 +++++++++++++++++++++++++++++++++++++++++
 6 files changed, 186 insertions(+), 1 deletions(-)

diffs (221 lines):

diff -r 499e34536991 -r 09430ec46d42 www/Makefile
--- a/www/Makefile      Tue Oct 22 10:05:32 2019 +0000
+++ b/www/Makefile      Tue Oct 22 10:34:34 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1410 2019/10/20 10:06:45 nia Exp $
+# $NetBSD: Makefile,v 1.1411 2019/10/22 10:34:35 ng0 Exp $
 #
 
 COMMENT=       Packages related to the World Wide Web
@@ -219,6 +219,7 @@
 SUBDIR+=       nostromo
 SUBDIR+=       ns-plugger-common
 SUBDIR+=       ns-remote
+SUBDIR+=       nsm
 SUBDIR+=       nspluginwrapper
 SUBDIR+=       ocaml-cohttp
 SUBDIR+=       ocaml-curl
diff -r 499e34536991 -r 09430ec46d42 www/nsm/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/nsm/DESCR     Tue Oct 22 10:34:34 2019 +0000
@@ -0,0 +1,13 @@
+Nifty Site Manager ("nsm") is a cross-platform framework for managing
+and generating websites. Some of its features are:
+- it can manage and generate static and dynamic websites.
+- it has support for pre/post build/serve scripts to integrate with
+  cURL, databases, SASS, Grunt, GraphQL, Python Web Server, Live
+  Server/Reload, and more.
+- there is multithreading support
+- it is language agnostic, you can use any language you want
+  (markdown, LATEX, html, xml, css, javascript, php, MySQL, etc)
+- it integrates flawlessly with various Javascript and PHP frameworks
+- it integrates with Git to clone from and push to various platforms
+  including AWS, BitBucket, GitHub, GitLab, Netlify, surge.sh, ZEIT Now, etc
+- it has a templating system
diff -r 499e34536991 -r 09430ec46d42 www/nsm/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/nsm/Makefile  Tue Oct 22 10:34:34 2019 +0000
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2019/10/22 10:34:34 ng0 Exp $
+
+DISTNAME=      nsm-1.15
+CATEGORIES=    www
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=nifty-site-manager/}
+GITHUB_TAG=    v${PKGVERSION_NOREV}
+
+MAINTAINER=    ng0%NetBSD.org@localhost
+HOMEPAGE=      https://www.nift.cc/
+COMMENT=       Cross-platform git- and LaTeX-like command-line website manager
+LICENSE=       mit
+
+USE_LANGUAGES=         c++
+INSTALLATION_DIRS=     bin
+BUILD_TARGET=          nsm
+
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 499e34536991 -r 09430ec46d42 www/nsm/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/nsm/PLIST     Tue Oct 22 10:34:34 2019 +0000
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2019/10/22 10:34:34 ng0 Exp $
+bin/nift
+bin/nsm
diff -r 499e34536991 -r 09430ec46d42 www/nsm/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/nsm/distinfo  Tue Oct 22 10:34:34 2019 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2019/10/22 10:34:34 ng0 Exp $
+
+SHA1 (nsm-1.15.tar.gz) = 8122a8faba3be0f74277ffe9b2c646e1a1858da9
+RMD160 (nsm-1.15.tar.gz) = e7988ea76ce0cccfdd45f18be0f3506fe7e2644a
+SHA512 (nsm-1.15.tar.gz) = cbd8d0f791f5715b1995bc06baa41c4e79fef4feaf38df2c8735021fe20b8c410d127bcb4b01caf97039e686bb451ecb0f326ed8de3ca954c37c29207c4ab023
+Size (nsm-1.15.tar.gz) = 96116 bytes
+SHA1 (patch-Makefile) = d38e46954af1630dc603e2d135e02884c50c2b27
diff -r 499e34536991 -r 09430ec46d42 www/nsm/patches/patch-Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/nsm/patches/patch-Makefile    Tue Oct 22 10:34:34 2019 +0000
@@ -0,0 +1,143 @@
+$NetBSD: patch-Makefile,v 1.1 2019/10/22 10:34:34 ng0 Exp $
+
+From 9137389f1efdec3502f81b0d7f39a233173a639d upstream
+Makefile: Use ${CXX} instead of g++
+
+
+--- Makefile~
++++ Makefile
+@@ -1,7 +1,7 @@
+ #basic makefile for nsm
+ objects=nsm.o DateTimeInfo.o Directory.o Filename.o PageBuilder.o PageInfo.o Path.o Quoted.o SiteInfo.o Title.o
+ cppfiles=nsm.cpp DateTimeInfo.cpp Directory.cpp Filename.cpp PageBuilder.cpp PageInfo.cpp Path.cpp Quoted.cpp SiteInfo.cpp Title.cpp
+-CC=g++
++CC=${CXX}
+ LINK=-pthread
+ CXXFLAGS=-std=c++11 -Wall -Wextra -pedantic -O3
+ #Flags to use when compiling for Chocolatey
+
+
+
+From d9ff260d813c9d8057d9e6572c3735f64f99b174 upstream
+Add PREFIX + DESTDIR support, add install + uninstall target.
+
+
+--- Makefile~
++++ Makefile
+@@ -3,9 +3,14 @@ objects=nsm.o DateTimeInfo.o Directory.o Filename.o PageBuilder.o PageInfo.o Pat
+ cppfiles=nsm.cpp DateTimeInfo.cpp Directory.cpp Filename.cpp PageBuilder.cpp PageInfo.cpp Path.cpp Quoted.cpp SiteInfo.cpp Title.cpp
+ CC=${CXX}
+ LINK=-pthread
+-CXXFLAGS=-std=c++11 -Wall -Wextra -pedantic -O3
++CXXFLAGS+= -std=c++11 -Wall -Wextra -pedantic -O3
+ #Flags to use when compiling for Chocolatey
+ #CXXFLAGS=-std=c++11 -Wall -Wextra -pedantic -O3 -static -static-libgcc -static-libstdc++
++DESTDIR?=
++PREFIX?=/usr/local
++BINDIR=${DESTDIR}${PREFIX}/bin
++
++all: nsm
+ 
+ nsm: $(objects)
+       $(CC) $(CXXFLAGS) $(cppfiles) -o nsm $(LINK)
+@@ -45,23 +50,15 @@ linux-gedit-highlighting:
+       chmod 644 html.lang
+       cp html.lang /usr/share/gtksourceview-3.0/language-specs/html.lang
+ 
+-linux-install:
+-      chmod 755 nsm
+-      mv nift /usr/local/bin
+-      mv nsm /usr/local/bin
+-
+-linux-uninstall:
+-      rm /usr/local/bin/nift
+-      rm /usr/local/bin/nsm
+-
+-osx-install:
++install:
++      mkdir -p ${BINDIR}
+       chmod 755 nsm
+-      mv nift /usr/local/bin
+-      mv nsm /usr/local/bin
++      mv nift ${BINDIR}
++      mv nsm ${BINDIR}
+ 
+-osx-uninstall:
+-      rm /usr/local/bin/nift
+-      rm /usr/local/bin/nsm 
++uninstall:
++      rm ${BINDIR}/nift
++      rm ${BINDIR}/nsm
+ 
+ git-bash-install:
+       chmod 755 nsm
+
+
+
+From 467ac9c372fe2aabe8513ab4d5b34de6b050174f upstream
+Use CXX for C++ compiler, use conditional assignment operator
+ for CXX.
+
+
+--- Makefile~
++++ Makefile
+@@ -1,7 +1,7 @@
+ #basic makefile for nsm
+ objects=nsm.o DateTimeInfo.o Directory.o Filename.o PageBuilder.o PageInfo.o Path.o Quoted.o SiteInfo.o Title.o
+ cppfiles=nsm.cpp DateTimeInfo.cpp Directory.cpp Filename.cpp PageBuilder.cpp PageInfo.cpp Path.cpp Quoted.cpp SiteInfo.cpp Title.cpp
+-CC=${CXX}
++CXX?=g++
+ LINK=-pthread
+ CXXFLAGS+= -std=c++11 -Wall -Wextra -pedantic -O3
+ #Flags to use when compiling for Chocolatey
+@@ -13,38 +13,38 @@ BINDIR=${DESTDIR}${PREFIX}/bin
+ all: nsm
+ 
+ nsm: $(objects)
+-      $(CC) $(CXXFLAGS) $(cppfiles) -o nsm $(LINK)
+-      $(CC) $(CXXFLAGS) $(cppfiles) -o nift $(LINK)
++      $(CXX) $(CXXFLAGS) $(cppfiles) -o nsm $(LINK)
++      $(CXX) $(CXXFLAGS) $(cppfiles) -o nift $(LINK)
+ 
+ nsm.o: nsm.cpp SiteInfo.o Timer.h
+-      $(CC) $(CXXFLAGS) -c -o $@ $< $(LINK)
++      $(CXX) $(CXXFLAGS) -c -o $@ $< $(LINK)
+ 
+ SiteInfo.o: SiteInfo.cpp SiteInfo.h PageBuilder.o
+-      $(CC) $(CXXFLAGS) -c -o $@ $< $(LINK)
++      $(CXX) $(CXXFLAGS) -c -o $@ $< $(LINK)
+ 
+ PageBuilder.o: PageBuilder.cpp PageBuilder.h DateTimeInfo.o PageInfo.o
+-      $(CC) $(CXXFLAGS) -c -o $@ $<
++      $(CXX) $(CXXFLAGS) -c -o $@ $<
+ 
+ DateTimeInfo.o: DateTimeInfo.cpp DateTimeInfo.h
+-      $(CC) $(CXXFLAGS) -c -o $@ $<
++      $(CXX) $(CXXFLAGS) -c -o $@ $<
+ 
+ PageInfo.o: PageInfo.cpp PageInfo.h Path.o Title.o
+-      $(CC) $(CXXFLAGS) -c -o $@ $<
++      $(CXX) $(CXXFLAGS) -c -o $@ $<
+ 
+ Path.o: Path.cpp Path.h Directory.o Filename.o
+-      $(CC) $(CXXFLAGS) -c -o $@ $<
++      $(CXX) $(CXXFLAGS) -c -o $@ $<
+ 
+ Directory.o: Directory.cpp Directory.h Quoted.h
+-      $(CC) $(CXXFLAGS) -c -o $@ $<
++      $(CXX) $(CXXFLAGS) -c -o $@ $<
+ 
+ Filename.o: Filename.cpp Filename.h Quoted.h
+-      $(CC) $(CXXFLAGS) -c -o $@ $<
++      $(CXX) $(CXXFLAGS) -c -o $@ $<
+ 
+ Title.o: Title.cpp Title.h Quoted.o
+-      $(CC) $(CXXFLAGS) -c -o $@ $<
++      $(CXX) $(CXXFLAGS) -c -o $@ $<
+ 
+ Quoted.o: Quoted.cpp Quoted.h
+-      $(CC) $(CXXFLAGS) -c -o $@ $<
++      $(CXX) $(CXXFLAGS) -c -o $@ $<
+ 
+ linux-gedit-highlighting:
+       chmod 644 html.lang



Home | Main Index | Thread Index | Old Index