Bug 208066

Summary: [NEW PORT] sysutils/py-scriptine: Write easy shell scripts with python
Product: Ports & Packages Reporter: Danilo G. Baio <dbaio>
Component: Individual Port(s)Assignee: Martin Wilke <miwi>
Status: Closed FIXED    
Severity: Affects Only Me CC: miwi, python
Priority: --- Keywords: feature, patch
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
py-scriptine.shar
none
py-scriptine.shar python2
none
py-scriptine-v02.shar
koobs: maintainer-approval+
py-scriptine-v03.shar dbaio: maintainer-approval+

Comment 1 Danilo G. Baio freebsd_committer freebsd_triage 2016-08-27 13:34:02 UTC
Created attachment 174120 [details]
py-scriptine.shar python2

Now with USES=python:2

portlint: OK (looks fine.)
testport: 
	poudriere: i386,  10.3 (OK)
	poudriere: amd64, 10.3 (OK)
	poudriere: i386,  9.3  (OK)
	poudriere: amd64, 9.3  (OK)
	poudriere: i386,  12   (OK)
	poudriere: amd64, 12   (OK)
Comment 2 Kubilay Kocak freebsd_committer freebsd_triage 2016-08-27 14:37:53 UTC
(In reply to Danilo G. Baio (dbaio) from comment #1)

python:2 should only be used if the software explicitly depends on the lang/python2 port (and python2 symlink) and can't be fixed with shebangfix (unlikely)

Looking upstream [1], it doesn't yet support Python 3, so USES=python should be set to -2.7.

https://github.com/olt/scriptine/issues/2
Comment 3 Danilo G. Baio freebsd_committer freebsd_triage 2016-08-27 14:53:34 UTC
Created attachment 174126 [details]
py-scriptine-v02.shar

Thanks @koobs, my mistake.

- Use any Python up to 2.7
Comment 4 Kubilay Kocak freebsd_committer freebsd_triage 2016-08-27 15:12:44 UTC
Comment on attachment 174126 [details]
py-scriptine-v02.shar

You may want to consider adding the following (from upstream) to pkg-descr to flesh it out:

The primary goal of scriptine is to make it easy to write shell scripts with python.

Features:

 * Easy command creation. Each command is just a function.
 * Automatic option parsing
 * Automatic help text (--help)
 * Log handling (with -v, --verbose and -q, --quiet handling)
 * Testing scripts in dry-mode.
 * Easy execution of other shell scripts.
 * Convenient working with files and directories.
Comment 5 Danilo G. Baio freebsd_committer freebsd_triage 2016-08-27 15:38:38 UTC
Created attachment 174127 [details]
py-scriptine-v03.shar

Much better now, thanks again.
Comment 6 commit-hook freebsd_committer freebsd_triage 2017-05-06 15:10:12 UTC
A commit references this bug:

Author: miwi
Date: Sat May  6 15:09:23 UTC 2017
New revision: 440268
URL: https://svnweb.freebsd.org/changeset/ports/440268

Log:
  The primary goal of scriptine is to make it easy to write shell scripts with
  python.

  Features:

   * Easy command creation. Each command is just a function.
   * Automatic option parsing
   * Automatic help text (--help)
   * Log handling (with -v, --verbose and -q, --quiet handling)
   * Testing scripts in dry-mode.
   * Easy execution of other shell scripts.
   * Convenient working with files and directories.

  WWW: https://pypi.python.org/pypi/scriptine

  PR:		208066
  Submitted by:	dbaio@bsd.com.br

Changes:
  head/sysutils/Makefile
  head/sysutils/py-scriptine/
  head/sysutils/py-scriptine/Makefile
  head/sysutils/py-scriptine/distinfo
  head/sysutils/py-scriptine/pkg-descr