Advertisement
Guest User

gohugo-0.56.3

a guest
Aug 5th, 2019
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 8.89 KB | None | 0 0
  1. # $FreeBSD$
  2.  
  3. PORTNAME=   hugo
  4. DISTVERSIONPREFIX=  v
  5. DISTVERSION=    0.56.3
  6. CATEGORIES= www
  7. PKGNAMEPREFIX=  go
  8. DIST_SUBDIR=    ${PKGNAMEPREFIX}${PORTNAME}
  9.  
  10. MAINTAINER= ben.lavery@hashbang0.com
  11. COMMENT=    Fast and flexible static site generator
  12.  
  13. LICENSE=    APACHE20
  14. LICENSE_FILE=   ${WRKSRC}/LICENSE
  15.  
  16. USES=       go
  17. USE_GITHUB= yes
  18. GH_ACCOUNT= gohugoio
  19. GH_SUBDIR=  src/github.com/${GH_ACCOUNT_DEFAULT}/${PORTNAME}
  20. GH_TUPLE=   \
  21.         Azure:azure-pipeline-go:v0.1.9:azure_azure_pipeline_go/vendor/github.com/Azure/azure-pipeline-go \
  22.         Azure:azure-storage-blob-go:v0.6.0:azure_azure_storage_blob_go/vendor/github.com/Azure/azure-storage-blob-go \
  23.         BurntSushi:locker:a6e239ea1c69:burntsushi_locker/vendor/github.com/BurntSushi/locker \
  24.         BurntSushi:toml:v0.3.1:burntsushi_toml/vendor/github.com/BurntSushi/toml \
  25.         PuerkitoBio:purell:v1.1.0:puerkitobio_purell/vendor/github.com/PuerkitoBio/purell \
  26.         PuerkitoBio:urlesc:de5bf2ad4578:puerkitobio_urlesc/vendor/github.com/PuerkitoBio/urlesc \
  27.         alecthomas:assert:405dbfeb8e38:alecthomas_assert/vendor/github.com/alecthomas/assert \
  28.         alecthomas:chroma:v0.6.4:alecthomas_chroma/vendor/github.com/alecthomas/chroma \
  29.         alecthomas:colour:60882d9e2721:alecthomas_colour/vendor/github.com/alecthomas/colour \
  30.         alecthomas:repr:d37bc2a10ba1:alecthomas_repr/vendor/github.com/alecthomas/repr \
  31.         aws:aws-sdk-go:v1.19.40:aws_aws_sdk_go/vendor/github.com/aws/aws-sdk-go \
  32.         bep:debounce:v1.2.0:bep_debounce/vendor/github.com/bep/debounce \
  33.         bep:gitmap:v1.1.0:bep_gitmap/vendor/github.com/bep/gitmap \
  34.         bep:go-tocss:v0.6.0:bep_go_tocss/vendor/github.com/bep/go-tocss \
  35.         census-instrumentation:opencensus-go:v0.22.0:census_instrumentation_opencensus_go/vendor/go.opencensus.io \
  36.         cpuguy83:go-md2man:v1.0.10:cpuguy83_go_md2man/vendor/github.com/cpuguy83/go-md2man \
  37.         danwakefield:fnmatch:cbb64ac3d964:danwakefield_fnmatch/vendor/github.com/danwakefield/fnmatch \
  38.         davecgh:go-spew:v1.1.1:davecgh_go_spew/vendor/github.com/davecgh/go-spew \
  39.         disintegration:imaging:v1.6.0:disintegration_imaging/vendor/github.com/disintegration/imaging \
  40.         dlclark:regexp2:v1.1.6:dlclark_regexp2/vendor/github.com/dlclark/regexp2 \
  41.         dustin:go-humanize:v1.0.0:dustin_go_humanize/vendor/github.com/dustin/go-humanize \
  42.         eknkc:amber:cdade1c07385:eknkc_amber/vendor/github.com/eknkc/amber \
  43.         fortytw2:leaktest:v1.3.0:fortytw2_leaktest/vendor/github.com/fortytw2/leaktest \
  44.         fsnotify:fsnotify:v1.4.7:fsnotify_fsnotify/vendor/github.com/fsnotify/fsnotify \
  45.         go-yaml:yaml:v2.2.2:go_yaml_yaml/vendor/gopkg.in/yaml.v2 \
  46.         gobwas:glob:v0.2.3:gobwas_glob/vendor/github.com/gobwas/glob \
  47.         gohugoio:testmodBuilder:c56af20f2e95:gohugoio_testmodbuilder/vendor/github.com/gohugoio/testmodBuilder/mods \
  48.         golang:appengine:v1.6.0:golang_appengine/vendor/google.golang.org/appengine \
  49.         golang:image:f03afa92d3ff:golang_image/vendor/golang.org/x/image \
  50.         golang:net:1492cefac77f:golang_net/vendor/golang.org/x/net \
  51.         golang:oauth2:aaccbc9213b0:golang_oauth2/vendor/golang.org/x/oauth2 \
  52.         golang:protobuf:v1.3.1:golang_protobuf/vendor/github.com/golang/protobuf \
  53.         golang:sync:112230192c58:golang_sync/vendor/golang.org/x/sync \
  54.         golang:sys:fae7ac547cb7:golang_sys/vendor/golang.org/x/sys \
  55.         golang:text:v0.3.2:golang_text/vendor/golang.org/x/text \
  56.         golang:xerrors:a985d3407aa7:golang_xerrors/vendor/golang.org/x/xerrors \
  57.         google:go-cloud:v0.15.0:google_go_cloud/vendor/gocloud.dev \
  58.         google:go-cmp:v0.3.0:google_go_cmp/vendor/github.com/google/go-cmp \
  59.         google:go-genproto:c2c4e71fbf69:google_go_genproto/vendor/google.golang.org/genproto \
  60.         google:uuid:v1.1.1:google_uuid/vendor/github.com/google/uuid \
  61.         google:wire:v0.2.2:google_wire/vendor/github.com/google/wire \
  62.         googleapis:gax-go:v2.0.4:googleapis_gax_go/vendor/github.com/googleapis/gax-go \
  63.         googleapis:google-api-go-client:v0.5.0:googleapis_google_api_go_client/vendor/google.golang.org/api \
  64.         googleapis:google-cloud-go:v0.39.0:googleapis_google_cloud_go/vendor/cloud.google.com/go \
  65.         gorilla:websocket:v1.4.0:gorilla_websocket/vendor/github.com/gorilla/websocket \
  66.         grpc:grpc-go:v1.21.0:grpc_grpc_go/vendor/google.golang.org/grpc \
  67.         hashicorp:go-immutable-radix:v1.0.0:hashicorp_go_immutable_radix/vendor/github.com/hashicorp/go-immutable-radix \
  68.         hashicorp:golang-lru:v0.5.1:hashicorp_golang_lru/vendor/github.com/hashicorp/golang-lru \
  69.         hashicorp:hcl:v1.0.0:hashicorp_hcl/vendor/github.com/hashicorp/hcl \
  70.         inconshreveable:mousetrap:v1.0.0:inconshreveable_mousetrap/vendor/github.com/inconshreveable/mousetrap \
  71.         jdkato:prose:v1.1.0:jdkato_prose/vendor/github.com/jdkato/prose \
  72.         jmespath:go-jmespath:c2b33e8439af:jmespath_go_jmespath/vendor/github.com/jmespath/go-jmespath \
  73.         kyokomi:emoji:v1.5.1:kyokomi_emoji/vendor/github.com/kyokomi/emoji \
  74.         magefile:mage:v1.4.0:magefile_mage/vendor/github.com/magefile/mage \
  75.         magiconair:properties:v1.8.1:magiconair_properties/vendor/github.com/magiconair/properties \
  76.         markbates:inflect:a12c3aec81a6:markbates_inflect/vendor/github.com/markbates/inflect \
  77.         mattn:go-isatty:v0.0.8:mattn_go_isatty/vendor/github.com/mattn/go-isatty \
  78.         mattn:go-runewidth:v0.0.4:mattn_go_runewidth/vendor/github.com/mattn/go-runewidth \
  79.         miekg:mmark:v1.3.6:miekg_mmark/vendor/github.com/miekg/mmark \
  80.         mitchellh:hashstructure:v1.0.0:mitchellh_hashstructure/vendor/github.com/mitchellh/hashstructure \
  81.         mitchellh:mapstructure:v1.1.2:mitchellh_mapstructure/vendor/github.com/mitchellh/mapstructure \
  82.         muesli:smartcrop:f6ebaa786a12:muesli_smartcrop/vendor/github.com/muesli/smartcrop \
  83.         nicksnyder:go-i18n:v1.10.0:nicksnyder_go_i18n/vendor/github.com/nicksnyder/go-i18n \
  84.         niklasfasching:go-org:v0.1.2:niklasfasching_go_org/vendor/github.com/niklasfasching/go-org \
  85.         olekukonko:tablewriter:d4647c9c7a84:olekukonko_tablewriter/vendor/github.com/olekukonko/tablewriter \
  86.         pelletier:go-toml:v1.4.0:pelletier_go_toml/vendor/github.com/pelletier/go-toml \
  87.         pkg:errors:v0.8.1:pkg_errors/vendor/github.com/pkg/errors \
  88.         pmezard:go-difflib:v1.0.0:pmezard_go_difflib/vendor/github.com/pmezard/go-difflib \
  89.         rogpeppe:go-internal:v1.3.0:rogpeppe_go_internal/vendor/github.com/rogpeppe/go-internal \
  90.         russross:blackfriday:a477dd164691:russross_blackfriday/vendor/github.com/russross/blackfriday \
  91.         sanity-io:litter:v1.1.0:sanity_io_litter/vendor/github.com/sanity-io/litter \
  92.         sergi:go-diff:v1.0.0:sergi_go_diff/vendor/github.com/sergi/go-diff \
  93.         spf13:afero:v1.2.2:spf13_afero/vendor/github.com/spf13/afero \
  94.         spf13:cast:v1.3.0:spf13_cast/vendor/github.com/spf13/cast \
  95.         spf13:cobra:67fc4837d267:spf13_cobra/vendor/github.com/spf13/cobra \
  96.         spf13:fsync:v0.9.0:spf13_fsync/vendor/github.com/spf13/fsync \
  97.         spf13:jwalterweatherman:v1.1.0:spf13_jwalterweatherman/vendor/github.com/spf13/jwalterweatherman \
  98.         spf13:pflag:v1.0.3:spf13_pflag/vendor/github.com/spf13/pflag \
  99.         spf13:viper:v1.4.0:spf13_viper/vendor/github.com/spf13/viper \
  100.         stretchr:testify:v1.3.0:stretchr_testify/vendor/github.com/stretchr/testify \
  101.         tdewolff:minify:v2.3.7:tdewolff_minify/vendor/github.com/tdewolff/minify/v2 \
  102.         tdewolff:parse:v2.3.5:tdewolff_parse/vendor/github.com/tdewolff/parse/v2 \
  103.         wellington:go-libsass:c63644206701:wellington_go_libsass/vendor/github.com/wellington/go-libsass \
  104.         yosssi:ace:v0.0.5:yosssi_ace/vendor/github.com/yosssi/ace
  105.  
  106. COMMIT_ID=  f637a1eacec796bf15803c4e34ee978047bb610a
  107. PACKAGE=    github.com/${GH_ACCOUNT_DEFAULT}/${PORTNAME}
  108.  
  109. OPTIONS_DEFINE=     MANPAGES EXTENDED
  110.  
  111. EXTENDED_DESC=      Enable SCSS/SASS support
  112.  
  113. OPTIONS_DEFAULT=    MANPAGES
  114.  
  115. EXTENDED_VARS=      CGO_ENABLED=1 BUILD_TAGS="-tags extended"
  116. EXTENDED_VARS_OFF=  CGO_ENABLED=0
  117.  
  118. OPTIONS_SUB=        yes
  119.  
  120. GOENV=      GOPATH=${WRKSRC} CGO_CFLAGS="${CGO_CFLAGS}" \
  121.         CGO_LDFLAGS="${CGO_LDFLAGS}" GOBIN=""
  122. CGO_ENABLED=    0
  123.  
  124.  
  125. PORTMANS=   hugo-config.1 hugo-convert-toJSON.1 hugo-convert-toTOML.1 \
  126.         hugo-convert-toYAML.1 hugo-convert.1 hugo-env.1 \
  127.         hugo-gen-autocomplete.1 hugo-gen-chromastyles.1 \
  128.         hugo-gen-doc.1 hugo-gen-man.1 hugo-gen.1 \
  129.         hugo-import-jekyll.1 hugo-import.1 hugo-list-drafts.1 \
  130.         hugo-list-expired.1 hugo-list-future.1 hugo-list.1 \
  131.         hugo-new-site.1 hugo-new-theme.1 hugo-new.1 hugo-server.1 \
  132.         hugo-version.1 hugo.1
  133.  
  134. do-build:
  135.     (if [ -z "$${SOURCE_DATE_EPOCH}" ] ; \
  136.       then SOURCE_DATE_EPOCH=`grep TIMESTAMP ${DISTINFO_FILE} \
  137.         | ${SED} -e 's/[^0-9]//g'`; \
  138.     fi ; \
  139.     cd ${WRKSRC}/src/github.com/${GH_ACCOUNT_DEFAULT}/${PORTNAME}; \
  140.         ${SETENV} ${MAKE_ENV} CGO_ENABLED=${CGO_ENABLED} ${GOENV} \
  141.         ${GO_CMD} build \
  142.         -ldflags "\
  143.         -X ${PACKAGE}/common/hugo.buildDate=$${SOURCE_DATE_EPOCH} \
  144.         -X ${PACKAGE}/common/hugo.commitHash=${COMMIT_ID}" \
  145.         ${BUILD_TAGS} \
  146.         -o bin/${PORTNAME})
  147.  
  148.  
  149. do-build-MANPAGES-on:
  150.     @cd ${WRKSRC}/src/github.com/${GH_ACCOUNT_DEFAULT}/${PORTNAME} && ./bin/${PORTNAME} gen man --dir man/man1/
  151.  
  152. do-install:
  153.     ${INSTALL_PROGRAM} ${WRKSRC}/bin/${PORTNAME} ${STAGEDIR}/${PREFIX}/bin/${PORTNAME}
  154.  
  155. do-install-MANPAGES-on:
  156. .for i in ${PORTMANS}
  157.     ${INSTALL_MAN} ${WRKSRC}/man/man1/$i ${STAGEDIR}/${PREFIX}/man/man1
  158. .endfor
  159.  
  160. .include <bsd.port.mk>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement