getoptbin stable port information

Package: getoptbin
Version: 1.1.4
Revision: 2
Description: GNU version of getopt(1)
Source: http://software.frodo.looijaard.name/getopt/files/getopt-%v.tar.gz
Source-MD5: 02188ca68da27c4175d6e9f3da732101
BuildDepends: libgettext3-dev, gettext-bin, gettext-tools, fink (>= 0.24.12-1)
Depends: libgettext3-shlibs
PatchFile: %n.patch
PatchFile-MD5: 3e91fd26c2482602f36d4456f96bd5e0
PatchScript: <<
%{default_script}
perl -pi -e 's|^CPPFLAGS=|CPPFLAGS=-I./gnu -I%p/include |g' Makefile
perl -pi -e 's|\@PREFIX\@|%p|' getopt.1
<<
NoSetCPPFlags: true
NoSetLDFlags: true
CompileScript: <<
make prefix=%p WITH_GETTEXT=1 LIBCGETOPT=0 LDFLAGS="-L%p/lib -lintl" localedir=%p/share/locale
<<
InstallScript: <<
make prefix=%p mandir=%p/share/man getoptdir=%p/share/doc/%n install install_doc DESTDIR=%d
<<
License: GPL
DocFiles: README COPYING TODO
Maintainer: None
Homepage: http://software.frodo.looijaard.name/getopt

getoptbin stable port .patch

diff -Nurd -x'*~' getopt-1.1.4.orig/Makefile getopt-1.1.4/Makefile
--- getopt-1.1.4.orig/Makefile 2005-11-07 17:32:46.000000000 -0500
+++ getopt-1.1.4/Makefile 2006-06-07 13:06:58.000000000 -0400
@@ -3,11 +3,11 @@
DESTDIR=
prefix=/usr/local
bindir=$(prefix)/bin
-mandir=$(prefix)/man
+mandir=$(prefix)/share/man
man1dir=$(mandir)/man1
libdir=$(prefix)/lib
sharedir=$(prefix)/share
-getoptdir=$(libdir)/getopt
+getoptdir=$(sharedir)/getoptbin
localedir=$(sharedir)/locale

# Define this to 0 to use the getopt(3) routines in this package.
diff -Nurd -x'*~' getopt-1.1.4.orig/getopt.1 getopt-1.1.4/getopt.1
--- getopt-1.1.4.orig/getopt.1 2005-11-07 17:16:38.000000000 -0500
+++ getopt-1.1.4/getopt.1 2006-06-07 13:03:10.000000000 -0400
@@ -402,10 +402,8 @@
.SH EXAMPLES
Example scripts for (ba)sh and (t)csh are provided with the
.BR getopt (1)
-distribution, and are optionally installed in
-.B /usr/local/lib/getopt
-or
-.BR /usr/lib/getopt .
+distribution, and are installed in
+.B @PREFIX@/share/doc/getoptbin
.SH ENVIRONMENT
.IP POSIXLY_CORRECT
This environment variable is examined by the

getoptbin _unstable_ port information

Package: getoptbin
Version: 1.1.4
Revision: 2
Description: GNU version of getopt(1)
Source: http://software.frodo.looijaard.name/getopt/files/getopt-%v.tar.gz
Source-MD5: 02188ca68da27c4175d6e9f3da732101
BuildDepends: libgettext3-dev, gettext-bin, gettext-tools, fink (>= 0.24.12-1)
Depends: libgettext3-shlibs
PatchFile: %n.patch
PatchFile-MD5: 3e91fd26c2482602f36d4456f96bd5e0
PatchScript: <<
%{default_script}
perl -pi -e 's|^CPPFLAGS=|CPPFLAGS=-I./gnu -I%p/include |g' Makefile
perl -pi -e 's|\@PREFIX\@|%p|' getopt.1
<<
NoSetCPPFlags: true
NoSetLDFlags: true
CompileScript: <<
make prefix=%p WITH_GETTEXT=1 LIBCGETOPT=0 LDFLAGS="-L%p/lib -lintl" localedir=%p/share/locale
<<
InstallScript: <<
make prefix=%p mandir=%p/share/man getoptdir=%p/share/doc/%n install install_doc DESTDIR=%d
<<
License: GPL
DocFiles: README COPYING TODO
Maintainer: None
Homepage: http://software.frodo.looijaard.name/getopt

getoptbin _unstable_ port .patch

diff -Nurd -x'*~' getopt-1.1.4.orig/Makefile getopt-1.1.4/Makefile
--- getopt-1.1.4.orig/Makefile 2005-11-07 17:32:46.000000000 -0500
+++ getopt-1.1.4/Makefile 2006-06-07 13:06:58.000000000 -0400
@@ -3,11 +3,11 @@
DESTDIR=
prefix=/usr/local
bindir=$(prefix)/bin
-mandir=$(prefix)/man
+mandir=$(prefix)/share/man
man1dir=$(mandir)/man1
libdir=$(prefix)/lib
sharedir=$(prefix)/share
-getoptdir=$(libdir)/getopt
+getoptdir=$(sharedir)/getoptbin
localedir=$(sharedir)/locale

# Define this to 0 to use the getopt(3) routines in this package.
diff -Nurd -x'*~' getopt-1.1.4.orig/getopt.1 getopt-1.1.4/getopt.1
--- getopt-1.1.4.orig/getopt.1 2005-11-07 17:16:38.000000000 -0500
+++ getopt-1.1.4/getopt.1 2006-06-07 13:03:10.000000000 -0400
@@ -402,10 +402,8 @@
.SH EXAMPLES
Example scripts for (ba)sh and (t)csh are provided with the
.BR getopt (1)
-distribution, and are optionally installed in
-.B /usr/local/lib/getopt
-or
-.BR /usr/lib/getopt .
+distribution, and are installed in
+.B @PREFIX@/share/doc/getoptbin
.SH ENVIRONMENT
.IP POSIXLY_CORRECT
This environment variable is examined by the