Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 229855

Summary: dev-util/shflags (new ebuild)
Product: Gentoo Linux Reporter: Maciej Blizinski <maciej.blizinski>
Component: New packagesAssignee: Default Assignee for New Packages <maintainer-wanted>
Status: RESOLVED FIXED    
Severity: enhancement Keywords: EBUILD
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
URL: http://code.google.com/p/shflags/
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: shflags-1.0.0.ebuild
shflags-1.0.0.ebuild
shflags-1.0.0.ebuild

Description Maciej Blizinski 2008-06-28 01:30:18 UTC
Shell Flags – command-line flags module for Unix shell scripts



Shell Flags (shFlags) is a library written to greatly simplify the handling of command-line flags in Bourne based Unix shell scripts (bash, dash, ksh, sh, zsh) on many Unix OSes (Linux, Solaris, Mac OS X, etc.).

Most shell scripts use getopt for flags processing, but the different versions of getopt on various OSes make writing portable shell scripts difficult. shflags instead provides an API that doesn't change across shell and OS versions so the script writer can be confident that the script will work.

shFlags is a port of the google-gflags C++/Python library.


Reproducible: Always
Comment 1 Maciej Blizinski 2008-06-28 01:31:59 UTC
Created attachment 158709 [details]
shflags-1.0.0.ebuild
Comment 2 Carsten Lohrke (RETIRED) gentoo-dev 2008-06-28 13:58:36 UTC
You're misusing the doc use flag. It is for extended documentation. The basic  readme/changelog/releasenotes text file are to be installed unconditionally. For hello_world.sh you might use the examples use flag.
Comment 3 Maciej Blizinski 2008-06-28 14:22:08 UTC
Created attachment 158749 [details]
shflags-1.0.0.ebuild

Done.

- docs use flag removed
- examples use flag added
- src_test function added
Comment 4 Maciej Blizinski 2008-07-14 13:06:13 UTC
Created attachment 160327 [details]
shflags-1.0.0.ebuild

Added || die "..." to the test function.