> Sent: Friday, May 22, 2020 at 10:04 AM > From: "Paco Esteban" <p...@e1e0.net> > To: "Rafael Sadowski" <raf...@sizeofvoid.org> > Cc: "Todd C. Miller" <mill...@openbsd.org>, ports@openbsd.org > Subject: Re: maintainer update: www/hugo > > On Fri, 22 May 2020, Rafael Sadowski wrote: > > > On Thu May 21, 2020 at 02:52:24PM -0600, Todd C. Miller wrote: > > > On Thu, 21 May 2020 21:03:37 +0200, Paco Esteban wrote: > > > > > > > For now it does not work for me with the patch you sent. I get: > > > > > > > > # > > > > github.com/gohugoio/hugo/vendor/github.com/bep/golibsass/internal/libsass > > > > c99func.c:2:10: fatal error: '../../libsass_src/src/c99func.c' file not > > > > found > > > > > > > > I'll take a deeper look tomorrow probably. > > > > That could be useful for SASS themes users. FLAVOR note is missing in > > pkg/DESCR. The diff below builds fine. > > It builds now and works with one of the SASS themes I've found. > I added the flavor description, diff at the end. > > Thank you Todd and Rafael. > > Comments ? ok ? > > Index: Makefile > =================================================================== > RCS file: /home/cvs/ports/www/hugo/Makefile,v > retrieving revision 1.20 > diff -u -p -r1.20 Makefile > --- Makefile 21 May 2020 16:37:44 -0000 1.20 > +++ Makefile 22 May 2020 07:51:18 -0000 > @@ -26,6 +26,16 @@ ALL_TARGET = github.com/gohugoio/hugo > > SEPARATE_BUILD = Yes > > +FLAVORS = extended > +FLAVOR ?= > + > +.if ${FLAVOR:Mextended} > +MODGO_FLAGS += --tags extended > +LIB_DEPENDS += www/libsass > +WANTLIB += sass > +MAKE_ENV += CGO_CPPFLAGS='-I${LOCALBASE}/include -DUSE_LIBSASS_SRC' > CGO_LDFLAGS='-L${LOCALBASE}/lib -lsass' > +.endif > + > post-build: > cd ${MODGO_WORKSPACE}/bin/ && ./hugo gen man > > Index: pkg/DESCR > =================================================================== > RCS file: /home/cvs/ports/www/hugo/pkg/DESCR,v > retrieving revision 1.1.1.1 > diff -u -p -r1.1.1.1 DESCR > --- pkg/DESCR 11 Jun 2018 21:17:14 -0000 1.1.1.1 > +++ pkg/DESCR 22 May 2020 07:56:30 -0000 > @@ -4,3 +4,7 @@ Hugo takes a directory with content and > them into a full HTML website. > > Hugo relies on Markdown files with front matter for metadata. > + > +Flavors: > + extended - build hugo extended version with Sass/SCSS > + support amongst others > > -- > Paco Esteban. > 0x5818130B8A6DBC03
Namaste Paco, Would it be possible for us to fetch and build hugo directly from the authoritative Github source, replacing https://e1e0.net/dist/? I ask this because, if I am not wrong, @abieber has recently updated [1] the portgen code with the following message: ... With this a port can be easily generated for Go applications that support Go modules (there will be a go.mod file in the root of the project). ... Namaste Aaron, Thank you for your patience [2]. If I am not wrong, you specifically tested building hugo with the patch while working on it. Unfortunately, I could not determine whether the committed patch can build hugo or not. Dhanyavaad, ab [1] - https://cvsweb.openbsd.org/cgi-bin/cvsweb/ports/infrastructure/bin/portgen?rev=1.2&content-type=text/x-cvsweb-markup [2] - https://marc.info/?t=157583068400003&r=1&w=2 ---------|---------|---------|---------|---------|---------|---------|--