diff options
author | Mike Frysinger <vapier@gentoo.org> | 2014-06-01 01:53:09 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2014-06-01 01:53:09 +0000 |
commit | 9626ae8ea5b00c20da5d1fc7ce3483930d04d030 (patch) | |
tree | 6c1961a91c316117d6be50c22455ae3f53476826 /sys-fs | |
parent | Fix -9999 to work for released versions (diff) | |
download | gentoo-2-9626ae8ea5b00c20da5d1fc7ce3483930d04d030.tar.gz gentoo-2-9626ae8ea5b00c20da5d1fc7ce3483930d04d030.tar.bz2 gentoo-2-9626ae8ea5b00c20da5d1fc7ce3483930d04d030.zip |
Version bump. Add USE flags for automagic deps #511858 by Juergen Rose.
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key D2E96200)
Diffstat (limited to 'sys-fs')
-rw-r--r-- | sys-fs/dd-rescue/ChangeLog | 8 | ||||
-rw-r--r-- | sys-fs/dd-rescue/dd-rescue-1.45.ebuild | 82 | ||||
-rw-r--r-- | sys-fs/dd-rescue/metadata.xml | 3 |
3 files changed, 92 insertions, 1 deletions
diff --git a/sys-fs/dd-rescue/ChangeLog b/sys-fs/dd-rescue/ChangeLog index 802b080d3515..cd8934f1b8e2 100644 --- a/sys-fs/dd-rescue/ChangeLog +++ b/sys-fs/dd-rescue/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sys-fs/dd-rescue # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/dd-rescue/ChangeLog,v 1.35 2014/05/28 13:53:21 polynomial-c Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-fs/dd-rescue/ChangeLog,v 1.36 2014/06/01 01:53:09 vapier Exp $ + +*dd-rescue-1.45 (01 Jun 2014) + + 01 Jun 2014; Mike Frysinger <vapier@gentoo.org> +dd-rescue-1.45.ebuild, + metadata.xml: + Version bump. Add USE flags for automagic deps #511858 by Juergen Rose. *dd-rescue-1.44 (28 May 2014) diff --git a/sys-fs/dd-rescue/dd-rescue-1.45.ebuild b/sys-fs/dd-rescue/dd-rescue-1.45.ebuild new file mode 100644 index 000000000000..51a1a4e34d72 --- /dev/null +++ b/sys-fs/dd-rescue/dd-rescue-1.45.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $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 $ + +EAPI=5 + +inherit toolchain-funcs flag-o-matic multilib autotools + +MY_PN=${PN/-/_} +MY_P=${MY_PN}-${PV} + +DESCRIPTION="Similar to dd but can copy from source with errors" +HOMEPAGE="http://www.garloff.de/kurt/linux/ddrescue/" +SRC_URI="http://www.garloff.de/kurt/linux/ddrescue/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~mips ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="avx2 lzo sse4_2 static xattr" + +RDEPEND="lzo? ( dev-libs/lzo ) + xattr? ( sys-apps/attr )" +DEPEND="${RDEPEND}" + +S=${WORKDIR}/${MY_PN} + +src_prepare() { + sed -i \ + -e 's:-ldl:$(LDFLAGS) -ldl:' \ + -e 's:-shared:$(CFLAGS) $(LDFLAGS) -shared:' \ + Makefile + eautoreconf +} + +src_configure() { + use static && append-ldflags -static + ac_cv_header_attr_xattr_h=$(usex xattr) \ + ac_cv_lib_lzo2_lzo1x_1_compress=$(usex lzo) \ + econf +} + +_emake() { + local arch + case ${ARCH} in + x86) arch=i386;; + amd64) arch=x86_64;; + arm) arch=arm;; + arm64) arch=aarch64;; + esac + + local os=$(usex kernel_linux Linux IDK) + + # The Makefile is a mess. Override a few vars rather than patch it. + emake \ + MACH="${arch}" \ + OS="${os}" \ + HAVE_SSE42=$(usex sse4_2 1 0) \ + HAVE_AVX2=$(usex avx2 1 0) \ + RPM_OPT_FLAGS="${CFLAGS} ${CPPFLAGS}" \ + CFLAGS_OPT='$(CFLAGS)' \ + LDFLAGS="${LDFLAGS} -Wl,-rpath,${EPREFIX}/usr/$(get_libdir)/${PN}" \ + CC="$(tc-getCC)" \ + "$@" +} + +src_compile() { + _emake +} + +src_test() { + _emake check +} + +src_install() { + # easier to install by hand than trying to make sense of the Makefile. + dobin dd_rescue + dodir /usr/$(get_libdir)/${PN} + cp -pPR libddr_*.so "${ED}"/usr/$(get_libdir)/${PN}/ || die + dodoc README.dd_rescue + doman dd_rescue.1 + use lzo && doman ddr_lzo.1 +} diff --git a/sys-fs/dd-rescue/metadata.xml b/sys-fs/dd-rescue/metadata.xml index 96a2d586367d..022a9929c33b 100644 --- a/sys-fs/dd-rescue/metadata.xml +++ b/sys-fs/dd-rescue/metadata.xml @@ -2,4 +2,7 @@ <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> <herd>base-system</herd> +<use> + <flag name='sse4_2'>Use the SSE4.1 instruction set</flag> +</use> </pkgmetadata> |