diff --git a/www/writefreely/Makefile b/www/writefreely/Makefile index e58db907a43b..c7edd2c1e5db 100644 --- a/www/writefreely/Makefile +++ b/www/writefreely/Makefile @@ -1,73 +1,72 @@ PORTNAME= writefreely DISTVERSIONPREFIX= v -DISTVERSION= 0.15.0 -PORTREVISION= 1 +DISTVERSION= 0.15.1 CATEGORIES= www textproc MAINTAINER= fuz@FreeBSD.org COMMENT= Clean, Markdown-based publishing platform made for writers WWW= https://writefreely.org LICENSE= AGPLv3 LICENSE_FILE= ${WRKSRC}/LICENSE LICENSE_DISTFILES_CC-BY-NC-SA-4.0= writefreely-documentation-v0.13.1_GH0.tar.gz -USES= go:1.20,modules +USES= go:modules USE_GITHUB= nodefault USE_RC_SUBR= writefreely GO_MODULE= github.com/writefreely/writefreely GO_TARGET= ./cmd/writefreely SUB_FILES= config.ini.sample pkg-message USERS= writefreely GROUPS= writefreely OPTIONS_DEFINE= DOCS SQLITE3 OPTIONS_DEFAULT= CSS_DIST SQLITE3 OPTIONS_SINGLE= CSS OPTIONS_SINGLE_CSS= CSS_DIST CSS_LESSC CSS_DESC= Stylesheets CSS_DIST_DESC= Use pre-generated stylesheets CSS_LESSC_DESC= Generate stylesheets with lessc (requires npm) CSS_DIST_MASTER_SITES= LOCAL/fuz:css CSS_DIST_DISTFILES= writefreely-css-${DISTVERSION}.tar.gz:css CSS_LESSC_BUILD_DEPENDS= npm:www/npm CSS_LESSC_VARS= LEGAL_PACKAGE=yes \ NO_PACKAGE="uses www/npm to fetch files at build time (option CSS_LESSC)" DOCS_GH_TUPLE= writefreely:documentation:v${DISTVERSION}:docs DOCS_VARS= LICENSE+=CC-BY-NC-SA-4.0 \ LICENSE_COMB=multi SQLITE3_VARS= GO_BUILDFLAGS+=-tags=sqlite # download the lessc program with npm for rolling the writefreely-css distfile ${WRKDIR}/npm/bin/lessc: @${ECHO_MSG} "=> downloading the lessc utility with NPM" ${MKDIR} ${WRKDIR}/npm npm -C ${WRKDIR}/npm -g install less@3.5.3 npm -C ${WRKDIR}/npm -g install less-plugin-clean-css # Packaging node.js applications is a PITA, so supply pre-generated CSS files as # a custom distfile using lessc, a node.js application. do-build-CSS_LESSC-on: ${WRKDIR}/npm/bin/lessc @${ECHO_MSG} "=> generating CSS files with lessc" ${RM} -r ${WRKDIR}/css ${MKDIR} ${WRKDIR}/css cd ${WRKSRC}/less && ${WRKDIR}/npm/bin/lessc app.less --clean-css="--s1 --advanced" ${WRKDIR}/css/write.css cd ${WRKSRC}/less && ${WRKDIR}/npm/bin/lessc fonts.less --clean-css="--s1 --advanced" ${WRKDIR}/css/fonts.css cd ${WRKSRC}/less && ${WRKDIR}/npm/bin/lessc icons.less --clean-css="--s1 --advanced" ${WRKDIR}/css/icons.css cd ${WRKSRC}/less && ${WRKDIR}/npm/bin/lessc prose.less --clean-css="--s1 --advanced" ${WRKDIR}/css/prose.css ${TAR} -z -c -f ${WRKDIR}/writefreely-css-${DISTVERSION}.tar.gz -C ${WRKDIR} css do-install-DOCS-on: cd ${WRKSRC_docs} && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} '! -depth 1' post-install: ${MKDIR} ${STAGEDIR}${WWWDIR}/keys ${INSTALL_DATA} ${WRKDIR}/config.ini.sample ${STAGEDIR}${WWWDIR} cd ${WRKSRC} && ${COPYTREE_SHARE} pages ${STAGEDIR}${WWWDIR} cd ${WRKSRC} && ${COPYTREE_SHARE} static ${STAGEDIR}${WWWDIR} ${INSTALL_DATA} ${WRKDIR}/css/*.css ${STAGEDIR}${WWWDIR}/static/css/ cd ${WRKSRC} && ${COPYTREE_SHARE} templates ${STAGEDIR}${WWWDIR} .include diff --git a/www/writefreely/distinfo b/www/writefreely/distinfo index 75abb2c1b950..d4456f595f7d 100644 --- a/www/writefreely/distinfo +++ b/www/writefreely/distinfo @@ -1,9 +1,9 @@ -TIMESTAMP = 1707002412 -SHA256 (go/www_writefreely/writefreely-v0.15.0/writefreely-css-0.15.0.tar.gz) = 5e6df87e57a4c2024bc97d89279b4a25eac361d9f3e5d532151ad199de7d0051 -SIZE (go/www_writefreely/writefreely-v0.15.0/writefreely-css-0.15.0.tar.gz) = 12888 -SHA256 (go/www_writefreely/writefreely-v0.15.0/v0.15.0.mod) = 22267f44e88eb1a39a752b8dfde6c221b44a9b15a75d7f5ddf4c5221e5b9d91e -SIZE (go/www_writefreely/writefreely-v0.15.0/v0.15.0.mod) = 4202 -SHA256 (go/www_writefreely/writefreely-v0.15.0/v0.15.0.zip) = 55e19a3816e7ae9fb3a845ad514c24b937e67242f05d456d726256b5cd41a9c9 -SIZE (go/www_writefreely/writefreely-v0.15.0/v0.15.0.zip) = 3711534 -SHA256 (go/www_writefreely/writefreely-v0.15.0/writefreely-documentation-v0.15.0_GH0.tar.gz) = e8bca338250e855fda95c7ef0169a24e03877dffd6d4c910b2f47a886cc79ef3 -SIZE (go/www_writefreely/writefreely-v0.15.0/writefreely-documentation-v0.15.0_GH0.tar.gz) = 25699 +TIMESTAMP = 1728158522 +SHA256 (go/www_writefreely/writefreely-v0.15.1/writefreely-css-0.15.1.tar.gz) = a0f767c5335edc3ea3f3a6f193110472094e23a829d141e6c8119ebbc6e908e3 +SIZE (go/www_writefreely/writefreely-v0.15.1/writefreely-css-0.15.1.tar.gz) = 13213 +SHA256 (go/www_writefreely/writefreely-v0.15.1/v0.15.1.mod) = 60779332ef44c9e4866c8f003cbdd7a37214239e018576bb6f5af7a9c1d281a1 +SIZE (go/www_writefreely/writefreely-v0.15.1/v0.15.1.mod) = 4246 +SHA256 (go/www_writefreely/writefreely-v0.15.1/v0.15.1.zip) = 492eab1c79e1d77e1e509fd3db78b0475afd303df32d18d2e9724d44509fd982 +SIZE (go/www_writefreely/writefreely-v0.15.1/v0.15.1.zip) = 3711764 +SHA256 (go/www_writefreely/writefreely-v0.15.1/writefreely-documentation-v0.15.1_GH0.tar.gz) = a019f241484c491e8befc190f7c705773fe1e12dffb52d349bc8983eb0e68d15 +SIZE (go/www_writefreely/writefreely-v0.15.1/writefreely-documentation-v0.15.1_GH0.tar.gz) = 27500