Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-fs/dd-rescue: metadata.xml dd-rescue-1.45.ebuild ChangeLog
Date: Sun, 01 Jun 2014 01:53:14
Message-Id: 20140601015309.458462004E@flycatcher.gentoo.org
1 vapier 14/06/01 01:53:09
2
3 Modified: metadata.xml ChangeLog
4 Added: dd-rescue-1.45.ebuild
5 Log:
6 Version bump. Add USE flags for automagic deps #511858 by Juergen Rose.
7
8 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key D2E96200)
9
10 Revision Changes Path
11 1.3 sys-fs/dd-rescue/metadata.xml
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/dd-rescue/metadata.xml?rev=1.3&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/dd-rescue/metadata.xml?rev=1.3&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/dd-rescue/metadata.xml?r1=1.2&r2=1.3
16
17 Index: metadata.xml
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-fs/dd-rescue/metadata.xml,v
20 retrieving revision 1.2
21 retrieving revision 1.3
22 diff -u -r1.2 -r1.3
23 --- metadata.xml 9 Dec 2003 18:44:36 -0000 1.2
24 +++ metadata.xml 1 Jun 2014 01:53:09 -0000 1.3
25 @@ -2,4 +2,7 @@
26 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
27 <pkgmetadata>
28 <herd>base-system</herd>
29 +<use>
30 + <flag name='sse4_2'>Use the SSE4.1 instruction set</flag>
31 +</use>
32 </pkgmetadata>
33
34
35
36 1.36 sys-fs/dd-rescue/ChangeLog
37
38 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/dd-rescue/ChangeLog?rev=1.36&view=markup
39 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/dd-rescue/ChangeLog?rev=1.36&content-type=text/plain
40 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/dd-rescue/ChangeLog?r1=1.35&r2=1.36
41
42 Index: ChangeLog
43 ===================================================================
44 RCS file: /var/cvsroot/gentoo-x86/sys-fs/dd-rescue/ChangeLog,v
45 retrieving revision 1.35
46 retrieving revision 1.36
47 diff -u -r1.35 -r1.36
48 --- ChangeLog 28 May 2014 13:53:21 -0000 1.35
49 +++ ChangeLog 1 Jun 2014 01:53:09 -0000 1.36
50 @@ -1,6 +1,12 @@
51 # ChangeLog for sys-fs/dd-rescue
52 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
53 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/dd-rescue/ChangeLog,v 1.35 2014/05/28 13:53:21 polynomial-c Exp $
54 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/dd-rescue/ChangeLog,v 1.36 2014/06/01 01:53:09 vapier Exp $
55 +
56 +*dd-rescue-1.45 (01 Jun 2014)
57 +
58 + 01 Jun 2014; Mike Frysinger <vapier@g.o> +dd-rescue-1.45.ebuild,
59 + metadata.xml:
60 + Version bump. Add USE flags for automagic deps #511858 by Juergen Rose.
61
62 *dd-rescue-1.44 (28 May 2014)
63
64
65
66
67 1.1 sys-fs/dd-rescue/dd-rescue-1.45.ebuild
68
69 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/dd-rescue/dd-rescue-1.45.ebuild?rev=1.1&view=markup
70 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/dd-rescue/dd-rescue-1.45.ebuild?rev=1.1&content-type=text/plain
71
72 Index: dd-rescue-1.45.ebuild
73 ===================================================================
74 # Copyright 1999-2014 Gentoo Foundation
75 # Distributed under the terms of the GNU General Public License v2
76 # $Header: /var/cvsroot/gentoo-x86/sys-fs/dd-rescue/dd-rescue-1.45.ebuild,v 1.1 2014/06/01 01:53:09 vapier Exp $
77
78 EAPI=5
79
80 inherit toolchain-funcs flag-o-matic multilib autotools
81
82 MY_PN=${PN/-/_}
83 MY_P=${MY_PN}-${PV}
84
85 DESCRIPTION="Similar to dd but can copy from source with errors"
86 HOMEPAGE="http://www.garloff.de/kurt/linux/ddrescue/"
87 SRC_URI="http://www.garloff.de/kurt/linux/ddrescue/${MY_P}.tar.gz"
88
89 LICENSE="GPL-2"
90 SLOT="0"
91 KEYWORDS="~amd64 ~arm ~mips ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
92 IUSE="avx2 lzo sse4_2 static xattr"
93
94 RDEPEND="lzo? ( dev-libs/lzo )
95 xattr? ( sys-apps/attr )"
96 DEPEND="${RDEPEND}"
97
98 S=${WORKDIR}/${MY_PN}
99
100 src_prepare() {
101 sed -i \
102 -e 's:-ldl:$(LDFLAGS) -ldl:' \
103 -e 's:-shared:$(CFLAGS) $(LDFLAGS) -shared:' \
104 Makefile
105 eautoreconf
106 }
107
108 src_configure() {
109 use static && append-ldflags -static
110 ac_cv_header_attr_xattr_h=$(usex xattr) \
111 ac_cv_lib_lzo2_lzo1x_1_compress=$(usex lzo) \
112 econf
113 }
114
115 _emake() {
116 local arch
117 case ${ARCH} in
118 x86) arch=i386;;
119 amd64) arch=x86_64;;
120 arm) arch=arm;;
121 arm64) arch=aarch64;;
122 esac
123
124 local os=$(usex kernel_linux Linux IDK)
125
126 # The Makefile is a mess. Override a few vars rather than patch it.
127 emake \
128 MACH="${arch}" \
129 OS="${os}" \
130 HAVE_SSE42=$(usex sse4_2 1 0) \
131 HAVE_AVX2=$(usex avx2 1 0) \
132 RPM_OPT_FLAGS="${CFLAGS} ${CPPFLAGS}" \
133 CFLAGS_OPT='$(CFLAGS)' \
134 LDFLAGS="${LDFLAGS} -Wl,-rpath,${EPREFIX}/usr/$(get_libdir)/${PN}" \
135 CC="$(tc-getCC)" \
136 "$@"
137 }
138
139 src_compile() {
140 _emake
141 }
142
143 src_test() {
144 _emake check
145 }
146
147 src_install() {
148 # easier to install by hand than trying to make sense of the Makefile.
149 dobin dd_rescue
150 dodir /usr/$(get_libdir)/${PN}
151 cp -pPR libddr_*.so "${ED}"/usr/$(get_libdir)/${PN}/ || die
152 dodoc README.dd_rescue
153 doman dd_rescue.1
154 use lzo && doman ddr_lzo.1
155 }