freebsd-ports/textproc/minify/Makefile
Sunpoet Po-Chuan Hsieh 3bd214e5a2 Add minify 2.3.8
Minify is a minifier package written in Go. It provides HTML5, CSS3, JS, JSON,
SVG and XML minifiers and an interface to implement any other minifier.
Minification is the process of removing bytes from a file (such as whitespace)
without changing its output and therefore shrinking its size and speeding up
transmission over the internet and possibly parsing. The implemented minifiers
are designed for high performance.

The core functionality associates mimetypes with minification functions,
allowing embedded resources (like CSS or JS within HTML files) to be minified as
well. Users can add new implementations that are triggered based on a mimetype
(or pattern), or redirect to an external command (like ClosureCompiler,
UglifyCSS, ...).

WWW: https://github.com/tdewolff/minify
2019-01-22 23:59:22 +00:00

35 lines
981 B
Makefile

# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
# $FreeBSD$
PORTNAME= minify
PORTVERSION= 2.3.8
DISTVERSIONPREFIX= v
CATEGORIES= textproc www
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Go minifiers for web formats
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE.md
USES= go
GO_PKGNAME= github.com/${GH_ACCOUNT}/${GH_PROJECT}
GO_TARGET= ${GO_PKGNAME}/cmd/${GH_PROJECT}
PLIST_FILES= bin/minify
GH_ACCOUNT= tdewolff
GH_TUPLE= dustin:go-humanize:v1.0.0:dustin_go_humanize/../src/github.com/dustin/go-humanize \
fsnotify:fsnotify:v1.4.7:fsnotify_fsnotify/../src/github.com/fsnotify/fsnotify \
golang:sys:770c602:golang_sys/../src/golang.org/x/sys \
matryer:try:v1:matryer_try/../src/github.com/matryer/try \
spf13:pflag:v1.0.3:spf13_pflag/../src/github.com/spf13/pflag \
tdewolff:parse:v2.3.5:tdewolff_parse/../src/github.com/tdewolff/parse
USE_GITHUB= yes
do-install:
${INSTALL_PROGRAM} ${GO_WRKDIR_BIN}/minify ${STAGEDIR}${PREFIX}/bin/minify
.include <bsd.port.mk>