Page MenuHomeFreeBSD

www/gohugo: Update to 0.24.1
ClosedPublic

Authored by ultima on Jul 6 2017, 5:30 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, May 15, 1:16 AM
Unknown Object (File)
Mar 22 2024, 6:22 PM
Unknown Object (File)
Mar 22 2024, 6:22 PM
Unknown Object (File)
Feb 22 2024, 5:13 AM
Unknown Object (File)
Jan 17 2024, 11:20 PM
Unknown Object (File)
Jan 15 2024, 9:20 PM
Unknown Object (File)
Jan 1 2024, 5:16 PM
Unknown Object (File)
Dec 28 2023, 11:54 AM
Subscribers

Details

Summary
  • Updated to 0.24.1
  • Added USES= go

    0.24 Changelog:
    • Archetype files now need to be complete, including title and date.
    • The -f (format) flag in hugo new is removed: Now use the archetype files as is.
    • Support extension-less media types. The motivation behind this change is to support Netlify's _redirects files, so we can generate server-side redirects for the Hugo docs site. See this commit to see how we configured that.
    • Add disableAliases
    • Support non-md files as archetype files
    • Identify extension-less text types as text
    • Add .Site to the archetype templates
    • Use archetype template as-is as a Go template
    • Update links to new discuss URL
    • Fix error handling for JSON front matter
    • Fix handling of quoted brackets in JSON front matter 0.24.1 Changelog:
    • Fix archetype regression when no archetype file
    • Preserve shortcodes in archetype templates
    • Fix handling of timezones with positive UTC offset (e.g., +0800) in TOML
    • Create default archetype on new site

PR\: 220495
Sumitted by\: <ben.lavery@hashbang0.com> (maintainer)
Reviewed by\: lifanov (mentor), matthew (mentor)
Approved by\: lifanov (mentor), matthew (mentor)
Differential Revision\: https://reviews.freebsd.org/DXXXXX

Test Plan

portlint:
looks fine.

poudriere:
103i386
103amd64
110i386
110amd64
12i386
12amd64

Diff Detail

Repository
rP FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

lifanov requested changes to this revision.Jul 6 2017, 3:24 PM

Convert this and possibly other stuff to USES=go:

do-build:
        @cd ${WRKSRC}/src/github.com/${GH_ACCOUNT_DEFAULT}/${PORTNAME} && ${SETENV} GOPATH=${WRKSRC} go build -o bin/${PORTNAME}
This revision now requires changes to proceed.Jul 6 2017, 3:24 PM

Convert this and possibly other stuff to USES=go:

do-build:
        @cd ${WRKSRC}/src/github.com/${GH_ACCOUNT_DEFAULT}/${PORTNAME} && ${SETENV} GOPATH=${WRKSRC} go build -o bin/${PORTNAME}

This does not look possible with the current go.mk. The gohugo port requires different GOPATH and it is not modifiable. The build command is also wrong and after spending a bit of time It is probably best to leave it as is. The same gos for do-install. While I was digging into this, I did find some minor changes however.

ultima edited edge metadata.
  • Sorted options section
  • Modified do-build to be more inline with the go Uses

Also added a var for the manpages

www/gohugo/Makefile
72 ↗(On Diff #30502)

OK, GH_TUPLE sucks... This is fine to go in as-is.

This revision is now accepted and ready to land.Jul 7 2017, 12:46 AM

OK, GH_TUPLE sucks... This is fine to go in as-is.

Yeah, heh.

btw, do you know if there is a go porting standards wiki? is PKGNAMEPREFIX= go standard for all go ports? I did a search but couldn't find a wiki, if you know one it would be helpful thanks.

This revision was automatically updated to reflect the committed changes.