Bug 241309

Summary: [NEW PORT] devel/py-pyhcl: HCL configuration parser for Python
Product: Ports & Packages Reporter: Alessandro Sagratini <ale_sagra>
Component: Individual Port(s)Assignee: Kai Knoblich <kai>
Status: Closed FIXED    
Severity: Affects Only Me CC: kai
Priority: --- Keywords: buildisok
Version: Latest   
Hardware: Any   
OS: Any   
URL: https://github.com/virtuald/pyhcl
Attachments:
Description Flags
shar file
none
make describe
none
portlint -A output
none
port test
none
poudriere output none

Description Alessandro Sagratini 2019-10-17 11:58:19 UTC
Created attachment 208381 [details]
shar file

Hello,
I'm proposing to add pyhcl [1] python package to the ports tree, if you feel it could be a good addition.

I'm attaching both shar file and port testing to this bug

[1] https://github.com/virtuald/pyhcl

Let me know if there's anything else you need form me.
Thank you,
Alessandro
Comment 1 Alessandro Sagratini 2019-10-17 11:58:58 UTC
Created attachment 208382 [details]
make describe
Comment 2 Alessandro Sagratini 2019-10-17 11:59:17 UTC
Created attachment 208383 [details]
portlint -A output
Comment 3 Alessandro Sagratini 2019-10-17 11:59:33 UTC
Created attachment 208384 [details]
port test
Comment 4 Alessandro Sagratini 2019-10-17 11:59:48 UTC
Created attachment 208385 [details]
poudriere output
Comment 5 Automation User 2019-10-17 18:57:49 UTC
Build info is available at https://gitlab.com/swills/freebsd-ports/pipelines/89587260
Comment 6 commit-hook freebsd_committer 2019-10-27 19:10:12 UTC
A commit references this bug:

Author: kai
Date: Sun Oct 27 19:10:06 UTC 2019
New revision: 515813
URL: https://svnweb.freebsd.org/changeset/ports/515813

Log:
  [NEW PORT] devel/py-pyhcl

  Implements a parser for HCL (HashiCorp Configuration Language) in Python.
  This implementation aims to be compatible with the original golang version of
  the parser.

  The grammar and many of the tests/fixtures were copied/ported from the golang
  parser into pyhcl. All releases are tested with a variety of Python versions
  from Python 2.7 onward.

  WWW: https://github.com/virtuald/pyhcl

  PR:		241309
  Submitted by:	Alessando Sagratini <ale_sagra@hotmail.com>

Changes:
  head/devel/Makefile
  head/devel/py-pyhcl/
  head/devel/py-pyhcl/Makefile
  head/devel/py-pyhcl/distinfo
  head/devel/py-pyhcl/pkg-descr
Comment 7 Kai Knoblich freebsd_committer 2019-10-27 19:24:06 UTC
Committed, thank you for another contribution to the FreeBSD ports tree!

I did only some minor changes:

- Added "concurrent" keyword to USE_PYTHON to make the port concurrent safe. This is required because a non Python-version specific script (= ${PREFIX}/bin/hcltool) is installed outside the Python environment.

- Changed LICENSE_FILE_MPL20 to LICENSE_FILE as the package comes only with a single license.

- Added a "do-test" target to make future QA easier.