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)
Thu, Oct 24, 1:45 PM
Unknown Object (File)
Mon, Oct 14, 6:10 PM
Unknown Object (File)
Wed, Oct 2, 5:16 AM
Unknown Object (File)
Sep 19 2024, 3:48 PM
Unknown Object (File)
Sep 8 2024, 8:44 PM
Unknown Object (File)
Sep 8 2024, 4:59 AM
Unknown Object (File)
Sep 7 2024, 1:38 PM
Unknown Object (File)
Sep 7 2024, 1:01 PM
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
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 10357
Build 10769: arc lint + arc unit

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

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.