vapier      14/10/17 19:52:51

  Modified:             ChangeLog
  Added:                dd-rescue-1.46.ebuild
  Log:
  Version bump #524860 by jospezial.
  
  (Portage version: 2.2.14_rc1/cvs/Linux x86_64, signed Manifest commit with 
key D2E96200)

Revision  Changes    Path
1.38                 sys-fs/dd-rescue/ChangeLog

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/dd-rescue/ChangeLog?rev=1.38&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/dd-rescue/ChangeLog?rev=1.38&content-type=text/plain
diff : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/dd-rescue/ChangeLog?r1=1.37&r2=1.38

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sys-fs/dd-rescue/ChangeLog,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -r1.37 -r1.38
--- ChangeLog   24 Jun 2014 08:27:08 -0000      1.37
+++ ChangeLog   17 Oct 2014 19:52:51 -0000      1.38
@@ -1,6 +1,11 @@
 # 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.37 
2014/06/24 08:27:08 kumba Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/dd-rescue/ChangeLog,v 1.38 
2014/10/17 19:52:51 vapier Exp $
+
+*dd-rescue-1.46 (17 Oct 2014)
+
+  17 Oct 2014; Mike Frysinger <[email protected]> +dd-rescue-1.46.ebuild:
+  Version bump #524860 by jospezial.
 
   24 Jun 2014; Joshua Kinard <[email protected]> metadata.xml:
   Fixed local USE flag description, per #514738.



1.1                  sys-fs/dd-rescue/dd-rescue-1.46.ebuild

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/dd-rescue/dd-rescue-1.46.ebuild?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/dd-rescue/dd-rescue-1.46.ebuild?rev=1.1&content-type=text/plain

Index: dd-rescue-1.46.ebuild
===================================================================
# 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.46.ebuild,v 1.1 
2014/10/17 19:52:51 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
        # OpenSSL is only used by a random helper tool we don't install.
        ac_cv_header_attr_xattr_h=$(usex xattr) \
        ac_cv_header_openssl_evp_h=no \
        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
}




Reply via email to