Add shflags 1.0.3, command-line flags module for Unix shell scripts.

Approved by:	lwhsu/rafan (mentors, implicit)
This commit is contained in:
Yi-Jheng Lin 2009-12-17 14:21:05 +00:00
parent e2ae93b2ae
commit 930f5cddba
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=246050
4 changed files with 39 additions and 0 deletions

View file

@ -2880,6 +2880,7 @@
SUBDIR += sh-rtems-gcc
SUBDIR += sh-rtems-gdb
SUBDIR += shapelib
SUBDIR += shflags
SUBDIR += shmap
SUBDIR += showgrammar
SUBDIR += shtool

23
devel/shflags/Makefile Normal file
View file

@ -0,0 +1,23 @@
# New ports collection makefile for: shflags
# Date created: 2009-12-17
# Whom: Yi-Jheng Lin <yzlin@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= shflags
PORTVERSION= 1.0.3
CATEGORIES= devel
MASTER_SITES= GOOGLE_CODE
EXTRACT_SUFX= .tgz
MAINTAINER= yzlin@FreeBSD.org
COMMENT= Command-line flags module for Unix shell scripts
NO_BUILD= yes
PLIST_FILES= lib/shflags
do-install:
${INSTALL_DATA} ${WRKSRC}/src/shflags ${PREFIX}/lib
.include <bsd.port.mk>

3
devel/shflags/distinfo Normal file
View file

@ -0,0 +1,3 @@
MD5 (shflags-1.0.3.tgz) = b4d7133696ec05b71b27d8df5e278f0f
SHA256 (shflags-1.0.3.tgz) = 956a14771230760e24fa6ad5692bf858d1c9ee2d314320091fd045181cec8a22
SIZE (shflags-1.0.3.tgz) = 43549

12
devel/shflags/pkg-descr Normal file
View file

@ -0,0 +1,12 @@
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.
WWW: http://code.google.com/p/shflags/