1 |
tommy 12/04/01 21:45:11 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: unzip-6.0-r3.ebuild |
5 |
Log: |
6 |
Add support for ASFLAGS and add abi-specific flags argument to AS |
7 |
|
8 |
(Portage version: 2.2.0_alpha96-r1/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.81 app-arch/unzip/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-arch/unzip/ChangeLog?rev=1.81&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-arch/unzip/ChangeLog?rev=1.81&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-arch/unzip/ChangeLog?r1=1.80&r2=1.81 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/app-arch/unzip/ChangeLog,v |
20 |
retrieving revision 1.80 |
21 |
retrieving revision 1.81 |
22 |
diff -u -r1.80 -r1.81 |
23 |
--- ChangeLog 18 Dec 2011 15:24:14 -0000 1.80 |
24 |
+++ ChangeLog 1 Apr 2012 21:45:11 -0000 1.81 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for app-arch/unzip |
27 |
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/app-arch/unzip/ChangeLog,v 1.80 2011/12/18 15:24:14 naota Exp $ |
29 |
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
30 |
+# $Header: /var/cvsroot/gentoo-x86/app-arch/unzip/ChangeLog,v 1.81 2012/04/01 21:45:11 tommy Exp $ |
31 |
+ |
32 |
+*unzip-6.0-r3 (01 Apr 2012) |
33 |
+ |
34 |
+ 01 Apr 2012; Thomas Sachau (Tommy[D]) <tommy@g.o> |
35 |
+ +unzip-6.0-r3.ebuild: |
36 |
+ Add support for ASFLAGS and add abi-specific flags argument to AS |
37 |
|
38 |
18 Dec 2011; Naohiro Aota <naota@g.o> unzip-6.0-r2.ebuild: |
39 |
Add ~x86-fbsd wrt 349393 |
40 |
|
41 |
|
42 |
|
43 |
1.1 app-arch/unzip/unzip-6.0-r3.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-arch/unzip/unzip-6.0-r3.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-arch/unzip/unzip-6.0-r3.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: unzip-6.0-r3.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2012 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/app-arch/unzip/unzip-6.0-r3.ebuild,v 1.1 2012/04/01 21:45:11 tommy Exp $ |
53 |
|
54 |
EAPI="2" |
55 |
inherit eutils toolchain-funcs flag-o-matic |
56 |
|
57 |
MY_P="${PN}${PV/.}" |
58 |
|
59 |
DESCRIPTION="unzipper for pkzip-compressed files" |
60 |
HOMEPAGE="http://www.info-zip.org/" |
61 |
SRC_URI="mirror://sourceforge/infozip/${MY_P}.tar.gz" |
62 |
|
63 |
LICENSE="Info-ZIP" |
64 |
SLOT="0" |
65 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" |
66 |
IUSE="bzip2 natspec unicode" |
67 |
|
68 |
DEPEND="bzip2? ( app-arch/bzip2 ) |
69 |
natspec? ( dev-libs/libnatspec )" |
70 |
RDEPEND="${DEPEND}" |
71 |
|
72 |
S="${WORKDIR}/${MY_P}" |
73 |
|
74 |
src_prepare() { |
75 |
epatch "${FILESDIR}"/${P}-no-exec-stack.patch |
76 |
use natspec && epatch "${FILESDIR}/${PN}-6.0-natspec.patch" #275244 |
77 |
sed -i \ |
78 |
-e '/^CFLAGS/d' \ |
79 |
-e '/CFLAGS/s:-O[0-9]\?:$(CFLAGS) $(CPPFLAGS):' \ |
80 |
-e '/^STRIP/s:=.*:=true:' \ |
81 |
-e "s:\<CC=gcc\>:CC=\"$(tc-getCC)\":" \ |
82 |
-e "s:\<LD=gcc\>:LD=\"$(tc-getCC)\":" \ |
83 |
-e "s:\<AS=gcc\>:AS=\"$(tc-getCC)\":" \ |
84 |
-e 's:LF2 = -s:LF2 = :' \ |
85 |
-e 's:LF = :LF = $(LDFLAGS) :' \ |
86 |
-e 's:SL = :SL = $(LDFLAGS) :' \ |
87 |
-e 's:FL = :FL = $(LDFLAGS) :' \ |
88 |
-e "/^#L_BZ2/s:^$(use bzip2 && echo .)::" \ |
89 |
-e 's:$(AS) :$(AS) $(ASFLAGS) :g' \ |
90 |
unix/Makefile \ |
91 |
|| die "sed unix/Makefile failed" |
92 |
} |
93 |
|
94 |
src_compile() { |
95 |
local TARGET |
96 |
case ${CHOST} in |
97 |
i?86*-*linux*) TARGET=linux_asm ;; |
98 |
*linux*) TARGET=linux_noasm ;; |
99 |
i?86*-*bsd* | \ |
100 |
i?86*-dragonfly*) TARGET=freebsd ;; # mislabelled bsd with x86 asm |
101 |
*bsd* | *dragonfly*) TARGET=bsd ;; |
102 |
*-darwin*) TARGET=macosx ;; |
103 |
*) die "Unknown target, you suck" ;; |
104 |
esac |
105 |
|
106 |
[[ ${CHOST} == *linux* ]] && append-cppflags -DNO_LCHMOD |
107 |
use bzip2 && append-cppflags -DUSE_BZIP2 |
108 |
use unicode && append-cppflags -DUNICODE_SUPPORT -DUNICODE_WCHAR -DUTF8_MAYBE_NATIVE |
109 |
append-cppflags -DLARGE_FILE_SUPPORT #281473 |
110 |
|
111 |
ASFLAGS="${ASFLAGS} $(get_abi_var CFLAGS)" emake \ |
112 |
-f unix/Makefile \ |
113 |
${TARGET} || die "emake failed" |
114 |
} |
115 |
|
116 |
src_install() { |
117 |
dobin unzip funzip unzipsfx unix/zipgrep || die "dobin failed" |
118 |
dosym unzip /usr/bin/zipinfo || die |
119 |
doman man/*.1 |
120 |
dodoc BUGS History* README ToDo WHERE |
121 |
} |