diff options
author | adam <adam@pkgsrc.org> | 2013-04-12 19:59:38 +0000 |
---|---|---|
committer | adam <adam@pkgsrc.org> | 2013-04-12 19:59:38 +0000 |
commit | 69a132102c22c4a588917e2e3e3fd63be23ce0cf (patch) | |
tree | 1471df268674cbdc5b5d0a81cd3e378ef03f71fe /misc | |
parent | c59798c38ff176df70317671c3ecb1342b10f222 (diff) | |
download | pkgsrc-69a132102c22c4a588917e2e3e3fd63be23ce0cf.tar.gz |
Added msgfmt to USE_TOOLS; added a patch to avoid getopt_long_only() on NetBSD
Diffstat (limited to 'misc')
-rw-r--r-- | misc/getopt/Makefile | 4 | ||||
-rw-r--r-- | misc/getopt/distinfo | 3 | ||||
-rw-r--r-- | misc/getopt/patches/patch-getopt.c | 16 |
3 files changed, 20 insertions, 3 deletions
diff --git a/misc/getopt/Makefile b/misc/getopt/Makefile index d9df5f58636..efc912aee22 100644 --- a/misc/getopt/Makefile +++ b/misc/getopt/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.14 2013/04/11 11:45:44 adam Exp $ +# $NetBSD: Makefile,v 1.15 2013/04/12 19:59:38 adam Exp $ DISTNAME= getopt-1.1.5 CATEGORIES= misc @@ -11,7 +11,7 @@ LICENSE= gnu-gpl-v2 PKG_INSTALLATION_TYPES= overwrite pkgviews -USE_TOOLS+= gmake +USE_TOOLS+= gmake msgfmt INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 diff --git a/misc/getopt/distinfo b/misc/getopt/distinfo index ac70d65d31b..d48ed05f0c4 100644 --- a/misc/getopt/distinfo +++ b/misc/getopt/distinfo @@ -1,7 +1,8 @@ -$NetBSD: distinfo,v 1.4 2013/04/11 11:45:44 adam Exp $ +$NetBSD: distinfo,v 1.5 2013/04/12 19:59:38 adam Exp $ SHA1 (getopt-1.1.5.tar.gz) = 9090eb46ac92f2fd2749ca4121e81aaad40f325d RMD160 (getopt-1.1.5.tar.gz) = 5cdef902ada45ba5e8a66a1357be8189b0cc634f Size (getopt-1.1.5.tar.gz) = 51794 bytes SHA1 (patch-aa) = 5967a6ec48a7a69078fc1e0fca26645fd9870f77 SHA1 (patch-ab) = 9e54cdf7a96578334cce2e27201e0bb42800749e +SHA1 (patch-getopt.c) = cd1cb9e7975717618bf80ede7278ab591298d5ef diff --git a/misc/getopt/patches/patch-getopt.c b/misc/getopt/patches/patch-getopt.c new file mode 100644 index 00000000000..b743093bf5f --- /dev/null +++ b/misc/getopt/patches/patch-getopt.c @@ -0,0 +1,16 @@ +$NetBSD: patch-getopt.c,v 1.1 2013/04/12 20:00:10 adam Exp $ + +--- getopt.c.orig 2013-04-12 15:23:09.000000000 +0000 ++++ getopt.c +@@ -399,9 +399,11 @@ int main(int argc, char *argv[]) + while ((opt = + getopt_long(argc, argv, shortopts, longopts, NULL)) != EOF) + switch (opt) { ++#ifndef __NetBSD__ + case 'a': + getopt_long_fp = getopt_long_only; + break; ++#endif + case 'h': + print_help(); + case 'o': |