Gentoo Archives: gentoo-commits

From: "Fabian Groffen (grobian)" <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-misc/getopt: getopt-1.1.5.ebuild ChangeLog
Date: Fri, 28 Dec 2012 09:10:40
Message-Id: 20121228091026.777E02171E@flycatcher.gentoo.org
1 grobian 12/12/28 09:10:26
2
3 Modified: ChangeLog
4 Added: getopt-1.1.5.ebuild
5 Log:
6 Version bump, fix for build problem on OpenIndiana
7
8 (Portage version: 2.2.01.21418-prefix/cvs/SunOS i386, signed Manifest commit with key 0x5F75F607C5C74E89)
9
10 Revision Changes Path
11 1.8 app-misc/getopt/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/getopt/ChangeLog?rev=1.8&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/getopt/ChangeLog?rev=1.8&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/getopt/ChangeLog?r1=1.7&r2=1.8
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-misc/getopt/ChangeLog,v
20 retrieving revision 1.7
21 retrieving revision 1.8
22 diff -u -r1.7 -r1.8
23 --- ChangeLog 26 Apr 2012 17:13:54 -0000 1.7
24 +++ ChangeLog 28 Dec 2012 09:10:26 -0000 1.8
25 @@ -1,6 +1,13 @@
26 # ChangeLog for app-misc/getopt
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-misc/getopt/ChangeLog,v 1.7 2012/04/26 17:13:54 aballier Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-misc/getopt/ChangeLog,v 1.8 2012/12/28 09:10:26 grobian Exp $
30 +
31 +*getopt-1.1.5 (28 Dec 2012)
32 +
33 + 28 Dec 2012; Fabian Groffen <grobian@g.o>
34 + +files/getopt-1.1.5-longrename.patch, +files/getopt-1.1.5-setlocale.patch,
35 + +getopt-1.1.5.ebuild:
36 + Version bump, fix for build problem on OpenIndiana
37
38 26 Apr 2012; Alexis Ballier <aballier@g.o> getopt-1.1.4.ebuild:
39 keyword ~amd64-fbsd
40 @@ -29,4 +36,3 @@
41 +metadata.xml, +getopt-1.1.4.ebuild:
42 Add getopt package providing getopt-long for platforms where getopt(1) does
43 not support GNU style long options.
44 -
45
46
47
48 1.1 app-misc/getopt/getopt-1.1.5.ebuild
49
50 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/getopt/getopt-1.1.5.ebuild?rev=1.1&view=markup
51 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/getopt/getopt-1.1.5.ebuild?rev=1.1&content-type=text/plain
52
53 Index: getopt-1.1.5.ebuild
54 ===================================================================
55 # Copyright 1999-2012 Gentoo Foundation
56 # Distributed under the terms of the GNU General Public License v2
57 # $Header: /var/cvsroot/gentoo-x86/app-misc/getopt/getopt-1.1.5.ebuild,v 1.1 2012/12/28 09:10:26 grobian Exp $
58
59 EAPI=3
60
61 inherit toolchain-funcs eutils
62
63 DESCRIPTION="getopt(1) replacement supporting GNU-style long options"
64 HOMEPAGE="http://software.frodo.looijaard.name/getopt/"
65 SRC_URI="http://software.frodo.looijaard.name/getopt/files/${P}.tar.gz"
66
67 LICENSE="GPL-2"
68 SLOT="0"
69 KEYWORDS="~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~x86-interix ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~x64-solaris ~x86-solaris"
70 IUSE="nls"
71
72 RDEPEND="nls? ( virtual/libintl )"
73 DEPEND="${RDEPEND}
74 nls? ( sys-devel/gettext )"
75
76 src_prepare() {
77 epatch "${FILESDIR}"/${P}-setlocale.patch
78 epatch "${FILESDIR}"/${P}-longrename.patch
79
80 # hopefully this is portable enough
81 epatch "${FILESDIR}"/${PN}-1.1.4-irix.patch
82 }
83
84 src_compile() {
85 local nogettext="1"
86 local libcgetopt=1
87
88 use nls && nogettext=0
89 [[ ${CHOST} == *-irix* ]] && libcgetopt=0
90 [[ ${CHOST} == *-interix* ]] && libcgetopt=0
91
92 emake CC="$(tc-getCC)" prefix="${EPREFIX}/usr" \
93 LIBCGETOPT=${libcgetopt} \
94 WITHOUT_GETTEXT=${nogettext} \
95 CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" || die "emake failed"
96 }
97
98 src_install() {
99 use nls && make prefix="${EPREFIX}/usr" DESTDIR="${D}" install_po
100
101 into /usr
102 newbin getopt getopt-long
103
104 # at least on interix, the system getopt is ... broken...
105 # util-linux, which would provide the getopt binary, does not build &
106 # install on interix/prefix, so, this has to provide it.
107 [[ ${CHOST} == *-interix* || ${CHOST} == *-mint* ]] && \
108 dosym getopt-long /usr/bin/getopt
109
110 newman getopt.1 getopt-long.1
111
112 dodoc "${S}/getopt-"*sh
113 }